A sector node where every file change is recorded, every audit event is captured at the kernel level, every critical file is hashed and monitored, and every deviation generates an alert -- that is a defended node. This is the foundation of operational security at the systems level.
1Use SHA-256 for integrity. MD5 is broken -- collisions are engineered. SHA-256 has no known practical attacks.
2AIDE detects WHAT changed. auditd tells you WHO changed it, WHEN, and HOW. Both are required for a complete FIM implementation.
3The AIDE database must be protected: chattr +i aide.db. If the attacker can update the database, FIM provides no protection.
4Audit rules use -k keys for labeling. Use ausearch -k keyname to pull all related events instantly during an investigation.
5-e 2 in audit rules locks the audit configuration until reboot. Prevents an attacker from silencing auditing after compromise.
6Forward audit logs off-node in real time. Local logs can be deleted. Remote logs cannot be retroactively modified by the attacker.
7Check for new SUID files daily. A new /tmp/.bash with SUID root is the most common post-compromise persistence mechanism.
8dpkg --verify detects tampering of system binaries using the package manager's own checksums. Run it during any incident investigation.
9An unreviewed FIM alert is the same as no FIM at all. The system is only as effective as the human review process attached to its output.