put open_read in the beginning of the rule

Signed-off-by: Hi120ki <12624257+hi120ki@users.noreply.github.com>
This commit is contained in:
Hi120ki 2022-09-15 09:56:20 +09:00 committed by poiana
parent 36a08aee13
commit af4524491d

View File

@ -3225,7 +3225,7 @@
- rule: Read environment variable from /proc files - rule: Read environment variable from /proc files
desc: An attempt to read process environment variables from /proc files desc: An attempt to read process environment variables from /proc files
condition: > condition: >
container and open_read and (fd.name glob /proc/*/environ) open_read and container and (fd.name glob /proc/*/environ)
and not proc.name in (known_binaries_to_read_environment_variables_from_proc_files) and not proc.name in (known_binaries_to_read_environment_variables_from_proc_files)
output: > output: >
Environment variables were retrieved from /proc files (user=%user.name user_loginuid=%user.loginuid program=%proc.name Environment variables were retrieved from /proc files (user=%user.name user_loginuid=%user.loginuid program=%proc.name