mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-05 19:06:44 +00:00
Add ability to augment sensitive file reads
Similar to user_known_write_etc_conditions, add the ability to easily override sensitve file reads in a second rules file.
This commit is contained in:
parent
fefb8ba614
commit
1a41eeada7
@ -487,6 +487,19 @@
|
|||||||
vsftpd, systemd, mysql_install_d
|
vsftpd, systemd, mysql_install_d
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Add conditions to this macro (probably in a separate file,
|
||||||
|
# overwriting this macro) to allow for specific combinations of
|
||||||
|
# programs accessing sensitive files.
|
||||||
|
# fluentd_writing_conf_files is a good example to follow, as it
|
||||||
|
# specifies both the program doing the writing as well as the specific
|
||||||
|
# files it is allowed to modify.
|
||||||
|
#
|
||||||
|
# In this file, it just takes one of the macros in the base rule
|
||||||
|
# and repeats it.
|
||||||
|
|
||||||
|
- macro: user_read_sensitive_file_conditions
|
||||||
|
condition: cmp_cp_by_passwd
|
||||||
|
|
||||||
- rule: Read sensitive file untrusted
|
- rule: Read sensitive file untrusted
|
||||||
desc: >
|
desc: >
|
||||||
an attempt to read any sensitive file (e.g. files containing user/password/authentication
|
an attempt to read any sensitive file (e.g. files containing user/password/authentication
|
||||||
@ -501,6 +514,7 @@
|
|||||||
and not proc.cmdline contains /usr/bin/mandb
|
and not proc.cmdline contains /usr/bin/mandb
|
||||||
and not run_by_qualys
|
and not run_by_qualys
|
||||||
and not run_by_chef
|
and not run_by_chef
|
||||||
|
and not user_read_sensitive_file_conditions
|
||||||
output: >
|
output: >
|
||||||
Sensitive file opened for reading by non-trusted program (user=%user.name name=%proc.name
|
Sensitive file opened for reading by non-trusted program (user=%user.name name=%proc.name
|
||||||
command=%proc.cmdline file=%fd.name parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4])
|
command=%proc.cmdline file=%fd.name parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4])
|
||||||
|
Loading…
Reference in New Issue
Block a user