← Rules Catalog
mediumauditverified ✓✓rollback-safe

Audit account modifications affecting /etc/gshadow (Ubuntu)

audit-usergroup-gshadow · UBUNTU ≥ 22 · 1 impl

Description

All account creation, modification, disabling, and termination events that affect /etc/gshadow must generate an audit record.

Rationale

Auditing changes to /etc/gshadow allows detection of unauthorized account or group changes, supporting forensic investigation.

Check → Remediate

Checkaudit_rule_exists
rule:
-w /etc/gshadow -p wa -k usergroup_modification
Remediateaudit_rule_set
rule:
-w /etc/gshadow -p wa -k usergroup_modification
persist_file:
/etc/audit/rules.d/50-usergroup-gshadow.rules

Framework references

STIG

V-270687 / UBTU-24-200310V-260629 / UBTU-22-654135

NIST 800-53

AU-2AU-12

Live verification

ubuntu22:checkubuntu24:checkubuntu24:remediate
#audit#auditd#accounts#usergroup