-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ig bump #328
Feature/ig bump #328
Conversation
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe try to modify all rules to be as similar as possible?
// Check if the event is expected, if so return nil | ||
// No application profile also returns nil | ||
if whiteListed, err := isExecEventInProfile(execEvent, objectCache, false); whiteListed || errors.Is(err, ProfileNotFound) { | ||
return nil | ||
} | ||
|
||
upperLayer := true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you set to true here
@@ -74,6 +74,7 @@ func (rule *R1004ExecFromMount) ProcessEvent(eventType utils.EventType, event in | |||
for _, mount := range mounts { | |||
fullPath := getExecFullPathFromEvent(execEvent) | |||
if rule.isPathContained(fullPath, mount) || rule.isPathContained(execEvent.ExePath, mount) { | |||
upperLayer := execEvent.UpperLayer || execEvent.PupperLayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and not here as well?
@@ -72,6 +72,7 @@ func (rule *R1005FilelessExecution) handleExecveEvent(execEvent *tracerexectype. | |||
// is memory mapped file | |||
|
|||
if strings.HasPrefix(execPathDir, "/proc/self/fd") || strings.HasPrefix(execEvent.Cwd, "/proc/self/fd") || strings.HasPrefix(execEvent.ExePath, "/proc/self/fd") { | |||
upperLayer := execEvent.UpperLayer || execEvent.PupperLayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Summary:
|
Overview