Monitor Mode: Judging a Window¶
A mitigation in monitor mode is live on the host and blocks nothing. Each time it would have blocked something, it reports that instead. After a window of time you look at what it reported and decide whether to turn it on. This page covers how to read that result and what to do about it. For how a monitor proposal reaches hosts, see Mitigations.
A good mitigation almost never would-blocks. A hit means one of three things: someone ran a test, an attacker tried the thing you are blocking, or something in production depends on it and enforcing would break it. The extension helps you tell which.
While a host monitors it is not protected, and its finding is not marked mitigated. Monitor mode is a way to learn what enforcing would do. It is not a lighter form of protection.
The result at a glance¶
Open a monitor proposal, or a record that has monitoring hosts, and look at Monitor results. It gives:
- one sentence: the verdict for the whole fleet;
- the counts it rests on: hosts clean, hosts that would have blocked, hosts still in their window, hosts not fully observed, and the total number of would-blocks;
- when the last open window ends, with the time zone named;
- What tried it: the processes behind the hits, grouped across hosts.
On a record page, the result adds up every open monitor proposal of that record. In a proposal, it covers that proposal only.
The verdict¶
The verdict is one of five fixed outcomes. There are no thresholds to tune: the rule is the same in every organization. A sixth value, not_observed, appears in the API when no host is observing (see below).
| Verdict | What it says | What to do |
|---|---|---|
| Still watching | Nothing would have been blocked so far, and some hosts are still in their window. | Wait. A hit on any host ends the wait: hits decide before the windows do. |
| No hits | Every window finished and nothing would have been blocked. Enforcing is unlikely to break anything these hosts did during the window. | Promote the hosts to enforce. The result only covers what the hosts did during the window: a job that runs monthly is not seen by a 24-hour window. Choose a window that covers your business rhythm. |
| No hits, not fully observed | Every window finished with no hit, but some hosts may have missed events (the sensor could not observe everything during the window). A quiet window proves less on those hosts. | Open the hosts listed as not fully observed. Promote the others, and run the monitor again on the rest, or enforce them knowingly. |
| Hits on one host | Exactly one host would have blocked something. | Look at that host: it is either an attack, or one machine that needs what the mitigation blocks. Open What tried it and the host's Timeline. If it is an attack, investigate. If it is a legitimate dependency, promote the clean hosts: include: clean leaves this host out, because a host with a hit is not clean. |
| Hits on several hosts | Two or more hosts would have blocked something. Enforcing would likely break something they use. | Do not promote everything. Read what tried it: the same process on many hosts is usually a real dependency. The record may need changing, or this mitigation may not suit these hosts. If the process looks like an attack instead, investigate it. |
Two details about how the verdict is decided:
- Hits win. A hit on one host while others are still in their window is Hits on one host, not Still watching.
- A host that cannot monitor (the sensor does not support the mitigation, or the apply failed) never holds a verdict open. The console says so next to a quiet verdict, for example "No hits on the 40 observed hosts; 3 not observed". Check those hosts before you treat the result as covering the fleet.
The console also shows a few lines for the moments between these outcomes: no host has started monitoring yet, every host is already being switched to enforce, or the rollout is still reaching hosts.
What tried it¶
When a host would-block, the sensor says what triggered it. The host panel lists up to five distinct causes per host, newest first, each with:
| Field | Meaning |
|---|---|
| Process | The program that made the attempt. |
| Command line | Its command line, when the sensor reports one. |
| User | The user name, a Windows account SID, or uid:<n> when only the numeric id is known. |
| Parent process | The program that started it. |
| Target | What was hit: a kernel module, a port, a service, a scheduled task, a file, a web path. |
| First source address | For a blocked inbound connection or web request, where it came from. |
| Count, first and last time | How many times and when. |
A field the sensor did not report stays empty. The extension never fills one in by guessing.
Two attempts are the same cause when they share the kind of attempt, the process, the user and the target. A new cause is recorded at once. A repeated one updates its count about every 10 minutes. The count of would-blocks for the host stays exact, even when the list is capped at five.
Grouped across hosts. The Monitor results block groups causes across the fleet, so a dependency reads as one line: "systemd-modules-load, as root, on 38 hosts, 4,100 times". The five biggest groups are shown, ordered by the number of hosts, then by count, then by how recent they are.
Open in the host's Timeline. From a host's culprit list, Open in the host's Timeline jumps to that host's Timeline at the time of the hit, filtered to the MITIGATION_WOULD_BLOCK event. There you see the same attempt in context: what else ran on the host just before and after.
The monitor window¶
The window is how long each host is watched before its result counts. It starts when the sensor confirms the monitor is in place on that host. It is your choice, and the extension does not override what the author of a record asked for.
The window is chosen in this order. The first one that is set wins:
- The window set on the proposal, when you propose by hand (Monitor window in the propose dialog, or
monitor_foron theproposerequest). - The record's own
monitor_for, set by whoever wrote it, including an AI agent. - The organization's default window,
monitor.default_windowin the extension configuration (Default monitor window in the How this org runs strip). - 24 hours.
Auto-propose has no one to choose: it uses the record's window, then the organization's default, then 24 hours.
Whatever its source, a window is 10m to 30d, and it always ends before the mitigation's own expiry (with a margin of up to an hour, never more than half the lifetime). A record with expires_after: 24h and a requested window of 48 hours watches for 23 hours. A proposal shows the window it froze and where it came from: the proposal, the record, the organization's default, or the built-in default.
A window is complete only once a read of the host taken after the end confirms it. Hosts then classify as clean (nothing would have blocked and nothing was missed), would_block or incomplete. A host that would-blocks is classified at once, without waiting for the window to end.
You promote clean hosts to enforce from the web app or with the promote request. See Monitor mode for the promotion rules, or turn on monitor.auto_promote to promote clean hosts without a person.
Detection on a would-block (optional)¶
By default a would-block creates events and shows up in the console, and nothing else. If you want a detection and a case for it, turn on monitor.would_block_detection.
When it is on, the extension installs a managed rule named ext-mitigation-cases-monitor in your organization's D&R rules, where you can see it like the other rules the extension installs. The rule creates a detection named mitigation-would-block, which the Cases extension groups into one case per host and mitigation, when:
- a monitoring host reports a would-block (at most once per host and mitigation per 10 minutes, except a new cause, which is reported at once, up to five per host; never for a test), or
- a host's window ends and the host is not clean.
The detection carries the mitigation id, its CVEs, the kind of attempt, the target and the process. A clean window creates nothing.
When it is off, the extension removes the rule. An organization that had this rule from an earlier version loses it the first time the extension's scheduled pass runs, unless it turns the option on.
To turn it on, use Report a detection on each would-block in How this org runs on the Mitigations page, or set it in the configuration, which Git Sync can carry:
Saving the configuration needs ext.conf.set. The change emits a mitigation.config_changed event like any other configuration change.
Until you turn this on there is no alert on a would-block. If you want your own routing instead, write a D&R rule on the mitigation.would_block event: see Events.
Run a test¶
A quiet monitor window has a weak spot: it may be quiet because the monitor is not watching, not because nothing happened. Run a test is meant to close that gap. It sends a harmless attempt to a monitoring host, using your own access, and the monitor should report it. A test hit is marked Test and never counts toward the verdict.
Run a test is coming with a sensor update, because the sensor itself has to make the attempt. Until a host runs that sensor version, the button is not shown, and it is offered per host only where the sensor and the kind of mitigation support it. A mitigation whose attempt could not be made harmless on a host has no test there.
Once available, a test on a host ends as seen (the monitor reported it: it is watching), not seen (the monitor did not report it, and may not be watching that host: check its sensor), or waiting (a result usually takes a minute or two).
Reference¶
| Item | Details |
|---|---|
monitor.would_block_detection |
Boolean, false by default. Creates the ext-mitigation-cases-monitor rule. |
monitor.default_window |
<n>m, <n>h or <n>d, 10m to 30d. Empty means 24h. |
propose with monitor_for |
Same form. Only for a monitor proposal: any other proposal refuses it. |
monitor_window_source |
On a proposal: proposal, record, org or default. |
status with proposal_id |
A monitor proposal returns monitor_verdict: {verdict, hosts_total, hosts_pending, hosts_in_window, hosts_clean, hosts_would_block, hosts_incomplete, hosts_promoting, hosts_promoted, hosts_unobserved, would_block_total, window_ends_at, top_culprits}. |
status with id |
The record's monitor_verdict, added up over its open monitor proposals. Absent when it has none. |
verdict |
in_progress, no_hits, incomplete, one_host, several_hosts or not_observed (no host is observing: all are being promoted, already enforcing, or cannot monitor). First match wins, in this order: several_hosts, one_host, in_progress, incomplete, no_hits, not_observed. |
would_block_culprits |
On each host row: up to five of {kind, process_path, command_line, user, parent_path, target, source, count, first_at, last_at, test}. |
would_block_count |
The would-blocks that count. Tests are left out. |
test_supported |
On each host row: whether a test can run there. |
test_monitor |
Needs mitigation.get, and runs with the caller's own access. Today every host answers unavailable, and nothing is sent. |
mitigation.would_block event |
Carries the culprit. |
status with state: monitoring and monitor: would_block, with a proposal_id or an id, lists exactly the hosts that would have blocked.