AIDE vs Tripwire vs eBPF: file integrity monitoring that tells you who
AIDE and Tripwire tell you on Tuesday what changed on Sunday. A comparison of the classic scan-based FIM tools with kernel-level eBPF file integrity monitoring - what each catches, what each misses, and which fits your servers.
Sandeep Sidhu · Founder, AlertKick
File integrity monitoring is one of the oldest ideas in host security, and one of the most quietly mandated: PCI DSS requires it outright, SOC 2 auditors expect it, and every post-incident review that finds a modified binary asks why nobody knew. The standard answers for twenty years have been AIDE and Tripwire. Both still work the way they did twenty years ago - which is exactly the problem.
How the classics work
AIDE (Advanced Intrusion Detection Environment) builds a database of file hashes, permissions, and attributes, then rescans the filesystem from a nightly cron job and reports differences. Tripwire (the open-source variant) works on the same principle. Both are free, mature, and genuinely better than nothing.
AIDE vs Tripwire: the difference
AIDE is the simpler of the pair: a hash database, a config file listing which attributes to track per path, and a cron job that diffs the filesystem against it. Nothing about the database is signed, so anyone with root can rewrite the baseline as easily as the files it describes - which is why the AIDE manual pushes you toward read-only or off-host storage for it.
Tripwire’s open-source variant adds a cryptographic signing model on top of that same scan approach. The policy file and the baseline database are signed with site and local keys, so tampering with either is detectable rather than silent, at the cost of key management and a passphrase prompt in the middle of every legitimate baseline update. AIDE trades integrity of the baseline for operational simplicity. Tripwire trades simplicity for a baseline you can prove wasn’t edited.
Everything else - the scan interval, the attribution, the baseline maintenance - is common to both, and it’s where the structural problems live.
The three structural gaps
The model has three built-in gaps. They are structural, not bugs:
1. You learn on Tuesday what changed on Sunday. Detection latency equals your scan interval. A nightly scan means an attacker’s modified sshd_config, added cron job, or trojaned binary sits undetected for up to 24 hours. The typical intrusion does its damage in the first hour. FIM that reports at scan time is an audit tool wearing a detection tool’s name badge.
2. It tells you what changed, never who or how. A scan diff says /etc/crontab differs from baseline. It cannot say which process wrote it, which user, which session, or which SSH login spawned it. Every real finding starts a manual forensic dig - the very work you hoped the tool would do.
3. The baseline is a chore that rots. Every legitimate deploy, package upgrade, or config change makes the database stale. Update it too rarely and reports drown in known-good noise. Update it too eagerly and you risk baselining the attacker’s changes. On a fleet, multiply the ritual. The database itself lives on the host an attacker with root can touch, which is why the manuals recommend keeping it on read-only or off-host storage. How many installs actually do?
What eBPF changes
eBPF lets a monitoring agent observe file operations at the kernel as they happen. That flips all three properties:
- Latency drops from hours to seconds. The write to a watched path is the event. AlertKick’s agent streams it off-host immediately - there’s no scan to wait for and no on-host database to tamper with.
- Full attribution comes free. The kernel knows the writing process, its binary path, user, parent chain, and session. The event arrives as “
/etc/cron.d/apache-backupcreated bywgetrun bywww-data, child of your web server process” - the forensic story, pre-assembled, and correlated with the SSH login or process activity around it. - No baseline ritual. Watching writes needs no hash database. Deploys and package upgrades are recognised for what they are, and AI triage reads each change in context - so
apt upgradetouching 400 files doesn’t page anyone, and one odd write toauthorized_keysdoes.
Scan-based tools verify the entire filesystem against a cryptographic baseline. They catch modifications from outside the running system (a tampered disk image, changes made while the host was booted from other media) that runtime monitoring can’t see. They also run air-gapped with no platform behind them. If your threat model is offline tampering, AIDE alongside runtime FIM is a legitimate belt-and-braces answer - the tools compose rather than compete.
Which fits your servers?
- One personal box, no budget, comfortable with cron and mutt: AIDE works. Put the database somewhere the host can’t rewrite it, and actually read the reports.
- Compliance checkbox with an auditor who only asks “do you have FIM?”: either classic tool passes. Note that PCI DSS requires weekly comparisons at minimum and alerting on unauthorized changes. Auditors increasingly ask how fast you’d actually know.
- Production servers where a modified file should interrupt someone’s afternoon: you want event-driven FIM with attribution. That’s the eBPF security model - file integrity monitoring included with every AlertKick host alongside login, process, and network detections. Changes feed straight into compliance evidence so the audit answer writes itself.
The test worth applying to any FIM setup: if someone modified /etc/ssh/sshd_config right now, when would you find out, and would the alert tell you who did it? If the answers are “tomorrow, maybe” and “no” - that’s the gap. Start free, install the agent, touch a watched file, and watch the answer become “seconds, and yes”.
Frequently asked questions
- What is the difference between AIDE and Tripwire?
- Both are scan-based file integrity monitoring tools: they build a database of file hashes and attributes, then rescan the filesystem (typically from a nightly cron job) and report differences. AIDE is the simpler of the two - an unsigned hash database, a config file, and a cron job - so anyone with root can rewrite the baseline as easily as the files it describes. Open-source Tripwire adds cryptographic signing of the policy file and baseline with site and local keys, so tampering is detectable, at the cost of key management and a passphrase prompt on every legitimate baseline update.
- What are the weaknesses of scan-based file integrity monitoring?
- There are three structural gaps. Detection latency equals the scan interval, so a nightly scan can leave a modified sshd_config, added cron job, or trojaned binary undetected for up to 24 hours. A scan diff says what changed but never which process, user, or SSH session did it, so every real finding starts a manual forensic dig. And the baseline rots with every legitimate deploy or package upgrade, while the database itself sits on the host an attacker with root can touch.
- How does eBPF file integrity monitoring differ from AIDE or Tripwire?
- eBPF lets a monitoring agent observe file operations in the kernel as they happen, so the write to a watched path is the event and latency drops from hours to seconds. The kernel already knows the writing process, its binary path, user, parent chain, and session, so full attribution arrives with the event rather than after an investigation. There is no hash database to maintain and no baseline ritual, and the events stream off-host immediately, so there is nothing on the box for an attacker to tamper with.
- Does eBPF FIM replace AIDE completely?
- Not for every threat model. Scan-based tools verify the entire filesystem against a cryptographic baseline, which catches modifications made from outside the running system - a tampered disk image, or changes made while the host was booted from other media - and they run air-gapped with no platform behind them. If offline tampering is in scope, running AIDE alongside runtime eBPF FIM is a legitimate belt-and-braces setup; the tools compose rather than compete.
- Does AIDE or Tripwire satisfy PCI DSS file integrity monitoring?
- Either classic tool technically passes when the auditor only asks whether you have FIM. PCI DSS asks for comparisons at least weekly and alerting on unauthorized changes, which a nightly scan meets, but auditors increasingly ask how fast you would actually know about a change. Event-driven FIM with attribution answers that follow-up question with seconds rather than a scan interval, and tells you who made the change.
- Which file integrity monitoring tool should I choose?
- For one personal box with no budget, AIDE is fine, provided the database is stored somewhere the host cannot rewrite it and the reports are actually read. For a compliance checkbox, either classic passes, with the weekly-comparison and alerting caveats. For production servers where a modified file should interrupt someone, event-driven eBPF FIM with attribution is the right model - AlertKick includes it with every host alongside login, process, and network detections, with changes feeding compliance evidence.