Puppet Class: cis_security_hardening::rules::auditd_userhelper
- Defined in:
- manifests/rules/auditd_userhelper.pp
Summary
Ensure audit of the userhelper command.Overview
The operating system must audit all uses of the userhelper command.
Rationale: Reconstruction of harmful events or forensic analysis is not possible if audit records do not contain enough information.
At a minimum, the organization must audit the full-text recording of privileged password commands. The organization must maintain audit trails in sufficient detail to reconstruct events to determine the cause and impact of compromise.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'manifests/rules/auditd_userhelper.pp', line 23
class cis_security_hardening::rules::auditd_userhelper (
Boolean $enforce = false,
) {
if $enforce {
$uid = fact('cis_security_hardening.auditd.uid_min') ? {
undef => '1000',
default => fact('cis_security_hardening.auditd.uid_min'),
}
concat::fragment { 'watch userhelper rule 1':
order => '214',
target => $cis_security_hardening::rules::auditd_init::rules_file,
content => "-a always,exit -F path=/usr/sbin/userhelper -F auid>=${uid} -F auid!=4294967295 -k privileged-passwd",
}
}
}
|