---
name: "aide-advanced-intrusion-detection"
description: "Detect unauthorized filesystem modifications and rootkits with AIDE file integrity monitoring."
metadata:
  author: "AIDE Project"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "initialize aide database"
  - "check file integrity aide"
  - "configure aide.conf"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# AIDE Advanced File Integrity Monitoring (FIM)

Implements Advanced Intrusion Detection Environment (AIDE): initializing baseline cryptographic hash databases (SHA-256), configuring /etc/aide/aide.conf rules, and running automated change audits.

## When to Invoke
Invoke this skill whenever you need to:
- initialize aide database
- check file integrity aide
- configure aide.conf

## Execution SOP & Rules
1. Initialize baseline database with aideinit or aide --init.
2. Move initialized database to active path: mv /var/lib/aide/aide.db.new /var/lib/aide/aide.db.
3. Run integrity checks with aide --check and inspect modified file reports.
4. Update database following authorized system package updates using aide --update.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
