Patch remediation
Patch remediation turns the confirmed findings on your hosts into ordinary patch update plans, and optionally runs those plans without an operator at the keyboard. It adds no new way to change a host. Every change still goes through the approval, ring, maintenance window, execution gate and reboot rules of the patch policy that applies to the host, and every plan is the same plan you would build by hand.
Open a CVE in Update > Patch Priorities and use Remediation, or open Update > Patch Remediation for rules and the items they track. The same data is available from the patch/remediation routes of the API.
What a proposal is
A proposal is one package change on one host, together with every CVE that change is expected to address.
- It is built only from confirmed findings. A potentially vulnerable finding is review only: it never selects a package and never creates a plan.
- The package version comes from what the host’s configured repositories actually offer, as the backend last collected it. The candidate must meet the vendor’s fixed version under the distribution’s own version ordering (dpkg or rpm). A newer package alone does not establish a fix.
- Each CVE on the package is listed with an expected outcome: Expected to be fixed, or Will remain open with the reason, for example a candidate that is below a later fixed version. A package that carries several CVEs is one change, not several.
- The same host and package can be covered by at most one active remediation item. A second request, or a second rule that matches, is recorded against the existing item and repeats nothing.
A change is blocked, and shown with its reason, when the package is held, when the candidate is below the fixed version, when no fix is available from the repositories yet, when the evidence is stale or waiting for reassessment, when architectures differ, when no patch policy applies to the host or the one that applies is disabled, or when the policy’s package allow or deny list excludes the package. A blocked change can be selected again after the condition clears.
Manual remediation
An administrator or maintainer selects proposals for hosts inside their fleet scope and stages them. Staging creates a draft patch update plan per effective patch policy, with the selected packages and the CVE mapping frozen into it. The request carries only host and package identity: you cannot choose the version or the CVE list, and a request that includes a change that is no longer proposable is refused as a whole with the reason for each change.
Nothing is approved, scheduled or started by staging. Approve, schedule and start the plan as you would any other.
Staging reserves each host and package first, then creates the plan, freezes its rows and binds every item to its plan, host and row in one transaction. If any step fails, nothing is left behind: no item without a plan and no plan that no item covers. When another request reserves the same package at the same moment, only the reservation that was won is frozen into the plan. Refreshing a draft plan recreates its host and package rows; items follow them, and an item whose package the refreshed plan no longer selects is held with the reason instead of pointing at a row that is gone.
Rules
A rule selects findings and hosts, and says whether to stage plans for review or to dispatch them automatically once the patch policy has approved them.
| Part | Choices |
|---|---|
| Criteria | Known exploited, a minimum severity, or named CVE identifiers. At least one is required |
| Scope | The whole fleet, one host, a group or a smart group |
| Action | Stage plans for review, or Dispatch after approval |
Rules are restricted to administrators and maintainers, and only over hosts inside their own fleet scope. A rule over the whole fleet needs a caller whose scope is the whole fleet.
- A new rule is created disabled. The preview of a saved rule shows each package change once, with the installed and offered revision for every architecture, every CVE grouped on it, and whether that change is expected to fix each CVE or leave it open and why. A CVE the rule selects and the change is expected to fix is marked as a trigger; a CVE the rule selects that the change leaves open, and a CVE the rule does not select, are listed too and never trigger the rule. Only that preview, taken by an administrator or maintainer, returns the confirmation that enabling needs. Creating, listing or reading a rule never returns one, a draft preview returns none, and a reader’s preview returns none. A confirmation belongs to the operator who previewed, to that rule and its exact definition, and expires after fifteen minutes. Editing the rule invalidates it, and enabling also checks that the operator still holds an operator role and fleet scope over every host the rule covers. Changing what a rule selects or does disables it again.
- Maintainers whose fleet scope is limited can scope a rule to a group or smart group. The pickers list only the groups the backend shows them, and a group that reaches a host outside their scope is refused.
- The rule acts with the authority of the operator who enabled it. Before every unattended start it checks that this operator is active, still holds an operator role and still has scope over the hosts. If not, nothing starts, the rule records why, and an operator decides.
- A rule has no policy of its own. It cannot bypass approval, ring order, canary gates, maintenance windows, the start gate or reboot rules. When the policy requires approval, the rule requests it and waits for the recorded decision; a rejection or an expired approval never dispatches.
- A rule acts only on a trigger: a CVE the rule’s criteria select, that is confirmed on the host inside the frozen scope, and that the offered change is expected to fix. A package whose only matching CVEs would stay open is not staged. Each item records only its own triggering CVEs.
- Before the plan starts, before every batch of hosts, and again immediately before each host is touched, the backend checks for each remaining host and package that every rule behind the work still exists, is enabled and dispatches; that the rule’s criteria still select the package; that the host is still in the rule’s scope and in the enabling operator’s fleet scope; that the operator is still active with an operator role; that the host’s effective patch policy is present, enabled, the one the plan was made under, and still allows the package; and that the maintenance window is usable and open. The current time, the operator’s role and grants, the rule and its membership, the effective policy and the window are read again at that moment, never taken from an earlier pass: the clock is sampled separately for each host, so a window that closes while an earlier host of the same batch is installing stops the next host. A host is claimed only while its execution is still running, judged on the execution as it is committed at that moment: an execution that another operator or an automatic threshold pause paused or cancelled after the batch began claims no further host, probes none and sends nothing. A host that is deferred was never claimed: nothing about it is committed as running, and the reason is recorded in its own transaction, so a crash at that point leaves the host pending. Anything that fails stops the next batch or the host and records why; a host that is not touched stays pending. Requesting approval, approving directly, voting to approve and scheduling a plan that carries remediation work are rechecked the same way against the person’s current role and grants and the current rule, policy and window. A withdrawn or disabled policy blocks.
- Editing, enabling, disabling and deleting a rule are serialized on the rule itself. Each of them reads the rule as it is committed at that moment, so two operators acting at once can never enable a definition that was changed after it was previewed: the enable is refused until the edited rule has been previewed again. Your scope over the rule is judged on that current definition, not on the copy you opened: if another operator has moved the rule to hosts outside your fleet scope since, your edit, disable or delete is refused as if the rule were not there, and moving a rule needs scope over both where it is and where it would go.
- Unattended work stays unattended. Work that the background pass dispatches is judged by the unattended checks at every point, including the last one before the host is touched. A rule that is disabled, deleted or switched to staging after the host was queried stops that work; it is never judged again as if an operator had asked for it.
- An item is dispatched automatically only while every rule behind it is still enabled and in dispatch mode. Disabling or editing a rule, or switching it to staging, stops dispatch of work it staged; the work stays visible and an operator decides.
- Rules are evaluated when advisory or inventory evidence changes, when the known-exploited catalog changes, on a periodic sweep, and on request. Evaluation is idempotent.
Windows, hosts coming back and restarts
A background pass reconciles eligible work every few minutes. Its scans of verifying and failed items are bounded, and they take the item looked at least recently first: an item that cannot move (an offline host, a kernel waiting for its reboot) goes to the back of the line and never keeps later items from being looked at, and only an item that needs a request for fresh evidence counts against the pass’s request limit. A maintenance window opening, or a host returning online, needs no new feed or inventory event for pending work to resume.
- Windows are read in UTC. A window that is missing, disabled, has no days, or uses another time zone is unusable: automatic dispatch refuses it, says so, and does not guess. A closed window shows when it next opens.
- Hosts must be active and connected. An offline host defers its plan, and the plan resumes when the host is connected again.
- Approval scope is frozen with the plan and compared with every durable reservation, including items that already finished, such as a canary host that was verified. If the plan selects any work that no remediation item covers, automatic dispatch stops. Hosts of later waves are authorized one by one, so a canary that is already finished never blocks them and never hides extra work.
- Parallelism. The wave’s maximum parallel hosts holds across independent dispatches and counts hosts that are already running, so two workers asking at once never run more than the limit.
- Revalidation runs again immediately before each host is touched: a package that has since been held, a candidate that no longer meets the fix, a policy that no longer allows it, or evidence that has changed fails that host with the reason instead of installing it.
- Live host query. The inventory cannot see a hold, pin or repository change made on the host itself. For every package, including ordinary distribution packages, the host is asked read-only just before the install: for APT the held packages and the package policy, for RPM the installed revision, the version lock list and the exact revision on offer. The package must not be held, the installed revision must be the one approved, the candidate must be exactly the approved revision with its pin priority unchanged, and an unreadable answer refuses the install. A change made after approval therefore stops the install and the host stays at its old revision.
- Resolution check. For RPM packages the host is also asked what the package manager would do for the exact revision that will be sent, resolved and aborted before anything changes. If a newer revision is on offer beside the approved one, if the resolution is any revision other than the approved one, or if it would remove, downgrade or reinstall anything, the host is refused with the reason and nothing is installed. A resolution that cannot be read refuses the host as well.
- Exact identities. The approval freezes the package’s native identity for every installed architecture: installed and offered revision, RPM epoch and architecture. Before the host is touched they are proved against the inventory as it is now, for ordinary distribution packages as well as trusted repositories: the listing must be fresh, the package not held, the offered revision newer than the installed one under the package manager’s own ordering, and no architecture may have appeared or gone. Only those identities are sent to the package manager (
name:arch=versionfor APT,name-epoch:version.archfor RPM).
Interrupted runs
Before a host is sent a command, the command and the installed identities it starts from are recorded and committed together with the claim on the host. A crash after the host accepted the command therefore leaves a running host with a recorded intent, never a claim that was lost and dispatched a second time.
A host left running by a crash or restart is never dispatched again on a guess, whoever started it: a manual run, a rule that has since been disabled and an unattended run are all resolved the same way. Once it has been running for a while, Praxis looks at the packages collected after the intent was recorded. If every approved architecture is installed at or above its approved revision, comparing epoch, version and release natively, the host is recorded as succeeded. If they were collected and one is still below, it is recorded as failed as interrupted. If nothing has been collected since, Praxis asks for a fresh inventory of the host first and decides from that. If that is still not possible, the epoch is not recorded or the comparison cannot be made, the host stays unresolved with the reason “waiting for fresh evidence”, and a recheck of the host’s inventory resolves it. A finding that has disappeared, or a host with nothing left to do, is never read as success. A failed or partial attempt is settled the same way before it is reported as final or retried: a fresh inventory is collected, each CVE on the item is judged against its own fixed version, and a new attempt does not start until the host’s packages have been collected again.
Verification and activation
A finished run is not a fix. After a run, each CVE on the item is verified from packages collected after that run finished. The item’s own run is used, and the evidence is read for the whole plan, so a run that covered several hosts is verified host by host. Each CVE is judged against its own frozen fixed version, per architecture and under the package manager’s native ordering, not against the candidate: an install that reached an earlier CVE’s fixed version but not a later one reports the first as fixed and the second as still affected.
| Outcome | Meaning |
|---|---|
| Verified fixed | Fresh evidence shows every approved architecture installed at or above the approved revision, and the finding is evaluated as fixed |
| Still affected | Fresh evidence shows the finding remains and an installed identity is below the approved revision |
| Failed | The run failed or the host could not be updated |
| Pending verification | The host has not been collected since the run, the finding for this CVE is gone or withdrawn, the epoch or an architecture is missing, or the evidence disagrees |
| Reboot pending | See below |
A missing or withdrawn finding, a hold, a lost candidate or the absence of eligible work never verifies a fix. An RPM revision is compared with its epoch; a missing epoch leaves the result pending. An item stays pending, with the reason, until evidence shows it.
A kernel fix is verified only when the running kernel is the fixed one. This holds for a failed or partial run as well: if the fixed package is on disk but the running kernel is older or unknown, the item stays pending (or reboot pending when the host is shown to still run the older kernel) and is checked again on each pass until the host runs the fixed kernel. A fixed kernel package that is installed while an older kernel still runs is Reboot pending, and the finding stays open until the host reboots into it. Running kernel evidence that is missing, older than 72 hours, older than the update or reboot it must reflect, or that cannot be told apart from the previous build of the same package is reported as not proven, never as active.
Why is this waiting?
On a confirmed finding, Why is this waiting? shows the backend’s current decision: what blocks the work, whether it resumes automatically or needs an operator, the plan, approval state, ring and canary position, the maintenance window and its next opening, the scheduled start if one exists, and the next permitted action. The reasons are the real ones: the host is offline, the enabling operator lost authority, a rule or policy no longer allows the work, the canary or an earlier wave has not finished, or the dispatch was interrupted. Plan, execution and approval numbers, and details that name them, appear only when the whole plan is inside your fleet scope, and the run details nested in an item’s verification follow the same rule; a plan that also covers hosts outside it is not described at all. A reason that is about another host of the plan is shown to you only as a neutral statement, with no host name, number or count, and a rule that reaches hosts outside your scope is not named in the items you can see, nor are the CVEs it matched elsewhere.
Audit
Staging, deduplication, status changes, deferrals, interrupted-host decisions and every rule change are recorded with the host, CVEs, advisories, actor or rules, plan, approval, execution and verification. See the audit schema.
Limits
- Remediation applies package updates only. It does not change configuration or run commands.
- Windows other than UTC are not supported for automatic dispatch.
- Scopes by group and smart group resolve membership each time a rule is evaluated.
- Compliance remediation requests have their own lifecycle; see remediation workflow.