Skip to content
Detection & ResponseMarkdown

File integrity

Changes to each device's system files and binaries, reported with what changed, and searchable across the realm.

AvailableAPI

A changed system binary or configuration file is one of the clearest signs of an intruder, and of a change no one recorded. The sensor watches the device’s system folders and reports every file added, changed or removed, with its checksums, owner and permissions before and after.

  • Who: an administrator of the realm, in a group holding RealmOwner or RealmViewer on the realm or a realm above it (see Delegated administration). Reading needs no more than RealmViewer; adding folders is a group configuration change.
  • Where: the API.
  • First: an enrolled device. Watching starts when it enrolls.

Out of the box the sensor watches these folders, and everything below them:

SystemFolders watched
Linux/etc, /usr/bin, /usr/sbin, /bin, /sbin, /boot
macOS/etc, /usr/bin, /usr/sbin, /bin, /sbin

It records each file’s checksums (MD5, SHA-1, SHA-256), owner, group, permissions, size and time, and compares them at each scan. A scan runs when the sensor starts and on a schedule, every 12 hours by default.

When a change shows up depends on the folder:

  • The default folders are compared at each scan, so a change there shows up at the next scan, up to 12 hours later.
  • Folders you add with realtime="yes" report a change as it happens, usually within seconds (see Watch another folder on your devices).

To hear about changes in a default folder sooner, add it again as real-time, or shorten the scan schedule, in the group configuration.

Each change becomes an alert, with what changed: which attributes, the size and checksums before and after, and, for folders set to report changes, what changed in a text file’s content. The alert says who owns the file now; it doesn’t say which user or process made the change.

Nothing to turn on. Through the API (Call the API), read the realm’s changes over a range (by kind, and the paths and devices that change most), then one device’s monitored files by its sensor id, with when its last scan ran:

Terminal window
curl "https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/summary?from=<RFC 3339 time>&to=<RFC 3339 time>" \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{}'
curl "https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/files?agent=<sensor id>" \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-d '{"page": 1, "pageSize": 50}'

GET https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/files/scan?agent=<sensor id> says when that device’s last scan started and ended. The change alerts themselves are Security events with preset=fim, filterable by path and change.

LimitDefaultCan you change it?
Folders watchedThe system folders aboveAdd folders in the group configuration
Scan scheduleWhen the sensor starts, then every 12 hoursYes, <frequency> in the configuration reference
Real-time reportingOff for the default foldersYes, per folder you add
Content changes in alertsOffYes, per folder you add (report_changes)
CoverageLocal disksNetwork shares and container images aren’t covered
  • Noise left out. Files that change by design, such as logs, are left out.
  • Gentle on the device. The sensor runs at low priority and paces its reports, so it doesn’t load the device.
  • Folders and schedule are part of the realm’s group configuration.
SymptomCauseFix
A change in /etc hasn’t shown upDefault folders report at the next scanWait for the scan, or add the folder as real-time
A folder you added reports only at scansIt didn’t exist on the device when the sensor startedCreate it, then restart the sensor (Sensor actions)
A device’s last scan is oldThe device is offlineCheck its status in its device view

The changes are themselves alerts in the security log; reading them writes no audit record.