MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / NewScanner

Function NewScanner

internal/evasion/scanner.go:42–56  ·  view source on GitHub ↗

NewScanner instantiates the new evasion scanner.

(config Config)

Source from the content-addressed store, hash-verified

40
41// NewScanner instantiates the new evasion scanner.
42func NewScanner(config Config) *Scanner {
43 s := &Scanner{
44 evasions: make([]Evasion, 0),
45 config: config,
46 }
47
48 if config.EnableDirectSyscall {
49 s.addEvasion(NewDirectSyscall())
50 }
51 if config.EnableIndirectSyscall {
52 s.addEvasion(NewIndirectSyscall())
53 }
54
55 return s
56}
57
58func (s *Scanner) ProcessEvent(e *event.Event) (bool, error) {
59 // filter out CreateFile events with the open disposition

Callers 3

TestEvasionScannerFunction · 0.92
RunMethod · 0.92
TestScannerProcessEventFunction · 0.70

Calls 3

addEvasionMethod · 0.95
NewDirectSyscallFunction · 0.85
NewIndirectSyscallFunction · 0.85

Tested by 2

TestEvasionScannerFunction · 0.74
TestScannerProcessEventFunction · 0.56