diff --git a/rules/falco_rules.yaml b/rules/falco_rules.yaml index 8459385454d..dd663058f5e 100644 --- a/rules/falco_rules.yaml +++ b/rules/falco_rules.yaml @@ -3202,3 +3202,17 @@ # 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: known_binaries_to_read_environment_variables_from_proc_files + items: [scsi_id, argoexec] + +- rule: Read environment variable from /proc files + desc: An attempt to read process environment variables from /proc files + condition: > + open_read and container and (fd.name glob /proc/*/environ) + and not proc.name in (known_binaries_to_read_environment_variables_from_proc_files) + output: > + Environment variables were retrieved from /proc files (user=%user.name user_loginuid=%user.loginuid program=%proc.name + command=%proc.cmdline file=%fd.name parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4] container_id=%container.id image=%container.image.repository) + priority: WARNING + tags: [filesystem, mitre_credential_access, mitre_discovery]