Skip to content
Anexet
Abstract illustration for “File Integrity Checking”: padlock surrounded by digital fragments

File Integrity Checking

File integrity checking is the practice of verifying that files have not been altered without authorization, by comparing their current state against a trusted baseline.

Anexet Team
August 14, 2026Read 3 min

What the check compares

A baseline is a record of how files should look: a cryptographic fingerprint of each file's content, together with its size, permissions, owner, and timestamps. Every later check compares the current state with that record. The question is therefore not whether a file looks suspicious, but whether it still matches the baseline.

The same idea is called file integrity monitoring (FIM) when it runs continuously across a set of servers and workstations. The underlying check is identical. What changes is how often it runs and who reads the results.

How the method works

The comparison is exact. A hash changes completely when one byte changes, so there is no partial match and no doubt about whether content is identical.

The method runs in five stages, and each stage builds on the one before.

  1. 1
    Baseline creation

    The files to protect are cataloged. For each one, a cryptographic hash of the content is stored with metadata: size, permissions, ownership, and timestamps.

  2. 2
    Verification

    On a schedule or in response to events, the values are recalculated and compared with the baseline.

  3. 3
    Reporting

    Differences are reported as change events, showing what changed and when.

  4. 4
    Triage

    Each change is matched against expected activity: an approved patch, a configuration deployment, an application update, or something unexplained.

  5. 5
    Baseline update

    Legitimate changes are absorbed into a new baseline, so the reference stays current.

Scheduled or real-time checking

Scheduled checking walks the protected set at fixed intervals. It is simple and predictable in resource use, but it is blind between runs: a file can be changed, used, and restored before the next pass.

Real-time checking uses file-system events and reports a change the moment it happens. This shortens detection time and adds the identity of the responsible process and user. The cost is constant agent activity and more noise to filter.

What is typically protected

Teams usually protect a short list of targets, chosen for the damage a silent change would cause.

TargetWhy it is watched
Operating system binaries and librariesComponents an attacker would replace to persist
Configuration filesOne edited line can disable a control or open access
Application code and web contentInjected code reaches users directly
Scheduled tasks, services, and startup entriesCommon persistence locations
Security tools and their configurationDisabling the monitor is a standard step
Records that must not changeLogs, archives, and financial or evidentiary files

Uses beyond intrusion detection

The same mechanism serves several purposes. It detects unauthorized change (the security use), confirms that approved changes deployed as intended (the operations use), confirms that stored archives have not degraded through media faults (the preservation use), and shows that records were not modified after the fact (the evidentiary use). The last matters most for sensitive data that carries retention duties.

Checking a downloaded program against a published hash applies the same idea to a single file at a single moment.

What it looks like in Anexet

The Anexet administrator console keeps hash banks in the agent profile. The File system tab lists the banks applied to file system monitoring, with the number of files and hashes each one holds. The statistics window shows when a bank was last updated and when it was last checked.

Shows which banks are active in the profile and how many files each one covers.

1 / 2

Limits and practical problems

The method has five practical limits. A change made by an insider threat with legitimate access looks like any authorized change, so the check alone is not enough. Its value depends on someone triaging each report promptly.

  • Change volume: without tight scoping, noise buries the reports and they stop being read.
  • Detection, not prevention: a report shows a change but does not stop it. Blocking has to come from a separate control such as data loss prevention.
  • Baseline trust: a baseline taken from a compromised system treats the compromise as normal.
  • Content-blind: the check shows that a file differs, not whether the difference matters.
  • Runtime and in-memory attacks: attacks that never touch a monitored disk file are out of scope.

Why it remains standard

Despite these limits, most security frameworks and payment and sector standards require integrity checking, and it is a common part of compliance monitoring.

It is cheap to run and gives unambiguous evidence. It is one of the few controls that can prove a negative: that a critical file has not changed since the last verified state.

Further reading: Mechanisms for ensuring the security of information systems; Encryption, coding and hashing – what is the difference?.

A changed file rarely announces itself. The baseline is what makes silence mean something.

Anexet Team

Frequently Asked Questions

Common questions about this term and how Anexet handles it.

No. It detects them. The check reports that a file changed, but it does not stop the change, so its value depends on someone reviewing the report promptly.

Scheduled checking runs at set intervals. It is simpler, but it cannot see changes made between runs. Real-time checking reports a change as it happens and names the responsible process and user, at the cost of constant agent activity and more noise.

The baseline is the reference that every later check is compared against. If it is taken from a compromised system, the compromise looks normal. It must come from a known-good state and be protected from modification.

No. Antivirus looks for known malicious code, while integrity checking flags any change from the baseline, whether or not the change is malicious.

Protect your data with Anexet

See how Anexet stops data leaks, monitors employee activity, and keeps you compliant, in a quick live demo.

Request a demo