WASViking Docs
⌘K
Infrastructure DefenseGetting Started

Mitigate a finding without a patch

Close a misconfiguration or contain a vulnerability with no fix yet by changing the host itself, from WASViking Infrastructure Defense. Built-in mitigations, workarounds for known vulnerabilities, actions before and after a patch job, reviewed scripts and software changes, each one approved, verified by the next inventory, watched for drift and undoable.

Some findings are not closed by an update. A posture control fails because a registry value was never set, a vulnerability has no vendor fix yet, a database service has to stop before its update and start again after it. The Mitigation screen of Infrastructure Defense makes those changes on the host through the Sentinel Host agent, with the same discipline Resolve applies to updates: every change is a job, a person approves it, the agent records what it replaced, the next inventory proves it held, and the change can be undone. By the end of this guide you will have applied a built-in mitigation, read its verdict, contained a vulnerability that has no fix, attached actions to a patch job and seen where scripts and software changes fit.

Before you start

  • Infrastructure Defense enabled, with the Sentinel Host agent reporting from the hosts you want to change.
  • The permissions on Infrastructure Defense:
  • Remediate to apply a mitigation, run an approved script, install or remove software and undo a mitigation;
  • Manage and Remediate to attach actions to a patch job;
  • Author mitigation actions to add scripts to the library and turn scripts on for the organization;
  • Approve to sign off jobs and review scripts.

The Admin and Manager roles carry all of them by default. A partner working in your organization through a partner session can write scripts and run approved ones, but the script settings, the review of each version and the approval of a script or software job the partner started stay with people of your organization. - A recent agent. Each kind of change needs the release that brought it; the screens offer only what the host's agent runs and show Agent update required otherwise.

What you want to do Platform Agent release
Registry values and services, the built-in Windows mitigations for controls Windows, Linux (services) 0.1.46 or later
Actions before and after a patch job, approved scripts Windows, Linux, macOS 0.1.46 or later
Install and remove software by name or package Windows, Linux 0.1.50 or later
Install from an installer file, workarounds for known vulnerabilities Windows 0.1.50 or later
Kernel parameters, the built-in Linux mitigations for controls Linux 0.1.50 or later
Secret values for scripts Windows, Linux, macOS 0.1.50 or later
Account lockout, the built-in Windows mitigation for that control Windows 0.1.52 or later

Update agents from Infra → Infrastructure Defense → Sentinel Hosts.

What a mitigation can change

Change Platforms Undo
Set or delete a registry value Windows Restores the value it replaced, or deletes it when there was none
Stop, start or set the startup of a service Windows, Linux Restores the previous startup and state
Set a kernel parameter and keep it across reboots Linux Restores the previous value
Run an approved script from your library Windows (PowerShell), Linux and macOS (sh, bash) The script's own undo script, when it has one
Install or remove software Windows, Linux None; said plainly before you confirm

A change that needs a restart asks for one: the host restarts once, at the end of the job, when the host policy and the approver allow it.

The agent checks every change before touching anything and refuses the locations that would hurt the host or hand it to an attacker: the credential stores, its own service and folder, the classic startup and persistence points, the remote access you depend on, the package managers, the kernel and the boot chain. A refused change says why.

Step 1: apply a built-in mitigation

Open Infra → Infrastructure Defense → Mitigation. The screen has four tabs: Overview (what is open, the approved scripts, the open runs, the verified jobs, the latest activity and the flow step by step), Available mitigations, Script library and Runs and jobs. Available mitigations lists, for each host, the failing posture controls that a curated change fixes: turn off LLMNR, turn on LSA protection, require SMB signing, require Network Level Authentication for Remote Desktop, lock idle sessions after the limit the host policy asks, lock accounts after the failed logins the host policy allows, restrict anonymous enumeration and more on Windows; address space layout randomization, ptrace scope, SYN cookies, IP forwarding and the network kernel parameters on Linux. Each row says what the change does, the Side effect to read before applying it and the severity of the failing control. Search the list or filter it by system; Review and apply opens a side panel with what the change writes on the host and how it is verified.

The Available mitigations tab: Turn off LLMNR, Turn on LSA protection and Require Network Level Authentication on acme-file-01, each with its severity and Review and apply, and Harden network kernel parameters on acme-edge-01 marked Agent update required

Press Apply in the side panel of one row, or tick several rows (on one host or many) and press Apply to selected. A selection creates one job per host; hosts in different environments get separate jobs because each environment has its own approval rule. The reason you type goes into the approval record. The Configuration screen offers the same change with a Mitigate button next to the failing control.

Step 2: approve it and follow it

The job appears in Resolve and in Recent mitigation jobs on the Runs and jobs tab. It follows the approval governance of the host's environment like any update: automatic, one person or a formal quorum, inside the maintenance window unless the approver runs it now. A job that carries a script or a software change is never approved automatically, whatever the rule says.

Recent mitigation jobs: Refuse inbound remote printing and Turn off LLMNR on acme-file-01, Turn off LLMNR on acme-ws-014, with the states Verified and Reverted and the note of each

The agent applies the steps in order and reports each one with the value or state it found before and the one it left. One change runs at a time on a host, and every hold, restart and offline rule of Resolve applies.

Step 3: read the verdict and keep it watched

The job completes when the next inventory proves the change: Mitigation verified: 1 of 1 steps applied; 1 of 1 controls now pass. The posture finding closes the way it always does, by passing the check.

A verified mitigation stays watched. If something puts the old setting back, often a Group Policy refresh or a configuration management run, the next inventory marks it Reverted with the control that failed and when, the finding opens again, and a Mitigation Reverted alert goes to your channels. Apply it again, or fix whatever reverted it.

The host's asset page lists the same history in Mitigations on this host, with an Undo button per change.

Mitigations on this host for acme-file-01: Refuse inbound remote printing verified with three changes, Turn off LLMNR reverted with the note naming the failed control, and an Undo button on each

Undo creates a job from what the agent recorded before the change: the previous registry values, service states and kernel parameters, and the undo script of a script step. It needs a reason and follows the same approval as the change it reverses.

Contain a vulnerability that has no fix yet

For some vulnerabilities the vendor documents a workaround: a registry value or a service setting that closes the attack path until the update can be installed. WASViking® carries those workarounds for well-known Windows vulnerabilities, among them the remote Print Spooler path (CVE-2021-34527 and CVE-2021-1675), the MSHTML ActiveX path (CVE-2021-40444), SMBv3 compression (CVE-2020-0796), the DNS server overflow (CVE-2020-1350), Office cross-protocol navigation (CVE-2023-36884), the Remote Desktop pre-authentication path (CVE-2019-0708) and the legacy Equation Editor (CVE-2017-11882).

A vulnerability with a workaround shows a Mitigation available chip on the Vulnerabilities screen, and its page offers Mitigation options. The options screen puts the two answers side by side: Remediation, the vendor update where it exists, and Mitigation, the workaround with what it changes and its side effect, the hosts where the vulnerability is open and whether each one can take the change now.

Mitigation options for CVE-2021-34527: the Refuse inbound remote printing workaround with its side effect, acme-ws-014 selected and Ready, the Mitigate now button, and acme-file-01 listed under Mitigated, no fix applied

Tick the hosts and press Mitigate now. Once the next inventory proves the workaround on a host, the vulnerability on that host is marked Mitigated, no fix applied: it leaves the score the way an accepted risk does, it is listed apart under Mitigated, no fix applied on the options screen, and it opens again the moment the workaround is reverted or undone. Only a verified workaround sets it; nobody can pick it by hand as a risk acceptance. The agent reads the workaround back on every inventory, which is why it needs release 0.1.50 or later.

A workaround closes a path, the update closes the vulnerability. Install the update from Resolve when it exists.

Run actions before and after a patch job

Some updates need the host prepared: a service stopped so its files can be replaced, a value set that the installer checks, a service started again afterwards. In Resolve, open Review on a recommended action and expand Pre-actions and post-actions. Add an action, choose when it runs (Before the updates or After the updates), the action and its fields, and tick Stop the job if this fails when the updates must not run without it.

Pre-actions and post-actions in the Review of a patch job: before the updates, stop the service Spooler and stop the job if this fails; after the updates, start the service Spooler

A job takes up to five pre-actions and five post-actions. They run in this order: pre-actions, the updates, post-actions, then one restart at the end when something asked for it and the policy allows it. Post-actions run whatever the outcome of the updates. A pre-action that fails with Stop the job if this fails stops the job before any update is installed, and the job says which action stopped it.

The approver sees every action before the job runs, in Resolve, in the approval e-mail and in the approval records export. The job page shows each action with the state the host reported before and after it.

Pre-actions and post-actions card of a completed job: stop the service Spooler before the updates and start it after, both Done, with the startup and state before and after each

A retry keeps the actions. A rollback job accepts them too.

Use scripts from your own library

When no typed change covers what you need, the Script library tab of the Mitigation screen holds your organization's scripts, one card per version, with a search and a status filter. The top of the library says whether Script runs are on or off. Off is the start: scripts can be written, reviewed and approved, but they do not run on hosts. Someone from the organization with Author mitigation actions clicks Turn on script runs, and the confirmation says what that means: an approved script can do anything the system account can do on the host, each run after its job's own approval. While runs are off, Run on hosts stays on each approved version, greyed out, with the reason and a link to the switch.

Pause all script runs turns them off again, for an incident or an audit. It cancels every job that carries a script and was approved but not yet handed to a host, held turns of a rollout included, and no script job can be approved until runs are on again. A script already running on a host finishes. Jobs still waiting for approval stay and can be approved once runs are on. A partner session never turns runs on or off.

  1. New script opens the Script Studio. Give it a name, the platform, the interpreter (PowerShell on Windows, sh or bash on Linux and macOS), the longest run in minutes (15 unless you change it, 180 at most), the body (up to 20 KB), the parameters and, optionally, an undo script. Insert the starter script fills the body with a skeleton that already reads its parameters and follows the exit codes below. Saving under an existing name creates the next version; versions never change after they are saved. New version on a card opens the Script Studio on a copy of that version, so you only edit what changes. Leaving the Studio with changes you did not save asks first.
  2. Review. Every version starts In review. A person with Approve who is not the author opens Review the script on the card, a side panel that shows the interpreter, the longest run, the parameters, the full SHA-256, the lines that changed since the previous version and the whole body. They Approve it, or Reject it with a reason the author reads on the row. A rejected version is never attached to a job; the author saves a new version with the changes, and that version gets its own review. Small teams can turn on Allow single-person review under Settings in the library; the switch is recorded in the audit trail.
  3. Run on hosts, or attach the script as a pre-action or post-action. Only approved versions can be used, only on hosts of their platform, and each job still needs its own approval. The approval signs the job for its host: a script sent to another host, or edited after the approval, does not run.

Parameters. Add each one with Add a parameter: a name (letters, digits and underscores, starting with a letter), a type and, optionally, a default value and a short description for the person who runs the script.

Type What the person running the script enters What the script reads
Text Any text up to 1,024 characters The text
Whole number A whole number The number, for example 30
Yes or no Yes or No true or false
One of a list One of the choices you listed The choice

Each parameter reaches the script as the environment variable WV_PARAM_ followed by its name in upper case, for example WV_PARAM_SERVICE_NAME. Tick Required when the script cannot run without a value; a missing value otherwise takes its default. The values are checked against their type before the job is created, and a value that does not fit is refused with the reason. Tick Secret for a password or a token: it gets a password field, and its value is encrypted the moment you submit it, for that one host, with a key only that host holds. WASViking® never stores it in readable form, the approver never sees it, and it is masked out of the script output the job keeps. A script that needs a secret runs from the library, not as a pre-action or post-action.

Exit codes. The script tells the job how it went:

Code Meaning
0 Success
10 Success, the host needs a restart
11 Failure, the host needs a restart
12 Failure that stops the job (the remaining actions do not run)
101 Nothing to do here; reported as skipped, not as a failure
Any other Failure

A step that runs longer than its limit (the version's longest run, or a shorter one set by the host policy) is stopped together with every process it started. The job page shows the last 8 KB the script printed under Output from the host, with values that look like secrets masked on the host before they left it.

Keeping scripts off a host. The host policy decides whether approved scripts may run on its hosts. A sensitive host can also refuse scripts whatever the cloud says: add allow_remote_scripts: false to configs/config.yaml in the agent's data directory and restart the agent. The asset page then says the host blocks scripts in its local configuration, and no script job is created for it.

WASViking checks. Every version is read against what the agent's runtime asks of a script, at no cost and without anything leaving the platform. The form shows them under the script box while you write, so a problem shows up before you save, and the reviewer sees the same list under WASViking checks in Review the script. Each check names the first line that shows the problem:

  • winget called by its name (the system account has no winget on its path) or looked up with Get-Command winget;
  • --accept-package-agreements given to a winget command that does not take it, such as uninstall or list (only install, upgrade, import and download do): winget stops with an argument error before it does anything;
  • a non-zero code of winget list taken as a failure: winget list returns that code when the package is not installed, so the check reads "not installed" as an error, and a read back after an uninstall reads a removal as a failure;
  • an installer or uninstaller the script waits for with no limit of its own (winget uninstall, msiexec /x, Start-Process -Wait): if it opens a window, nobody sees it as the system account, and the step runs until its longest run and reads as failed even when the change was made;
  • a prompt, a dialog or a pause that waits for a person;
  • a restart or a shutdown from inside the script instead of exit code 10;
  • HKCU or profile folders, which are the system account's own, not a person's;
  • a change to the host's execution policy;
  • a value that looks like a secret written in the body;
  • sudo, or a package install without -y;
  • bash syntax while the interpreter is sh;
  • a parameter the script reads but the version does not declare, or one it declares but never reads;
  • a script that never sets an exit code, or never exits with 101 when there is nothing to do.

Review with WASViking AI. When your plan includes WASViking AI, everyone with Author mitigation actions sees Review with WASViking AI next to Insert the starter script; there is nothing to turn on. Nothing is sent until someone clicks it. It reads the draft in the form (it does not need to be saved first) and returns a version that keeps what the script does and fits the agent's runtime.

  1. Write or paste the script, choose the platform and the interpreter, and click Review with WASViking AI. It usually takes 10 to 30 seconds; a long script up to a minute and a half. While it works, the button reads Analyzing... and Save for review waits.
  2. Read the Suggested version panel: a summary, each change with its reason, what you still have to check yourself, the WASViking checks of the suggested version and the lines it changes in your script.
  3. Click Use this version to fill the form with it, or Discard to keep yours. Nothing is saved until you click Save for review, and the version goes through its review like any other. Its reviewer reads that it was prepared from a WASViking AI suggestion. If you click Save for review while the suggestion is still on screen, the confirmation says that it saves your own version, not the suggestion.

When a check finds something, Fix with WASViking AI appears next to it: under the script box while you write, and next to the checks of a saved version in Show the script or Review the script. On a saved version, one click copies it into the form and asks for the fix, so you land on the suggested version; you still choose Use this version and Save for review, and the new version goes to review. The fix never changes a saved version. When your plan has no WASViking AI, the checks still show, without the buttons.

What goes to WASViking AI: the name, the description, the platform, the interpreter, the longest run, the parameter definitions (never a value), the body and the undo script, with every value that looks like a secret replaced by [MASKED] before it leaves, plus the WASViking checks and counts of your hosts of that platform (systems, architectures and roles, never a host name). Where a secret was masked, the suggestion declares a secret parameter for it instead; if [MASKED] is still in the suggested version, a WASViking check says so before you use it. Each review uses one message of your plan's WASViking AI allowance. A review that fails uses none, and the WASViking checks still show. A long script can take up to a minute and a half.

Run a script on one or many hosts, now or on a schedule

Run on hosts, on an approved version in the library, opens the run page. A summary on its side follows what you pick (the hosts, their environments, the pilots, when it starts and the window), and the confirmation repeats it before anything is sent.

  1. Values. Fill the script's parameters once; the same values go to every host. A secret is sealed separately to each host's own key the moment you submit.
  2. Hosts. Every host of the script's platform is listed with its role (server or workstation), environment, criticality, site, tags and operating system. Filter the list, then tick hosts one by one or use Tick every ready host shown, up to 200 per run. A host that cannot take the script now says why: no agent reporting, an agent too old, scripts blocked by its policy or its local configuration, or this script already scheduled on it. The list you submit is frozen: the approver reads exactly those hosts, and a host added to a tag later never joins the run.
  3. When. - As soon as it is approved: each host starts once its group is approved. - In each host's maintenance window: each host starts when the maintenance window of its policy opens, read in the host's own clock. - At a date and time: in One time zone for every host, every host starts at the same instant; in Each host's local time, each host starts at that hour of its own clock (a host that reports no time zone uses the one you picked). At most 30 days ahead.

Choose how long the window stays open (1 hour to 7 days) and what happens to a host that is off when it opens: by default a server is skipped (it must pick the job up within 30 minutes of the opening) and a workstation runs when it comes back, until the window closes. No job ever runs after its window closes. 4. Rollout (optional). - Tick Pilot on a few hosts: they run first, and the rest waits until every pilot succeeded. If a pilot fails, misses its window or is cancelled, the rest is cancelled and nothing more runs. - Hosts at a time limits how many jobs of the run are out at once, so the nodes of a cluster never restart together; the next host starts when one ends. - Stop after this many failures cancels what has not started once that many hosts failed or missed their window. - Also tell when the run ends: up to 10 extra e-mail addresses. The person who started the run is told anyway, with the count of each outcome and a link to the run page.

A host that waits for its turn reads Waiting for its turn; its job is already approved and signed, and it still never runs after its window closes. 5. Submit for approval. Each ticked host gets its own job, grouped by environment. A script never rides an automatic approval.

The run page, under Script runs on the Runs and jobs tab, follows it, with its progress (hosts finished out of the total) and a timeline from the times the run and its jobs record: requested, approved and signed, handed to the agents, ran, results recorded and ended. Each time shows in your account's time zone, and in UTC when you point at it.

  • Approval: one decision per environment, under that environment's approval rule (a reason when the rule asks for one, and whether a restart is allowed when the script asks for it). Approving signs each job for its own host and fixes its window; a job of a script version retired since, or whose window closed, cannot be approved.
  • Hosts: each host's state (waiting for approval, scheduled, waiting for the host, running, succeeded, nothing to do, failed, missed its window, cancelled), the start and the last moment it may be handed out in the host's own clock, the exit code, Output from the host and the Verification the next inventory found (Verified, Reverted, Undone). Undo on a verified host creates its undo job under the same rules as Resolve.
  • Run again on the hosts that failed opens a new run with the failed and missed hosts ticked and the values filled; type the secrets again.
  • Cancel what has not run cancels every job still waiting for approval or for its host. Export CSV gives one row per host, and Export CSV on the Runs and jobs tab one row per run.

A host runs one change at a time, and several can wait on it: a script scheduled for tonight does not keep another change from being scheduled on that host today. The same script is not queued twice on a host, and a host holds up to five changes waiting.

Repeat a run on chosen days

A run can repeat: a nightly shutdown of the workstations, a weekly clean-up, a service restarted every Sunday. Under When, pick Repeat on chosen days, at a time of day, tick the days of the week (all seven by default), give the time of day and, if the series should stop by itself, the last day. The time is read in one time zone for every host or in each host's own clock, like a run at a date and time. The window stays within a day, so one occurrence never overlaps the next.

What you submit is a recurring series. Each occurrence is an ordinary run, created half an hour before its start with every rule of a run: one job per host, the window, the rollout, the offline rule, the result on each host and the verification by the next inventory.

  • Approval. The first occurrence waits for the approval of each environment like any run. Once every job of it is decided, the series is approved for 90 days in the name of the person who closed that decision, and the later occurrences start approved under it the moment they are created, each with its own approval record that names the series. A host whose first job is rejected leaves the series. When the 90 days pass, the people of the series are told, the next occurrence is created waiting for approval again, and that decision, given inside the occurrence's window, renews the series. While a renewal waits, nothing else is created.
  • The version is pinned. A series runs the exact version it was approved with (its SHA-256). A newer version never joins on its own: retiring the version pauses the series. A version that declares a secret value cannot repeat, since nothing keeps the value between occurrences.
  • One change at a time. A host still holding the previous occurrence sits the next one out, and the run page says so. A job of the previous occurrence that the agent was never handed, and that could not start before the next one, is cancelled as superseded.
  • Nothing runs late. An occurrence the platform could not create in time (the organization's script runs were paused, for instance) is recorded as missed on the series and never runs late.
  • It stops itself. After three occurrences in a row that failed on every host, the series pauses and tells the person who started it and the extra addresses it names. Turning scripts off for the organization holds every series as well.

The series page, reached from Recurring series on the Runs and jobs tab or from the chip on any of its occurrences, shows its state (waiting for approval, active, paused, ended), its next start, its approval and until when it holds, its hosts, what it recorded about itself and every occurrence with the outcome on each host. Pause stops new occurrences and cancels what the current one had not started; Resume starts it again from its next day (if its approval expired meanwhile, the next occurrence waits for approval first); End the series ends it for good, with its occurrences kept in the history. A series is never edited: to change its days, time or hosts, end it and start another from the library. The CSV of runs names the series and the occurrence of each run.

A script whose purpose is to power the host off does it itself, with a delay (shutdown /s /t 60 on Windows, shutdown -h +1 on Linux) and exits with 0 first, so the agent reports the result before the host goes off. The WASViking check on the version says so. The job reads as verified when the host comes back and reports its next inventory, so a nightly shutdown shows the time it ran and the time the host returned.

Undo. When the version has an undo script, a job that ran it has Undo this mitigation: the undo script runs on that host with the same values, as a new job with its own approval. Retiring the version stops new runs, never the undo of an earlier one.

Install and remove software

Open a host's Installed Software page.

Installed Software of acme-ws-014: the Install from an installer file form with an uploaded 7-Zip installer selected and the link form, and the program list with Uninstall on 7-Zip and Mozilla Firefox

  • Uninstall appears on a program the agent can remove unattended: on Windows, a Windows Installer product or a program that registered a silent uninstall command; on Linux, a package the package manager can remove without taking any other package with it. Protected software (the kernel, the boot and login chain, the package managers, the remote access, the agent itself) is never offered. The rest reads Not removable here with the reason.
  • Install software on this host takes a winget package id on Windows or a package of the host's configured repositories on Linux, with an optional version.
  • Install from an installer file (Windows) takes either an installer you uploaded in Sentinel Gateways → Installer uploads, or an https link with the file's SHA-256, its type (MSI or EXE), the silent switches and the expected signer. The host downloads the file directly over HTTPS (through the system proxy when one is set), checks it against the pinned SHA-256 and its Authenticode signature, and the expected signer when you gave one, then runs it silently. Nothing runs if any check fails.

A software change is signed for the host and never approved automatically. The next inventory proves it: the program is gone after an uninstall, and listed after an install. There is no automatic undo for software.

Set the limits in the host policy

In Infra → Infrastructure Defense → Policies, the Mitigation actions block of each policy decides:

  • whether approved library scripts may run on these hosts (when scripts are on for the organization);
  • the longest action step, from 1 to 180 minutes, for mitigation steps and for the actions of patch jobs.

Registry and service changes are never blocked by the script switch. A step that asks for a restart follows the policy's restart settings and the approver's choice, like an update does.

Day two

  • Alerts. Mitigation Verified, Mitigation Failed and Mitigation Reverted reach your Slack, Teams, e-mail or webhook channels with the host and the change.
  • Evidence. Export CSV on Recent mitigation jobs lists every mitigation with its state and note. Export approval records on the Resolve screen carries the actions of each job in its host_changes column, with every approval decision.
  • Audit trail. Turning scripts on or off, saving, approving and retiring a script version, creating, approving and undoing a mitigation are audit entries like every other Resolve action. Secret values never appear in them.

Troubleshooting

A mitigation shows Agent update required. The host's agent does not run that kind of change yet. Update it from Sentinel Hosts; the table in "Before you start" lists the release each change needs.

A workaround shows Not available on this host. The host is not a Windows host that takes jobs, or its agent is older than 0.1.50.

The mitigation reads Reverted the next day. Something on the host set the old value again. On a domain-joined Windows host it is usually a Group Policy object that manages the same setting: change it there, or the mitigation will keep being undone at every policy refresh.

A job reads Partial. Some steps succeeded and others failed or a control still fails; the job page lists each step with its outcome and the reason.

A script has no Run on hosts, or it is greyed out. It is not approved yet, script runs are off for the organization (the button says so), the policy of the host does not allow them, the host blocks them locally, or no host of the script's platform has a recent enough agent.

A host reads Missed its window. It did not pick the job up in time: a server that was off when the window opened, or any host still off when the window closed. Nothing ran on it. Use Run again on the hosts that failed on the run page.

An approval of a script run is refused. The script version was retired or script runs were paused after the run was submitted, or the window already closed. Cancel what has not run and start a new run.

A secret parameter is refused. The host's agent is older than 0.1.50 and cannot open sealed values. Update it before running the script with a secret.

A script failed and the job says the host's own policy refused it. Windows blocked the script before it ran: an execution policy set by Group Policy (such as AllSigned), AppLocker or Windows Defender Application Control, or the antivirus. Output from the host shows the message Windows gave. Sign the script with a certificate the hosts trust, or allow it in that policy, then run it again.

An installer job failed with a hash or signature message. The file the host downloaded is not the one you pinned, or it is not signed by the expected publisher. Check the SHA-256 and the signer, and that the link serves the same file every time.

The account lockout mitigation failed on a domain controller. On a domain controller the account lockout is the domain's policy, so the agent refuses to change it. Set the lockout in the domain Group Policy instead; the control reads it on the next inventory.

What to look at next