mediumauditverified ✓rollback-safe
Audit uses of the newgrp command
audit-cmd-newgrp · RHEL ≥ 8 · 1 impl
Description
All uses of the newgrp command must be audited. The newgrp command changes the current group ID during a login session.
Rationale
Auditing newgrp command usage allows detection of group context changes that could be used to access restricted resources.
Check → Remediate
Checkaudit_rule_exists
- rule:
- -a always,exit -F path=/usr/bin/newgrp -F perm=x -F auid>=1000 -F auid!=unset
Remediateaudit_rule_set
- rule:
- -a always,exit -F path=/usr/bin/newgrp -F perm=x -F auid>=1000 -F auid!=unset -k privileged
- persist_file:
- /etc/audit/rules.d/50-privileged.rules
Framework references
STIG
V-281133 / RHEL-10-500470V-258196 / RHEL-09-654110V-230437
NIST 800-53
AU-2AU-12
Live verification
rhel8:checkrhel9:check
#audit#auditd#privileged#newgrp