-
Notifications
You must be signed in to change notification settings - Fork 913
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
[False Positive] Fileless Execution Alert for runc 1.1.15+ memfd on Bottlerocket 1.30.0 #3444
Comments
This did not work for me, the proc.name is "5" or "6" for me so I had to add: customRules:
rules-allow-runc-memfd.yaml: |-
- list: known_memfd_execution_binaries
items: ["5", "6"]
override:
items: append |
@Alwin-Stockinger Can you share your alert output? You may be able to cover that by overwriting the
|
This is a log from one of the alerts:
This worked, thank you 👍 |
Thanks for opening this detailed issue! |
Yep, thanks for reporting this! We need to update |
Thanks, I opened a PR here - falcosecurity/rules#268 |
Describe the bug
Falco is generating false positive
Critical Fileless execution via memfd_create
alerts for legitimate runc operations when running on Bottlerocket OS 1.30.0. This occurs because runc 1.1.15 (included in Bottlerocket 1.30.0) now uses memfd cloning instead of bind mounts for performance optimization, which triggers Falco's fileless execution detection. The change was introduced in runc 1.1.15 to address namespace_sem lock contention issues during high container churn. This is a known behavior change that has already affected other security tools - AWS GuardDuty encountered a similar issue (see bottlerocket-os/bottlerocket#4352).For more details about the memfd cloning in runc, see the CHANGELOG in 1.1.15 and the relevant PR #4392.
How to reproduce it
eksctl
to create an EKS cluster with Bottlerocket AMI (you can get the AMI ID usingaws ssm get-parameter --name /aws/service/bottlerocket/aws-k8s-1.29/x86_64/1.30.0/image_id --region us-west-2 --query 'Parameter.Value' --output text
):Expected behaviour
No alerts should be generated for legitimate runc operations using memfd_create.
Screenshots
Example of the false positive alert:
Environment
0.39.2
Linux version 6.1.119 (builder@buildkitsandbox) (x86_64-bottlerocket-linux-gnu-gcc (Buildroot 2024.02.8) 11.4.0, GNU ld (GNU Binutils) 2.41) #1 SMP PREEMPT_DYNAMIC Fri Dec 20 22:32:32 UTC 2024
6.1.119
Additional context
This issue affects all users of runc 1.1.15+ where Falco is deployed for security monitoring, not just Bottlerocket users. However, Bottlerocket 1.30.0's inclusion of runc 1.1.15 makes this particularly relevant for AWS EKS users.
The issue can be temporarily mitigated by adding runc to the
known_memfd_execution_binaries
list:Apply using:
Consider adding runc to the default
known_memfd_execution_binaries
list in Falco's default ruleset, as this is now expected behavior for runc 1.1.15 and possibly newer versions.The text was updated successfully, but these errors were encountered: