Hello Audit,
I am trying to implement a set of rules related to “xattrs” on a MS CBL-Mariner 1.0.
I am following this
guide<https://static.open-scap.org/ssg-guides/ssg-rhel8-guide-hipaa.ht...;.
Record Events that Modify the System's Discretionary Access Controls Group contains
13 rules
[
ref]<https://static.open-scap.org/ssg-guides/ssg-rhel8-guide-hipaa.htm...
At a minimum, the audit system should collect file permission changes for all users and
root. Note that the "-F arch=b32" lines should be present even on a 64 bit
system. These commands identify system calls for auditing. Even if the system is 64 bit it
can still execute 32 bit system calls. Additionally, these rules can be configured in a
number of ways while still achieving the desired effect. An example of this is that the
"-S" calls could be split up and placed on separate lines, however, this is less
efficient. Add the following to /etc/audit/audit.rules:
-a always,exit -F arch=b32 -S chmod,fchmod,fchmodat -F auid>=1000 -F auid!=unset -F
key=perm_mod
-a always,exit -F arch=b32 -S chown,fchown,fchownat,lchown -F auid>=1000 -F
auid!=unset -F key=perm_mod
-a always,exit -F arch=b32 -S
setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F auid>=1000 -F
auid!=unset -F key=perm_mod
If your system is 64 bit then these lines should be duplicated and the arch=b32 replaced
with arch=b64 as follows:
-a always,exit -F arch=b64 -S chmod,fchmod,fchmodat -F auid>=1000 -F auid!=unset -F
key=perm_mod
-a always,exit -F arch=b64 -S chown,fchown,fchownat,lchown -F auid>=1000 -F
auid!=unset -F key=perm_mod
-a always,exit -F arch=b64 -S
setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F auid>=1000 -F
auid!=unset -F key=perm_mod
Thing is I get error to any of
setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr.
bash: setxattr: command not found
Is there any way I can enable the above in Mariner?
Thank you.
AlexT