Skip to content

Commit 329cbfc

Browse files
committed
refactor(evasion): Stop gating CreateFile with open disposition
With approvers many CreateFile events with OPEN disposition mask are rejected early. This allows us to dispatch all CreateFile events to the evasion scanners regardless of the file operation.
1 parent e686f7e commit 329cbfc

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

internal/evasion/scanner.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ func NewScanner(config Config) *Scanner {
5656
}
5757

5858
func (s *Scanner) ProcessEvent(e *event.Event) (bool, error) {
59-
// filter out CreateFile events with the open disposition
60-
// as they tend to be noisy and could impact performance
61-
// when hitting evasion detectors
62-
if e.IsOpenDisposition() {
63-
return true, nil
64-
}
65-
6659
var enq bool
6760

6861
// run registered evasion detectors

0 commit comments

Comments
 (0)