System audit logs must have mode 0640 or less permissive.

From HP-UX 11.31 Security Technical Implementation Guide

Part of GEN002700

Associated with IA controls: ECTP-1

Associated with: CCI-000163

SV-38478r2_rule System audit logs must have mode 0640 or less permissive.

Vulnerability discussion

If a user can write to the audit logs, audit trails can be modified or destroyed and system intrusion may not be detected. System audit logs are those files generated from the audit system and do not include activity, error, or other log files created by application software.

Check content

Inspect the auditing configuration file, /etc/rc.config.d/auditing, to determine the filename and path of the audit logs. The entries should appear similar to the following: PRI_AUDFILE=/var/.audit/file1 SEC_AUDFILE=/var/.audit/file2 # egrep “PRI_AUDFILE|SEC_AUDFILE” /etc/rc.config.d/auditing For each audit log directory/file, check the permissions. # ls -lLd # ls -lLa If any audit log file has permissions greater than 0640 (0750 for directories), this is a finding.

Fix text

As root, change the permissions. # chmod 0750 # chmod 0640

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer