Add more ancestors

Add more ancestors for several rules. Sometimes shells spawn the program
reading the sensitive file, etc.
This commit is contained in:
Mark Stemm
2017-08-09 10:10:41 -07:00
parent 0ec46feef2
commit ef9e045a40

View File

@@ -411,7 +411,7 @@
condition: sensitive_files and open_read and server_procs and not proc_is_new and proc.name!="sshd"
output: >
Sensitive file opened for reading by trusted program after startup (user=%user.name
command=%proc.cmdline parent=%proc.pname file=%fd.name)
command=%proc.cmdline parent=%proc.pname file=%fd.name parent=%proc.pname gparent=%proc.aname[2]
priority: WARNING
tags: [filesystem]
@@ -727,7 +727,7 @@
not proc.pname in (cron_binaries, systemd, run-parts)
output: >
User management binary command run outside of container
(user=%user.name command=%proc.cmdline parent=%proc.pname)
(user=%user.name command=%proc.cmdline parent=%proc.pname gparent=%proc.aname[2])
priority: NOTICE
tags: [host, users]