Join our Newsletter — 33% off our NHI Course

FIM Category

A FIM Category is the path scope that defines what files or directories are being monitored. In osquery, it acts as the watched target set for integrity events, and the way it is written determines whether the agent sees existing files, future files, or both.

What the FIM Category actually scopes

The FIM Category is the boundary-setting part of file integrity monitoring, it tells the agent which paths are in scope and, just as importantly, which paths are not. In osquery-style integrity monitoring, that scope determines whether the watcher sees only pre-existing files, only future files, or both, so the category definition is part of the detection model, not a cosmetic label.

Because the category defines the target set, its precision directly affects signal quality. A scope that is too broad produces noisy events and wasted review effort, while a scope that is too narrow leaves important file changes invisible.

How path scope changes what integrity events are captured

In practical terms, the category controls what the monitor subscribes to and how it interprets file presence over time. A path expression aimed at an existing directory behaves differently from one aimed at a pattern that will match future files, and those differences matter when you are trying to track configuration drift, tampering, or unexpected content creation.

This is why FIM configuration has to be read as an event-selection problem. The same monitoring system can be used to observe static configuration files, directories that should remain stable, or locations where new objects should never appear without review.

When the scope is defined carefully, file integrity events become more actionable because the monitor is watching for meaningful change rather than every routine filesystem operation. When it is defined loosely, the resulting event stream can hide the very changes you care about.

Common scope mistakes and why they matter

The most common mistake is assuming that a category name alone guarantees coverage. The real behavior comes from how the path is written, whether recursion is implied, and whether the monitor is intended to match an existing object, a future object, or both. Small syntactic choices can materially change what is observed.

Another failure mode is mixing operational intent with storage layout. If the monitored set is defined around convenience rather than the actual security boundary, changes can land outside the watched scope even though they are functionally part of the protected area.

Good integrity monitoring therefore depends on exact scope definition. The category must reflect the assets you are trying to protect, the paths that matter to the environment, and the change patterns that would indicate compromise or misconfiguration.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 CIS 8.2 — Inventory and Control of Software Assets File integrity scope depends on knowing which paths and assets are under monitoring.
CIS 8.7 — Email and Web Browser Protections File monitoring often supports detection of malicious content placement and persistence mechanisms.
CIS 11.1 — Data Recovery Process Integrity monitoring supports validating that critical files remain unchanged after incidents or recovery.
Recommendation — Align monitored file paths to inventoried assets so integrity checks cover the intended scope. Use integrity monitoring to detect unauthorized file changes tied to malware staging or persistence. Verify critical file baselines so recovery workflows can confirm integrity after restoration.
NIST CSF 2.0 DE.CM-07 — Monitoring for Unauthorized Personnel, Connections, Devices, and Software FIM category scope determines whether unauthorized file changes are actually monitored.
PR.DS-6 — Data-at-rest integrity is protected FIM categories are a direct mechanism for observing and protecting file integrity.
DE.AE-03 — Event data are collected and correlated from multiple sources and sensors FIM events become useful when the scoped file set produces meaningful telemetry.
Recommendation — Define file scopes that let monitoring detect unauthorized changes in critical locations. Apply integrity monitoring to the files and directories whose immutability matters most. Tune integrity event scope so collected data stays relevant and correlatable.

Practitioner Guidance

What to watch for: Treat the FIM Category as a configuration control point, not a naming exercise. If the monitored path does not match the intended asset boundary, the agent may appear healthy while silently missing relevant file changes.

Practitioner takeaway: Validate category scope against the actual filesystem behavior you want, then confirm the resulting event set with test changes before relying on it for production detection.