-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathFilter.h
executable file
·49 lines (35 loc) · 1.07 KB
/
Filter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Filter.h
// KnockKnock
//
// Created by Patrick Wardle on 2/21/15.
// Copyright (c) 2015 Objective-See. All rights reserved.
//
#import "Results/File.h"
#import "Results/Command.h"
#import "Results/Extension.h"
#import <Foundation/Foundation.h>
@interface Filter : NSObject
{
}
//white listed file hashes
@property(nonatomic, retain)NSDictionary* trustedFiles;
//white listed commands
@property(nonatomic, retain)NSDictionary* knownCommands;
//white listed extensions
@property(nonatomic, retain)NSDictionary* trustedExtensions;
//white listed kexts
@property(nonatomic, retain)NSDictionary* trustedKexts;
/* METHODS */
//load a (JSON) white list
// ->file hashes, known commands, etc
-(NSDictionary*)loadWhitelist:(NSString*)fileName;
//check if a File obj is white listed
-(BOOL)isTrustedFile:(File*)fileObj;
//check if a Command obj is white listed
-(BOOL)isKnownCommand:(Command*)commandObj;
//check if a Extension obj is white listed
-(BOOL)isTrustedExtension:(Extension*)extensionObj;
//check if kext is white listed
-(BOOL)isTrustedKext:(File*)fileObj;
@end