Mitigations¶
Mitigations applies a small, reversible change to hosts that are exposed to a known-exploited vulnerability and cannot be patched yet. A mitigation can block a kernel module, turn a service off, deny a port, deny a web path, set a configuration line or a registry value, or refuse to run a program. The sensor applies the change, reads the host back to confirm it, and removes it when the host is patched, when the mitigation expires, or when someone removes it.
A mitigation is a record in the mitigation hive. LimaCharlie ships a catalog of records you can install, you can write your own, and an AI agent can draft records for CVEs the catalog does not cover. A record is applied to hosts through a proposal that someone approves, or that your organization's mode approves for you.
Mitigations does not make a host safe. It reduces what an attacker can reach until the patch lands. Whoever approves a proposal judges the record, what it breaks, and what the audit found on the hosts.
This page covers the day-to-day flow. See also:
- Auto-propose: how newly exposed hosts get a proposal without anyone asking.
- AI drafting: how an agent you choose drafts records for uncovered CVEs.
- Events: every lifecycle event the extension emits, and how to automate on them with D&R rules.
How a mitigation reaches a host¶
- A record exists and is active. A record starts as a
draft. Setting itsstatustoactiveis the decision that it may be used. The catalog installs records as drafts, so nothing applies until a person (or an API key with the right permissions) activates one. - A host is exposed. The Vulnerability Reporting extension finds a known-exploited CVE on a host, and an active record lists that CVE for the host's platform.
- A proposal is made. A proposal says "apply this record version to these hosts". Auto-propose makes proposals for newly exposed hosts. Someone can also make one by hand. See Who proposes.
- Hosts can be audited first. An audit asks each sensor what an apply would do without changing anything: whether the change would stay until a reboot even after removal, whether the thing it blocks is in use right now, and whether the host can run it at all. The proposal shows what the audit found.
- The proposal is decided. Your organization's mode decides who decides. See Modes.
- Canaries go first. The hosts tagged as canaries, or a 5% sample, get the change. In an enforce rollout the rest follow after every canary has applied and verified, and the rollout wait has passed. A monitor rollout does not wait: the rest follow as soon as every canary is confirmed monitoring.
- Each host is verified. The sensor reads the change back. A host counts as protected only once that read confirms it.
- The mitigation is removed. When the host is patched, when
expires_afterpasses, or when a person removes it. The sensor also removes it on its own at expiry, including while offline.
A proposal that nobody decides within 7 days expires.
Modes¶
The organization's mode, set in the extension configuration, decides what happens after a proposal exists.
| Mode | What happens |
|---|---|
audit |
Proposals are created in the planned state and nothing is ever applied. Use it to see what would happen. |
approve (default) |
Every proposal waits for an explicit approval. |
auto |
A proposal whose breakage is at or below max_auto_breakage (low by default) is approved by the engine. It still waits for an explicit approval when the record needs a reboot to take effect or to undo, or when an audit of the hosts found that it would keep the change until reboot, or would apply over something in use. An audit finds those two only if you ran one before the proposal was made. Without it, a rollout that meets such a host on a canary halts. |
A mitigation in monitor mode blocks nothing, so auto approves a monitor proposal whatever its breakage. See Monitor mode.
An approval made by the engine in auto mode is marked automated: true. An approval made by an API key is not: the engine records who acted, and automated means only that the organization's own mode approved it.
Who proposes¶
A proposal comes from one of three places, and it carries which one in its trigger field.
| Source | trigger |
When |
|---|---|---|
| Auto-propose | exposure, activation or reconcile |
On by default. A newly exposed host in scope gets a proposal about 15 minutes after the vulnerability scan sees it. Activating a record, and a daily sweep, propose every host that is already exposed. |
| A person or an API key | request |
Someone chooses a record and hosts in the web app, or calls the propose request. This also proposes a host that auto-propose left out on purpose, such as one whose earlier proposal was rejected. |
| An AI agent | request |
An agent you gave mitigation.set can call propose like any other caller. The proposal says it came from an AI session. The drafting agent the web app installs cannot propose: its key does not allow it. It only writes drafts, and activating a draft is what makes auto-propose propose it. See AI drafting. |
The trigger and the created_by_kind fields tell an automatic proposal from a manual one. An automatic one has created_by_kind: engine. Every approval, rejection and promotion carries who did it and what kind of caller they were: user, api_key, ai_agent, dr_rule or engine. The kind comes from how the request was authenticated, never from a name.
What an analyst does¶
Open Mitigations in the web app. The page has these tabs: Overview, Mitigations (the records), Exposure, Proposals, Hosts and Catalog. The Overview leads with what needs you: proposals waiting for a decision, hosts that need attention, and monitoring windows that finished.
- Choose what is allowed to run. Install records from the Catalog or write your own. Read what each one breaks. Activate the ones you accept. Nothing proposes or applies from a draft.
- Decide proposals. Open a proposal. It shows the record, the hosts, the canaries, the breakage, and what the audit found: how many hosts would keep the change until a reboot, how many have it in use, and which hosts were left out and why. Approve or reject, with a note if you want one. The decision applies to exactly what you saw. If the record changes first, an approved proposal is superseded, and approving an undecided one is refused with
record_changed: propose again for the new version. - Approve a batch. Auto-propose can split a large exposure into several proposals that share an automatic batch. The web app shows them as one batch and approves them with one action. Each proposal is still approved on its own, with its own digest, and the batch stops at the first refusal.
- Watch the rollout. The Proposals and Hosts tabs show each host's state: applied and confirmed, monitoring, failed, drifted, pending a reboot, and so on. A rollout halts when the canaries do not verify, and says why.
- Remove a mitigation. Remove it from chosen hosts, or from every host, from the record or host view. A host that was removed by hand is not proposed that record version again.
- Review who did what. Records, proposals and decisions show whether a person, an API key, an automation rule, the engine or an AI agent made them. An AI agent's work shows "Drafted by AI", "Proposed by AI" or "Approved by AI" with a link to the session.
Decision notes¶
approve and reject take an optional note. The note of a decision is stored as the proposal's decision_note, separate from note, which is the proposer's and which the engine also uses for its own halt explanations. (The note of a promote call goes into the mitigation.promoted event, not into decision_note.) decision_note is always present: an empty string before a decision, after a decision with no note, and on proposals decided before the field existed (whose decision note stays appended to note).
The web app shows the decision note next to who decided and when. Use it for the reason: "accepted for the fleet except the build servers", "rejected, the vendor patch ships Thursday".
Monitor mode¶
A proposal runs in monitor or enforce. In monitor, the mitigation is live on the host and reports each time it would have blocked or changed something, and blocks nothing. The host is not protected while it monitors, and its finding is not marked mitigated. The window is the record's monitor_for, or 24 hours when it sets none, and never longer than the mitigation's lifetime less a safety margin: a record with expires_after: 24h monitors for 23 hours. The window is complete only once a read of the host taken after it ended confirms it. Then each host is classed clean, would_block or incomplete. You promote clean hosts to enforce with the promote request or in the web app, or let the extension do it with monitor.auto_promote: true. A promotion with include: clean or include: all goes through a canary gate like a rollout. A promotion that names hosts with sids (at most 500) promotes exactly those hosts at once, with no gate.
A record that does not set enforcement monitors when its action type can be monitored. Catalog records are written to enforce.
The CVE exposure overview¶
The Exposure tab answers "what is exposed, and what covers it" for the whole organization. It lists every known-exploited CVE that at least one host has, with:
- the CVE's name from the CISA Known Exploited Vulnerabilities catalog, its severity, and how many distinct hosts are exposed. The catalog's vendor and product are there too (
vendorandproductin the request), each left out when the catalog gives none. They name what the catalog lists, not what the hosts run: a CVE listed underOpenBSD/OpenSSHis OpenSSH on Linux hosts as well; - the mitigations that name it: your own records, and catalog records you have not installed yet;
- how the exposed hosts stand:
protected,monitoring,in_progress,needs_attentionorended, each host counted once in its best state; - how many hosts are not covered, which is the exposed hosts minus the protected, monitoring and in-progress ones. This is an estimate: the two counts come from two systems, so a host the engine still covers but Vulnerability Reporting no longer lists as exposed (for example while its removal is under way) makes the number low by one.
With a platform filter, the per-state host counts and the not-covered count are not given, and CVEs are ranked by exposed hosts alone.
CVEs that have a mitigation available are listed first, ordered by how many exposed hosts are not covered. CVEs with no mitigation available are listed last. For those rows the tab shows whether an AI drafting request is queued, sent, or finished, and offers Ask the agent to draft when AI drafting is on.
You can filter by covered or uncovered, by CVE prefix and by platform. The same data is available from the exposure_summary request, paged, 50 CVEs by default and 200 at most.
The numbers can be low until the Vulnerability Reporting extension has finished its first count of the organization's hosts, and until the engine has checked its own counters. The tab and the request report this as complete: false, and the web app shows "counting hosts" instead of the numbers.
Configuration¶
Mitigations is configured in the extension configuration record, extension_config/ext-mitigation, which Git Sync can carry like any other configuration. You can edit it in the web app: the How this org runs strip on the Mitigations page covers mode, scope and rollout, and Automatic proposals and AI drafting cards cover the settings of the two features described in the pages above. Saving the configuration needs ext.conf.set.
mode: approve # audit | approve | auto
max_auto_breakage: low # low | medium | high, used by mode auto
scope:
include_tags: [prod] # empty selects no host
exclude_tags: [no-mitigations]
rollout:
canary_tag: canary # empty: a 5% sample is the canary
wait: 24h # <n>m, <n>h or <n>d, at most 30d
notify:
channel: "" # an ext-feedback channel
destination: "" # playbook:<name> or ai_agent:<name>
monitor:
auto_promote: false
auto_propose:
enabled: true
batch_window: 15m
ai:
agent: ""
capability: draft
daily_drafts: 10
| Key | Default | Meaning |
|---|---|---|
mode |
approve |
What happens to a proposal. See Modes. |
max_auto_breakage |
low |
In auto mode, proposals above this breakage wait for an approval. |
scope.include_tags, scope.exclude_tags |
none | Which hosts the engine may act on, by sensor tag. A host with none of the include tags is out of scope, and so is every host when the list is empty. An exclude tag always wins. |
rollout.canary_tag |
none | Hosts with this tag are the canaries. Without it, a 5% sample is. |
rollout.wait |
24h |
How long after the last canary verified the rest are tasked. |
notify |
none | Announces each new proposal through the Feedback extension. The notification approves nothing. |
monitor.auto_promote |
false |
Promote hosts that finished a monitor window clean. |
auto_propose |
on | See Auto-propose. |
ai |
no agent | See AI drafting. |
An organization that never saved a configuration runs with these defaults, which means scope.include_tags is empty and no host is in scope. Nothing is proposed until you choose which hosts the engine may act on.
The configuration is checked when you save it, and an invalid value is refused with a message naming the key.
Permissions¶
Mitigations uses the platform's standard permissions. A person, a user API key and an organization API key are treated the same: what a caller may do depends only on its permissions, and whether a proposal needs an approval at all depends on the organization's mode. A managed service provider can run every step, from writing an active record to approving a rollout, from infrastructure as code with keys that hold the permissions below.
Every request needs ext.request. Every request except activate_own_draft also needs ext.conf.get, because the platform reads the extension's configuration with the caller's credential.
| Request | Also needs |
|---|---|
exposure, exposure_summary, status, proposals, catalog, catalog_status, authoring_kit, validate |
mitigation.get |
audit, propose |
mitigation.set, mitigation.get and sensor.get |
approve |
mitigation.approve and mitigation.get |
reject |
mitigation.approve |
promote |
mitigation.approve and mitigation.get |
remove |
mitigation.set |
request_draft |
mitigation.set |
draft_outcome |
mitigation.draft or mitigation.set |
activate_own_draft |
ext.request only. The request must come from an AI session of the agent named in ai.agent, which the platform names, and ai.capability must be draft_and_activate. The engine activates the draft with its own credential. |
Any write to a record in the mitigation hive (create, change, enable, disable, delete, change its tags) |
mitigation.set and sensor.task |
| The same writes, but only on a record that is a draft before and after | mitigation.draft instead of the two above |
| Setting a draft record active, with nothing else changed | mitigation.activate instead of the two above |
| Saving the extension configuration | ext.conf.set |
mitigation.draft and mitigation.activate exist so a key can write drafts, or activate a draft, without being able to task any sensor. See what each permission allows.
When the platform refuses a call, the answer starts with permission_denied: and names the missing permission. A check the engine makes itself, such as who may call activate_own_draft, answers forbidden.
The draft and activate permissions¶
Any write to a record normally needs both mitigation.set and sensor.task, because an active record leads to commands on your sensors. Two narrower permissions let a key do less, without sensor.task.
| Permission | Allows | Does not allow |
|---|---|---|
mitigation.draft |
Creating or changing a record whose stored status and new status are both draft, deleting a draft record, and changing a draft's tags and enabled flag. |
Touching an active record, or producing status: active. |
mitigation.activate |
Changing a record's status from draft to active when nothing else in the record changes. |
Changing the content of a record, creating a record as active, deactivating a record, or deleting one. |
mitigation.activate only turns a draft on. It cannot turn an active record back off, because deactivating a record removes its mitigation from every host, and a key that can activate should not also be able to do that. It also cannot edit an active record, so a key that holds it cannot rewrite something a person approved.
An approved record version is identified by its hash. Status, enforcement and monitor_for are not part of the hash, so activating a draft does not create a new version.
mitigation.set with sensor.task keeps allowing everything. A key can write a draft with mitigation.draft, or with mitigation.set and sensor.task together. mitigation.activate alone cannot write a draft: it only changes the status of one that exists.
The extension's own permissions¶
The extension acts with its own credential when it subscribes, updates, unsubscribes, reads records and sensors for its passes, installs the rules described on the events page, and activates a draft for an AI agent allowed to do that. You do not manage this credential. It includes mitigation.activate so the engine can activate a draft on behalf of an agent in draft_and_activate capability.
Related pages¶
- Auto-propose
- AI drafting
- Events
- Vulnerability Reporting, which finds the exposed hosts.
- Host Posture and Application Control for related controls.