# Ensure Audit Configuration is Set to Immutable

- Source: https://support.icompaas.com/support/solutions/articles/62000234992-ensure-audit-configuration-is-set-to-immutable
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Amazon Linux 2 Benchmark v3.0.0](https://support.icompaas.com/support/solutions/62000112696) › [CIS Amazon Linux 2 Benchmarks](https://support.icompaas.com/support/solutions/folders/62000169265)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Profile Applicability: • **Level 2**

Description:  
Setting the audit configuration as immutable prevents unauthorized changes to the audit rules, ensuring continuous and reliable auditing of system activities.

Rationale:  
 Making the audit configuration immutable protects audit policies from accidental or malicious modifications, maintaining the integrity of security monitoring.

Impact:  
 Pros:

-   Prevents tampering with audit configuration.  
    
-   Ensures consistent audit policy enforcement.  
    

Cons:

-   Requires deliberate action to update audit rules, potentially slowing emergency changes.  
    

Default Value:  
 Audit configuration may not be immutable by default.

Pre-requisites:

-   Root or sudo privileges to set immutable attribute.  
    

Remediation:

### Test Plan:

Using Linux command line:

Check if audit rules file is immutable:

lsattr /etc/audit/audit.rules

1.  Confirm the i attribute (immutable) is set.
    

### Implementation Plan:

Using Linux command line:

Set the immutable attribute on the audit rules file:

chattr +i /etc/audit/audit.rules

Verify attribute is set:

lsattr /etc/audit/audit.rules

### Backout Plan:

Using Linux command line:

Remove the immutable attribute if changes are needed:

chattr -i /etc/audit/audit.rules

1.  Modify the audit rules as necessary.  
    
2.  Reapply immutable attribute after updates.  
    

References:

-   CIS Amazon Linux 2 Benchmark v3.0.0  
    
-   Linux chattr Manual  
    
-   [NIST SP 800-53 Revision 5 - AU-9  
    ](https://csrc.nist.gov/publications/detail/sp/800-53/rev-5/final#au-9)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
