Puppet Class: cis_security_hardening::rules::auditd_postqueue
- Defined in:
- manifests/rules/auditd_postqueue.pp
Summary
Ensure audit of postqueue command.Overview
The operating system must audit all uses of the postqueue 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 postfix commands. The organization must maintain audit trails in sufficient detail to reconstruct events to determine the cause and impact of compromise.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/rules/auditd_postqueue.pp', line 22
class cis_security_hardening::rules::auditd_postqueue (
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 postqueue rule 1':
order => '209',
target => $cis_security_hardening::rules::auditd_init::rules_file,
content => "-a always,exit -F path=/usr/sbin/postqueue -F auid>=${uid} -F auid!=4294967295 -k privileged-postfix",
}
}
}
|