Course contentsShow
← Security
Lesson 1500 of 3,05230. Operating System Security - MonitoringFree lesson

File Integrity Monitoring Fundamentals

Understanding FIM concepts, objectives, and how hash-based file monitoring detects unauthorized changes to critical system files.

File Integrity Monitoring Fundamentals

What you'll learn: How File Integrity Monitoring (FIM) uses cryptographic hashes to detect unauthorized changes to critical system files and directories.

What is File Integrity Monitoring?

File Integrity Monitoring is a security control that tracks changes to important files and directories by creating cryptographic "fingerprints" (hashes) of their contents. Think of it like taking a photograph of every critical file on your system—any alteration to the file creates a different fingerprint, alerting you to potential tampering, malware, or unauthorized modifications.

Core Concepts

Baseline Creation: FIM begins by calculating hash values (like SHA-256) for known-good files—your system's binaries, configuration files, and other critical assets. This baseline represents the trusted state of your system.

Change Detection: The FIM system periodically recalculates hashes for monitored files. If a new hash doesn't match the baseline, a change has occurred. Since cryptographic hashes change dramatically with even a single byte modification, this detection is highly reliable.

Why This Matters: Attackers often modify system files (like /bin/bash, configuration files under /etc, or Windows system DLLs) to establish persistence or hide their activities. FIM catches these changes even if file timestamps are manipulated.

Key Objectives

  • Detect unauthorized changes to critical system files, configurations, and executables
  • Support compliance requirements (PCI-DSS, HIPAA, SOX)
  • Identify malware that modifies system components
  • Alert on configuration drift from approved baselines

Unlike log-based monitoring (which you've already learned), FIM focuses on the state of files rather than events. It complements your audit logs by answering "what changed?" rather than "what happened?"

Key Takeaway: File Integrity Monitoring uses hash-based comparison against a trusted baseline to detect unauthorized modifications to critical system files, providing essential protection against tampering and malware persistence mechanisms.