SV-100479r1_rule
V-89829
SRG-OS-000466-GPOS-00210
VRAU-SL-001390
CAT II
10
At a minimum, the audit system should collect file permission changes for all users and "root". Add the following to "/etc/audit/audit.rules":
-a always,exit -F arch=b64 -S chmod -F auid=0
-a always,exit -F arch=b64 -S chmod -F auid>=500 -F auid!=4294967295
-a always,exit -F arch=b32 -S chmod
OR
# /etc/dodscript.sh
To determine if the system is configured to audit calls to the "chmod" system call, run the following command:
# auditctl -l | grep syscall | grep chmod
If the system is configured to audit this activity, it will return several lines, such as:
LIST_RULES: exit,always arch=3221225534 (0xc000003e) auid=0 syscall=chmod,fchmod,chown,fchown,fchownat,fchmodat
LIST_RULES: exit,always arch=3221225534 (0xc000003e) auid>=500 (0x1f4) auid!=-1 (0xffffffff) syscall=chmod,fchmod,chown,fchown,fchownat,fchmodat
LIST_RULES: exit,always arch=1073741827 (0x40000003) syscall=chmod,lchown,sethostname,fchmod,fchown,adjtimex,init_module,delete_module,chown,lchown32,fchown32,chown32,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr,clock_settime,fchownat,fchmodat
If no lines are returned, this is a finding.
V-89829
False
VRAU-SL-001390
To determine if the system is configured to audit calls to the "chmod" system call, run the following command:
# auditctl -l | grep syscall | grep chmod
If the system is configured to audit this activity, it will return several lines, such as:
LIST_RULES: exit,always arch=3221225534 (0xc000003e) auid=0 syscall=chmod,fchmod,chown,fchown,fchownat,fchmodat
LIST_RULES: exit,always arch=3221225534 (0xc000003e) auid>=500 (0x1f4) auid!=-1 (0xffffffff) syscall=chmod,fchmod,chown,fchown,fchownat,fchmodat
LIST_RULES: exit,always arch=1073741827 (0x40000003) syscall=chmod,lchown,sethostname,fchmod,fchown,adjtimex,init_module,delete_module,chown,lchown32,fchown32,chown32,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr,clock_settime,fchownat,fchmodat
If no lines are returned, this is a finding.
M
3459