← All rules
SOCLE-RUN-AUD-012// Audit (auditd)mediumeffective runtime

Record Events that Modify the System's Network Environment - /etc/sysconfig/network-scripts

Ensures auditd has an active rule tagged system-locale that watches the legacy RHEL/AlmaLinux interface configuration directory /etc/sysconfig/network-scripts/ for changes.

Checked against the resolved running state (e.g. sshd -T, sysctl, systemctl show), catches drop-ins and Includes a file read would miss. Caveat: runtime ≠ persistence; a value correct now may not survive a reboot.

A pass proves✓ running now✓ on disk✓ survives rebootthe qualified verdict →
FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0
One check, maps to 1 standard

Pavois asserts the effective configuration, the live, resolved state, not a file. File-based scanners (OVAL/SCAP, Lynis) miss Includes, drop-ins and runtime defaults; this check sees what is actually applied.

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

On RHEL-family systems, network interfaces are configured through ifcfg-* files under /etc/sysconfig/network-scripts/. These should not be modified by anything other than deliberate administrator action, tampering can redirect traffic, change addressing or open the host to attack. Auditing every change to this directory preserves a record for review and investigation.

What Pavois checks

Pavois runs auditctl -l and checks for a loaded rule carrying the system-locale key. Reading the live kernel ruleset beats parsing /etc/audit/rules.d/*.rules: a rule present in a file but not loaded gives false assurance. auditctl -l reflects only what the kernel enforces now.

describe command('auditctl -l') do
  its('stdout') { should match(/(-k +|key=)system\-locale\b/) }
end
describe command("grep -rhwsE 'system\-locale' /etc/audit/rules.d/*.rules /etc/audit/audit.rules 2>/dev/null") do
  its('stdout') { should match(/\S/) }
end

How to verify it is applied

Run auditctl -l | grep network-scripts. You should see a watch such as -w /etc/sysconfig/network-scripts/ -p wa -k system-locale. Empty output means the rule is not loaded.

Inspect & investigate

Triggered events land in /var/log/audit/audit.log. Search with grep 'key="system-locale"' /var/log/audit/audit.log (prefer grep over ausearch -k system-locale, which can wrongly report no matches).

Remediation

Pavois's harden plan uses the audit_ruleset resource to write the /etc/sysconfig/network-scripts/ watch rule into /etc/audit/rules.d/, then reloads auditd. Because the audit config may be immutable, a reboot is required to fully apply. Run pavois harden apply.

Pavois applies this with its own harden engine, the plan below, not a shell script:

reboot_requiredtrue
resourceaudit_ruleset
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Without this rule, edits to legacy ifcfg-* interface files go unrecorded, easing traffic redirection and persistence. The rule is log-only and cannot block changes, so it breaks nothing. Precautions: this directory is largely static, so volume is low; still ensure audit.log rotation and space_left_action are configured so a full disk does not halt the host when auditd is set to halt.

Standards mapping

StandardReferenceTypeVersionConfidence
CIS6.3.3.5directper OS, see the benchmark tablehigh

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references