Fails to suppress unwanted alerts upon startup
Describe the bug
We have falco running as a DaemonSet in an EKS cluster. Additionally, there is a DaemonSet running which during its runtime accesses various sensitive files on our EKS nodes (don't ask, it's mandated to be present by a customer policy), so we wish for falco to fully ignore these accesses.
Such an ignoring normally works great using this combination of falco config and rules (as seen from within a falco pod, and slightly redacted):
/ # ##### GET RULES
/ # grep -A2 rules_files /etc/falco/falco.yaml
rules_files:
- /etc/falco/falco_rules.yaml
- /etc/falco/rules.d/falco_rules.global.yaml
/ # ##### GET RULE DEFAULTS
/ # grep -C2 read_sensitive_file_images /etc/falco/falco_rules.yaml
condition: cmp_cp_by_passwd
- list: read_sensitive_file_images
items: []
- macro: user_read_sensitive_file_containers
condition: (container and container.image.repository in (read_sensitive_file_images))
# This macro detects man-db postinst, see https://salsa.debian.org/debian/man-db/-/blob/master/debian/postinst
/ # ##### GET RULE OVERRIDE
/ # grep -B1 -A5 read_sensitive_file_images /etc/falco/rules.d/falco_rules.global.yaml
# Read sensitive file untrusted
- list: read_sensitive_file_images
items: [
some-id.dkr.ecr.some-region.amazonaws.com/some-repo/some-image-of-that-other-app
]
override:
items: append
/ #So, normally this ignoring works fine, and I can shell into a pod of that other daemonset and cat /etc/shadow just fine without triggering an alert. However, occasionally we do receive alerts about the very accesses we wish to ignore, and if that happens it is always directly upon node startup, i.e. when we / our automation provisions a new node.
It seems falco occasionally but not always
- starts up on such a new node
- correctly detects the access from the other DaemonSet which is starting in parallel
- sends out an alert
- reads the additional override which is supposed to silence this alert
- ignores any further such access
So, how do I reliably prevent 3 from happening in this setup? I couldn't find anything in the configuration which would affect this, and it feels rather like a race condition to me, hence reporting this as a bug. Possibly I just missed something, though, so any pointers are very welcome.
How to reproduce it
Well, I didn't manage to reproduce it willingly so far, but it occurs every so often in our environments where nodes are dynamically provisioned.
Expected behaviour
I'd expect these specific accesses to be ignored no matter when they occur, as most of the time works just fine. But somehow during node startup something is different, leading to unwanted alerting.
Environment
- Falco version:
{"default_driver_version":"8.1.0+driver","driver_api_version":"8.0.0","driver_schema_version":"3.6.0","engine_version":"50","engine_version_semver":"0.50.0","falco_version":"0.41.3","libs_version":"0.21.0","plugin_api_version":"3.11.0"}- System info:
{
"machine": "x86_64",
"nodename": "falco-daemonset-st2kb",
"release": "5.10.240-238.959.amzn2.x86_64",
"sysname": "Linux",
"version": "#1 SMP Thu Aug 7 19:21:39 UTC 2025"
}- Cloud provider or hardware configuration: AWS EKS
- OS:
/ # cat /host/etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2026-06-30"- Kernel:
/ # uname -a
Linux falco-daemonset-st2kb 5.10.240-238.959.amzn2.x86_64 #1 SMP Thu Aug 7 19:21:39 UTC 2025 x86_64 Linux- Installation method: Kubernetes (AWS EKS) via Helm
Source: falcosecurity/falco