# Ensure AIDE (Advanced Intrusion Detection Environment) is Installed

- Source: https://support.icompaas.com/support/solutions/articles/62000235440-ensure-aide-advanced-intrusion-detection-environment-is-installed
- 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 1

Description: AIDE is a host-based intrusion detection system that verifies filesystem integrity by comparing the current state of files against a known baseline. Installing AIDE is essential for monitoring unauthorized changes to system files.

Rationale: Having AIDE installed allows continuous monitoring of filesystem integrity, helping detect unauthorized modifications or tampering early.

**Impact:** **Pros:**

-   Provides automated integrity checks for system files.  
    
-   Enhances security monitoring and incident detection.  
    

**Cons:**

-   Requires configuration and maintenance.  
    
-   May consume system resources during scans.  
    

Default Value: AIDE may not be installed by default on many Linux distributions.

Pre-requisites:

-   Root or sudo privileges to install software packages.  
    

Remediation:

### Test Plan:

Using Linux command line:

1.  Check if AIDE is installed:
    

RPM-based systems:

rpm -q aide

Debian-based systems:

dpkg -l | grep aide

2.  Confirm AIDE package is present.  
    

### Implementation Plan:

Using Linux command line:

Install AIDE if not present

            RPM-based:

yum install aide -y

Debian-based:  

apt install aide -y

Initialize AIDE database:

aide --init
mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz

2.  Configure regular AIDE checks via cron or systemd timers.  
    

### Backout Plan:

Using Linux command line:

1.  Remove or disable AIDE if necessary:
    
    yum remove aide
    # or
    apt remove aide
    

2.  Clean up related configuration files if needed.  
    

References:

-   CIS Amazon Linux 2 Benchmark v3.0.0  
    
-   AIDE Official Documentation

## 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.
