Integrity Measurement Architecture measures files or other system objects as they are accessed and records those measurements for later verification. It helps detect unauthorised changes to critical software and configuration. Defenders should decide which files must be measured or appraised, protect the measurement log, and compare results against a trusted baseline during incident response.
How IMA fits into kernel integrity monitoring
IMA sits in the Linux kernel and records integrity-related measurements as files or other system objects are accessed. Those measurements can later be checked against a trusted policy or baseline, which makes it useful for spotting tampering in executable code, configuration, and other sensitive assets that should not change quietly.
In practice, IMA is not a one-time scan. It is a measurement-and-verification mechanism that keeps producing evidence over time, so defenders can answer two different questions: what was seen on the system, and whether that state still matches what was expected. That distinction matters when you need to investigate drift, suspicious changes, or a system that may have been altered after boot.
What IMA measures and when it records it
IMA focuses on objects that matter to trust, especially files that influence system behaviour. A measurement can happen when an object is opened, executed, or otherwise accessed according to policy, and the result is added to an integrity log rather than being treated as an immediate block. That log becomes the record you can compare later, which is why measurement policy is as important as the hashing itself.
The practical choice is which objects should be in scope. Measuring too little leaves gaps in visibility, while measuring everything can create noise and operational overhead. Good IMA policy is usually selective, aimed at critical binaries, libraries, configuration files, and any other object where unauthorized modification would meaningfully change the trustworthiness of the host.
Why the measurement log and trusted baseline matter
IMA is only as useful as the chain of trust around its records. If an attacker can alter the measurement log, hide policy changes, or replace the baseline used for comparison, the measurements stop being reliable evidence. That is why defenders need to protect the log, preserve it for later review, and make sure the baseline comes from a trusted source, not from the same potentially compromised system without verification.
For Linux hardening teams, this is the same control logic used by file integrity monitoring, but enforced in-kernel. A well-built deployment gives you a defensible record of what was present and when, which supports incident response, forensics, and configuration drift detection without depending only on periodic scans.
Risk and Threat Considerations
IMA reduces the chance that modified system files go unnoticed, but it does not automatically prevent tampering. If measurement scope is incomplete, if the baseline is stale, or if the log is not protected, an attacker can still change critical software and configuration while leaving weak evidence behind.
Failure mechanism: An adversary changes a critical file, exploits gaps in what is measured, or tampers with integrity evidence so the defender’s comparison no longer reflects the real system state.
Impact: The host may continue running with altered binaries or configuration, which can undermine detection, complicate incident response, and allow persistence through trusted system paths.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-8 — Audit Log Management | IMA relies on protected integrity records for later verification. |
| Recommendation — Protect integrity logs and review unauthorized changes to critical files and baselines. | ||
| NIST SP 800-53 Rev 5 | SI-7 — Software, Firmware, and Information Integrity | IMA measures objects to detect unauthorized integrity changes on hosts. |
| AU-9 — Protection of Audit Information | IMA measurement logs must be protected so evidence remains trustworthy. | |
| Recommendation — Apply SI-7 to detect and verify unauthorized file and configuration changes. Protect measurement records from modification, deletion, and concealment. | ||
| ISO/IEC 27001:2022 | A.8.16 — Monitoring activities | IMA supports monitoring host integrity through recorded measurements and review. |
| Recommendation — Monitor integrity events and investigate deviations from the approved baseline. | ||
| OWASP ASVS | V15 — Secure Coding and Architecture | Integrity verification of critical software aligns with secure implementation and trust boundaries. |
| Recommendation — Design integrity checks into critical software paths and trust decisions. | ||
Practitioner Guidance
What to verify: Confirm that your IMA policy measures the assets that actually define system trust, not just a generic file list. The best indicator of usefulness is whether a change to the measured set would materially affect your ability to detect compromise or unauthorized drift.
What good looks like: A defender can explain which objects are measured, where the integrity records are stored, how the baseline is established, and who is responsible for reviewing discrepancies. If those answers are vague, the control exists in name more than in practice.
Practitioner takeaway: Treat IMA as evidentiary infrastructure, not a standalone shield, because its value depends on disciplined policy, protected logs, and a baseline you can trust during an incident.
Related resources from NHI Mgmt Group
- Guide: Linux Server Hardening Guide
- Integrity Measurement Architecture (IMA)
- Why do non-human identities complicate zero trust architecture?
- How should organisations balance innovation work with architecture maintenance?
- What are the signs that enterprise information security architecture is not mature enough to guide security work?