implementing-file-integrity-monitoring-with-aide
它能做什么
这个工具用于设置一个名为 AIDE 的系统,监控你 Linux 电脑上的文件。它会先记录文件的正常状态,然后检查是否有文件在未经许可的情况下被修改,并在发现变化时提醒你。
适用场景
- ✓当你要搭建一套检查文件变动的安全系统时。
- ✓当你需要确保重要系统文件没有被篡改时。
- ✓当你需要满足要求进行文件完整性监控的安全规定时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-file-integrity-monitoring-with-aide/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 AIDE 在我的 Linux 服务器上设置文件完整性监控。”
每周 5 个新技能,1 分钟读完。
工作原理
首先,工具会创建一个配置文件,告诉 AIDE 要监控哪些内容。然后,它会为当前的文件状态建立一个“数据库”。最后,它可以定期检查文件是否有变化,并通知你。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Implementing File Integrity Monitoring with AIDE
Overview
AIDE (Advanced Intrusion Detection Environment) is a host-based intrusion detection system that monitors file and directory integrity using cryptographic checksums. This skill covers generating AIDE configuration files, initializing baseline databases, running integrity checks, parsing change reports, and setting up automated cron-based monitoring with alerting.
When to Use
- When deploying or configuring implementing file integrity monitoring with aide capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- AIDE installed on target Linux system (apt install aide / yum install aide)
- Root or sudo access for file system scanning
- Python 3.8+ with standard library
Steps
- Generate AIDE Configuration — Create aide.conf with monitoring rules for critical directories (/etc, /bin, /sbin, /usr/bin, /boot)
- Initialize Baseline Database — Run aide --init to create the initial file integrity baseline
- Run Integrity Check — Execute aide --check to compare current state against baseline
- Parse Change Report — Extract added, removed, and changed files from AIDE output
- Configure Automated Monitoring — Generate cron job for scheduled integrity checks
- Generate Compliance Report — Produce structured report of all file changes with severity classification
Expected Output
- AIDE configuration file (aide.conf)
- Baseline database creation status
- JSON report of file changes (added/removed/changed) with severity
- Cron job configuration for automated monitoring
常见问题
什么是 AIDE?
AIDE 是一个用来检查 Linux 系统中的文件是否被改动过的程序。它的做法是把文件的当前状态与之前的记录进行比对。
使用前需要先安装什么吗?
需要。你要先在 Linux 系统中安装 AIDE,并且拥有管理员权限(root 或 sudo),它才能正常工作。
文件被改动后会发生什么?
如果文件被改动并被 AIDE 检测到,它会生成一份报告,详细列出哪些文件被修改、新增或删除,并对变动的严重程度进行分类。
详情
作者的原始描述
Configures AIDE (Advanced Intrusion Detection Environment) for file integrity monitoring on Linux, covering baseline database creation, scheduled integrity checks via cron, change detection, and alerting on unauthorized modifications. Use when setting up host-based file integrity monitoring, detecting unauthorized file changes, or meeting compliance requirements for FIM on Linux systems.
热度
- GitHub 星标
- 35k
- 排名
- #8040
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。