Mitigations events¶
Every lifecycle step of Mitigations is an event: a record is created or activated, the configuration changes, a proposal is made, decided, halted or finished, a host is changed, verified or restored, a CVE has no mitigation, an AI agent drafts one. The extension emits these as mitigation.* events, so you can route them with Outputs or react to them with a D&R rule like any other event.
How events are delivered¶
The extension sends its events through a webhook adapter it creates in your organization, the same way the Vulnerability Reporting extension does. They arrive as events of that adapter, with target: edr and the event name in the routing event_type. They go to your organization's own hooks endpoint.
- Delivery is at least once. Every event has a unique
event_id, and a redelivery carries the same one. Deduplicate on it. - Events are sent in batches: one request carries a JSON array of at most 500 events or 1 MiB, in the order they were committed. The order across separate deliveries is not guaranteed, so do not rely on arrival order.
tsis the time of the change in whole seconds, so several events can share one. - Nothing is sampled. For changes the extension makes itself (proposals, rollouts, host states, coverage), it writes the event in the same transaction as the change, so the event exists if and only if the change happened. Record and configuration events are different: the extension compares the record with its last snapshot, so several writes between two comparisons can produce one event, and the first comparison for an organization produces none. The only rate limit is on a source that is unbounded by nature:
mitigation.would_blockis at most one per host and mitigation per 10 minutes.
The envelope¶
Every event carries these fields. schema is 1, and fields are only ever added within a schema version.
| Field | Meaning |
|---|---|
event_type |
mitigation.<name>. |
event_id |
Unique per event, the same on a redelivery. |
schema |
1. |
ts |
Unix time, in whole seconds, of the change. |
id, hash, cves |
The mitigation record and its version, and the CVEs it lists. Empty when the event is about none. |
sid, hostname |
The host, on per-host events. Empty otherwise. |
proposal_id |
The proposal, when one is involved. Empty otherwise. |
actor |
Who acted. A person's email, apikey:<key id>:<name>, dr:<rule name>, a record's hive author, or a system actor such as engine, sensor, platform, ext-vulnerability-reporting, ext-mitigation:auto or ext-mitigation:auto-propose. |
actor_kind |
user, api_key, ai_agent, dr_rule, engine, sensor, platform, vuln or unknown. |
ai |
{"agent": "<ai_agent record>", "session": "<AI session id>"}. Present only when actor_kind is ai_agent. |
actor_kind comes from how the request was authenticated, never from the text of actor. ai_agent means the platform minted the credential for an AI session. unknown is the kind of record and configuration events: the hive names the author of a write, a person's email or a key's name alike, but not what kind of credential it was.
Reacting to events¶
An event of the adapter is an ordinary sensor event, so a D&R rule matches it by name and reads its fields under event/. This rule opens a detection when an automatic proposal needs a decision:
detect:
target: edr
event: mitigation.proposed
op: and
rules:
- op: is
path: event/created_by_kind
value: engine
- op: is
path: event/state
value: awaiting_approval
respond:
- action: report
name: mitigation-proposal-awaiting-approval
priority: 2
Some patterns that work well:
- Page someone when
mitigation.haltedarrives for a mitigation of a CVE on your critical list. - Open a ticket on
mitigation.uncovered_exposurewhenevent/kev/known_ransomwareis true, without using AI drafting at all. - Post to a channel on
mitigation.record_activatedormitigation.config_changed, so a change ofmodeor ofai.agentis never silent. - Count
mitigation.verifiedperidto show coverage progress. - Alert on
mitigation.would_blockfor a mitigation in monitor: it may be a legitimate use you are about to break, or an exploit attempt that was not stopped.
These events arrive after the change, in batches, so do not build a rule that needs one the instant it happens.
Case filing¶
If the Cases extension is subscribed, the extension installs a rule that files per-host events as a case under the host and the mitigation. It files every per-host event except mitigation.removing and the monitor events (mitigation.monitoring, mitigation.would_block and mitigation.monitor_complete). A removal that is starting does not open a case, the mitigation.removed that ends it does. A skip because the thing is in use is filed into a separate case, grouped by host, mitigation and record version. The monitor events have their own rule: a mitigation.would_block, or a mitigation.monitor_complete that is not clean, is filed into the host's and the mitigation's case as the detection mitigation-would-block, priority 0. A clean monitor window files nothing. Events without a sid are never filed as cases.
Records and configuration¶
The extension learns of a write to a mitigation record, or to its own configuration record, from the hive's audit entry. It reads the record, compares it with its last snapshot, and writes the events and the new snapshot together. The extension's regular pass, which runs every 30 minutes for an organization with work to do and reads an idle organization's records once a day, catches an audit entry that was lost. Events found that way carry observed: reconcile instead of observed: audit.
The first comparison for an organization fills the snapshot with no event, so subscribing does not announce every existing record as created.
| Event | When | Fields besides the envelope |
|---|---|---|
mitigation.record_created |
A record the extension had not seen appears. | status, enabled, title, breakage, platforms, action_type, created_by, created_by_kind, observed |
mitigation.record_changed |
A record's hash changed. | previous_hash, status, title, breakage, action_type, superseded_proposals (how many approved proposals of the old version this ended), observed |
mitigation.record_activated |
status went from draft to active. |
previous_status, enabled, observed |
mitigation.record_deactivated |
status went from active to draft. |
previous_status, removing_hosts (how many hosts the engine starts removing from), observed |
mitigation.record_enabled, mitigation.record_disabled |
The record's enabled flag changed. | status, observed. removing_hosts on disabled. |
mitigation.record_deleted |
The record is gone. | previous_status, removing_hosts, observed |
mitigation.record_unparseable |
A stored record this version cannot read. | problems (codes, at most 20), observed |
mitigation.config_changed |
The extension configuration changed. | changed (the dotted keys), and before and after for mode, max_auto_breakage, auto_propose.enabled, ai.agent and ai.capability when they changed. |
Deactivating, disabling or deleting a record starts the removal from its hosts at once (mitigation.removing). Changing a record supersedes the approved proposals of its old version at once.
Proposals and rollouts¶
Proposal events carry the proposal's hosts (a count), canaries, breakage, automated, state, enforcement, created_by_kind and decided_by_kind, and created_by_ai, decided_by_ai or promoted_by_ai when an AI session acted. Every proposal event also carries trigger, and auto_batch_id and follows when they are set.
| Event | When | Fields besides the proposal's |
|---|---|---|
mitigation.proposed |
A proposal is created. | trigger (request, exposure, activation or reconcile), auto_batch_id, follows, activated_by, activated_by_kind and activated_by_ai (for activation), note, and the audit summary. |
mitigation.approved, mitigation.rejected |
A decision. | automated, note. automated: true means the engine's own auto mode approved it. |
mitigation.auto_approval_withheld |
auto mode did not approve a proposal. |
reason: one_way_change, in_use, reboot_change or breakage_above_max. |
mitigation.audit_done |
Every host of an audit answered, or the audit passed its deadline. | audit_id, hosts, answered, would_apply, one_way, refused, unsupported, no_answer, in_use_yes |
mitigation.wave_started |
The engine starts tasking a wave of hosts. | wave (0 for canaries, 1 for the rest), kind (canary, rest, promotion_canary or promotion_rest), hosts or, for a promotion, include |
mitigation.halted |
A rollout or a promotion stops. | reason, detail, promotion. Reasons include canary_not_verified, canaries_removed, one_way_canary, canary_skipped_in_use, canary_monitor_unavailable, promotion_canary_failed, no_clean_canary, leader_halted, leader_rejected, leader_superseded and leader_expired. |
mitigation.superseded |
A record change replaced an approved proposal. | new_hash (empty when the record was deactivated or deleted), reason, detail |
mitigation.proposal_expired |
Nobody decided within 7 days. | detail |
mitigation.rollout_done |
Every host of the proposal was tasked. | applied, failed, skipped, not_reached, monitoring, removed, in_flight (hosts still moving: tasked, being removed, waiting for a reboot, or drifted) |
mitigation.promoted |
Hosts were promoted from monitor to enforce. | promoted_hosts, automated, promoted_by_ai, and the note of the call |
mitigation.promotion_withheld |
monitor.auto_promote did not promote a host. |
reason: reboot_change, one_way_change or in_use. hosts. |
A follower proposal of an automatic batch has no canary wave. Its one mitigation.wave_started is of kind rest.
Per host¶
Every per-host event carries sid, hostname, id, hash, cves, proposal_id and state, and when present reason, detail, not_after (the unix time at which the sensor removes the mitigation by itself) and, for a host in monitor, enforcement: monitor and monitor_class.
| Event | When | Fields besides the common ones |
|---|---|---|
mitigation.applied |
The apply landed. | state is applied, or pending_reboot when the change takes effect after a restart. promoted_from: monitor after a promotion. |
mitigation.verified |
The sensor read the change back and confirmed it. | |
mitigation.skipped |
The host was not changed. | state: unsupported, not_applicable, skipped_in_use (with in_use) or not_reached (with op). |
mitigation.failed |
The apply or the removal failed. | reason. stage: promotion for a refused promotion. |
mitigation.drift |
The sensor saw the host change away from the mitigation. | |
mitigation.blocked |
An enforced mitigation blocked a connection or an execution. | denials (how many denials this one report stands for, since the sensor folds repeated ones together), first_seen_ms and last_seen_ms. One event per block report from the sensor, so sum denials to count. |
mitigation.monitoring |
A host started monitoring. | monitor_class |
mitigation.would_block |
A monitored mitigation would have blocked something. | At most once per host and mitigation per 10 minutes. |
mitigation.monitor_complete |
A host's monitor window ended. | class (clean, would_block or incomplete) and clean. |
mitigation.removing |
The extension starts a removal. | cause: manual, patched, expired, replaced, record_deactivated, record_deleted, sensor_deleted or uninstall. A removal that is already wanted emits nothing again. |
mitigation.removed |
The removal was confirmed, or it was unconfirmed at the mitigation's not_after. |
cause, confirmed, after_reboot |
mitigation.expired |
The mitigation reached its expiry. | Read state and reason: the sensor may have removed it, found the host drifted (expired_drift), failed to remove it (expiry_failed), or removed it with the change still waiting for a reboot. |
mitigation.restored |
A deleted sensor came back. |
Coverage and AI drafting¶
None of these has a sid.
| Event | When | Fields besides the envelope |
|---|---|---|
mitigation.uncovered_exposure |
A known-exploited CVE has exposed hosts and no record, active or draft, lists it. Once per episode. kev and packages carry the facts the extension has at that moment. The kev entry and the package names come from the CVE's findings that were waiting in the inbox, and the KEV entry in Vulnerability Reporting's totals adds name, vendor, product, and the dates and known_ransomware when it sends them. An exposure found only by the daily coverage check has no package names. mitigation.draft_requested carries the same facts. |
cve, episode, hosts_seen (a count), platforms, packages (names, at most 20), kev (date_added, due_date, vendor, product, name, known_ransomware), severity, epss |
mitigation.covered |
A record listing the CVE appeared, which ends the episode. | cve, episode, id, status, observed |
mitigation.draft_requested |
The engine asked your AI agent to draft a record. | The fields of mitigation.uncovered_exposure, plus round, agent, capability and reason (new_exposure, retry_after_30d or requested_by). |
mitigation.draft_outcome |
The agent reported, or the engine activated the draft the agent reported. | cve, round, outcome (drafted, activated, no_mitigation or failed), record_id, summary, ai |
An episode is one stretch of time during which a CVE had exposed hosts and no record. If you delete the covering record, or edit it so it no longer lists the CVE, while hosts are still exposed, the next episode opens as follows. With an AI agent set, the extension checks coverage at once, opens episode 2 and emits mitigation.uncovered_exposure again. Without an agent there is no such check: episode 2 opens when the next new finding for the CVE arrives. More hosts of the same episode only raise hosts_seen.
The rules the extension installs¶
The extension installs the rules it needs in your organization, and they are listed with its other rules in the D&R view. Besides the rules that carry sensor replies and exposure events to it, these are the ones that matter for events:
ext-mitigation-recordswatches the hive's audit entries for themitigationhive and for the extension's configuration record, and sends them to the extension.ext-mitigation-ai-draftexists only whileai.agentis set, and starts the drafting agent. See AI drafting.- The case rules described above.
You can write your own rules on mitigation.* events next to these. Do not edit the rules the extension installs: it rewrites them on its regular pass.
Volume¶
For one organization with 100,000 exposed hosts, one CVE and one record in approve mode:
| Step | Events |
|---|---|
| Exposure | 100,000 Vulnerability Reporting opened events feed the inbox. One mitigation.uncovered_exposure only if no record exists. |
| Auto-propose | 400 mitigation.proposed for hosts split into proposals of 250, and as many mitigation.approved once approved. |
| Rollout | Two mitigation.wave_started for the leader, one for each follower, and one mitigation.applied and one mitigation.verified per host. |
| Steady state | One mitigation.blocked per block report from a sensor, each folding repeated denials together. |
| Patch day | One mitigation.removing and one mitigation.removed per host. |
A request carries up to 500 events, so the 200,000 mitigation.applied and mitigation.verified events of this rollout are about 400 requests to your hooks endpoint, not 200,000.