Add more ancestors for tracking.

This commit is contained in:
Mark Stemm 2017-08-25 09:25:52 -07:00
parent 6dfdadf527
commit 70d6e8de2f

View File

@ -435,7 +435,7 @@
- rule: Write below etc - rule: Write below etc
desc: an attempt to write to any file below /etc, not in a pipe installer session desc: an attempt to write to any file below /etc, not in a pipe installer session
condition: write_etc_common and not proc.sname=fbash condition: write_etc_common and not proc.sname=fbash
output: "File below /etc opened for writing (user=%user.name command=%proc.cmdline parent=%proc.pname file=%fd.name)" output: "File below /etc opened for writing (user=%user.name command=%proc.cmdline parent=%proc.pname file=%fd.name name=%proc.name)"
priority: ERROR priority: ERROR
tags: [filesystem] tags: [filesystem]
@ -485,7 +485,7 @@
and not run_by_qualys and not run_by_qualys
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]) command=%proc.cmdline file=%fd.name parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4])
priority: WARNING priority: WARNING
tags: [filesystem] tags: [filesystem]
@ -827,7 +827,7 @@
not proc.cmdline startswith "useradd -D" not proc.cmdline startswith "useradd -D"
output: > output: >
User management binary command run outside of container User management binary command run outside of container
(user=%user.name command=%proc.cmdline parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3]) (user=%user.name command=%proc.cmdline parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4])
priority: NOTICE priority: NOTICE
tags: [host, users] tags: [host, users]