-
Notifications
You must be signed in to change notification settings - Fork 917
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
Update falco_rules.yaml #1694
Update falco_rules.yaml #1694
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3077,4 +3077,16 @@ | |
# Application rules have moved to application_rules.yaml. Please look | ||
# there if you want to enable them by adding to | ||
# falco_rules.local.yaml. | ||
- list: docker_binaries | ||
items: [dockerd, containerd-shim, "runc:[1:CHILD]"] | ||
|
||
- macro: docker_procs | ||
condition: proc.name in (docker_binaries) | ||
|
||
- rule: Modify Container Entrypoint | ||
desc: Detect file write activities on container entrypoint symlink (/proc/self/exe) | ||
condition: > | ||
open_write and (fd.name=/proc/self/exe or fd.name startswith /proc/self/fd/) and not docker_procs and container | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. During the time I tested the rule I also see some noise with proc.cmdline = "runc:[1:CHILD] init". Do you mind add it in the condition? |
||
output: > | ||
%fd.name is open to write by process (%proc.name, %proc.exeline) | ||
priority: WARNING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. During my tests I saw the rule generating false positives on falcosidekick and argo which are two components which can word together this Falco. As we know the |
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.
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.
During the time I tested the rule I've seen some noise generated by proc.name = pause which should be whitelisted.