Skip to main content

Virtual patching and zero-day response

When a critical vulnerability has no official vendor patch yet (a zero-day or a newly published flaw), NESS protects your devices in the meantime through virtual patching: official mitigations (registry keys, policy restrictions, vendor advisory workarounds) deployed centrally.

How it works​

StepWhat it does
1. Curated libraryNESS maintains detection, mitigation and rollback scripts validated against official vendor advisories. Your IT team can also create its own scripts for your tenant.
2. Early detectionDetection scripts (read-only) show which devices are vulnerable before a patch exists.
3. Mitigation (virtual patch)Applies the official workaround; for example, the registry keys Microsoft documented for Meltdown/Spectre or the Point and Print restrictions for PrintNightmare.
4. RollbackOnce the official patch is installed, the rollback script reverts the mitigation and returns the device to its standard state.
5. CVE campaignsWith one click, deploy a detection or mitigation to every device with a specific open vulnerability, without selecting them one by one.

Script library​

Console path: side menu Patching Vulnerability Scanner Scripts.

Script types​

Each vulnerability case can have up to three script types:

TypeWhat it doesWhen to use it
DetectionChecks whether the device is vulnerable. Read-only: never changes anything.When a new CVE comes out and you want to know which devices are exposed.
Mitigation (virtual patch)Applies the vendor's official workaround (registry keys, policies, disabling a vulnerable feature).When no official patch exists yet, or while its rollout is scheduled.
RollbackReverts the mitigation and returns the device to its standard state.Once the official patch is installed.

Script sources​

SourceDescription
Vendor (NESS)Curated by NESS following official advisories (MSRC, official KBs, vendor guides). Visible to all customers and read-only (cannot be edited).
My scriptsCreated by your team. Private: only your tenant sees and runs them.
Community (coming soon)Contributed by other NESS users and reviewed by our team before publication.

Search and filter​

The library filters in real time, without reloading the page:

  • By source: All / Vendor (NESS) / My scripts / Community.
  • By type: Detection, Mitigation or Rollback.
  • By operating system: Windows, Linux, macOS or cross-platform.
  • By free text: CVE (e.g. CVE-2021-34527), keyword (e.g. spooler), script name or vendor.

Each result is a card showing type, CVE, vendor, operating system, integrity fingerprint (SHA-256) and how many times it has run.

Deploy a script​

Click "Deploy" on the script card and follow the wizard:

  1. When? — Immediate (the agent runs it within 1 to 3 minutes) or Scheduled (pick date and time; it is released automatically, ideal for maintenance windows).
  2. Where? — Select one or more devices (or "All").
Mass deployment confirmation

If you select more than 5 devices, the console asks you to type the exact number of devices to confirm.

  • Every action goes to the security audit: who, which script, fingerprint of the exact content, how many devices and from which IP address.
  • The agent verifies the SHA-256 before running: if the content does not exactly match what was approved, it does not run.

CVE campaigns​

Cards with an associated CVE have a "Campaign" button: it deploys the script to every device with that CVE open. It is the fastest way to respond to a zero-day. Requires the administrator/CISO role and a typed confirmation of the number of devices.

Execution results​

At the bottom of the page, "Recent executions" shows:

  • Global counters: successful, failed, pending and scheduled.
  • One row per device: script, device, status (Successful / Failed / Timeout / Pending / Scheduled), result (VULNERABLE / MITIGATED / NOT AFFECTED / REMEDIATED, when the script reports it), exit code and date.
  • "View log": the script's full output on that device (standard output and error) for diagnosis.

How results move the vulnerability counter​

ResultEffect on the CVE finding
VULNERABLE detectionCreates or reopens the finding: the counter goes up.
Successful mitigationMarks the finding as mitigated (virtual patching): the open counter goes down.
Clean detection (NOT AFFECTED / REMEDIATED)Closes the finding.
RollbackReopens the finding (protection was removed).

The console always reflects the real state, with auditable evidence of every change. See also Vulnerabilities.

Create your own scripts​

Expand "Create new script" at the top of the page. Start from an AI assistant draft or write the script manually.

AI assistant (automatic drafts)​

The "Create with AI assistant" button generates all three drafts (detection, mitigation and rollback) for a CVE from the official public CVE record and the vendor advisory:

  1. Enter the CVE (and, optionally, notes for the assistant; e.g. "the advisory mentions a registry key").
  2. Review each draft in its tab (Detection / Mitigation / Rollback).
  3. Click "Use this draft" to bring the code into the form, adjust it if needed and save it.
RuleDetail
No organization dataThe assistant only receives the CVE and public advisory data: never devices, company name or IP addresses.
Nothing automaticDrafts are only proposed text: nothing is saved or run until you review and save it.
"Untested" badgeEvery script in your tenant (manual or AI-generated) starts as "Untested". To deploy it you must confirm with a checkbox that you tested it first on a test device; that consent is recorded in the audit (who and when).
"AI" badgeScripts generated with the assistant carry a permanent "AI" badge to distinguish them from NESS-curated ones.
Duplicate warningIf the CVE already has scripts (NESS or yours), the console warns you before creating duplicates, in both the assistant and the manual form.
Always review drafts

AI-generated drafts are a starting point. Review them, check they follow the result convention and the golden rules, and test them on one device before any campaign.

Manual creation​

Fill in the fields:

FieldDetail
NameRequired. Also add a description.
Associated CVEOptional but recommended: enables campaigns and vulnerability counting.
TypeDetection / Mitigation / Rollback.
InterpreterPowerShell, CMD or Bash (Linux/macOS).
Vendor and operating systemFor the library filters.
ContentThe script code. The SHA-256 fingerprint is computed on save.

Result convention​

For the script to move the counter, the last meaningful line of its output must be:

RESULT=<CVE>|<STATUS>|<TRUE|FALSE>
  • <CVE>: identifier, e.g. CVE-2021-34527.
  • <STATUS>: VULNERABLE, MITIGATED, NOT_AFFECTED or REMEDIATED.
  • <TRUE|FALSE>: TRUE if the evaluation completed successfully.

Golden rules​

  1. Detection scripts are read-only: they never write to the registry, disk or services.
  2. Mitigations are idempotent: running them twice yields the same state, without errors.
  3. Verify before reporting: after applying a change, re-read it and only then print RESULT=...|MITIGATED|TRUE.
  4. No secrets in the content: never include credentials or keys.
  5. Test on one device before a mass campaign (required for "Untested" scripts).

Examples (PowerShell, PrintNightmare)​

# Example detection — READ-ONLY
$CVE = 'CVE-2021-34527'
$pp = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
$noElev = (Get-ItemProperty -Path $pp -Name NoWarningNoElevationOnInstall -ErrorAction SilentlyContinue).NoWarningNoElevationOnInstall

if ($noElev -eq 1) {
Write-Output 'VULNERABLE: Point and Print allows elevation for non-admins'
Write-Output "RESULT=$CVE|VULNERABLE|TRUE"
} else {
Write-Output 'NOT AFFECTED'
Write-Output "RESULT=$CVE|NOT_AFFECTED|TRUE"
}

Where to find official workarounds​

  • Microsoft Security Response Center (MSRC): Security Update Guide and advisories (ADV…), with the exact registry keys and commands.
  • Official Microsoft KB articles ("Workaround" section).
  • CERT/CC, CISA and the affected vendor's advisories.

NESS curates these workarounds in the Vendor library. If you need one that is not there yet, you can create it with this guide or request it from support.

Operational best practices​

  1. Always detect first: before mass mitigation, know how many devices are really exposed.
  2. Schedule mitigations in maintenance windows.
  3. Plan the rollback: when the official patch arrives, revert the mitigation.
  4. Review the audit regularly: every sensitive action is recorded permanently.

Windows patch (KB) rollback​

If a Windows patch (KB) causes problems in your operation, you can uninstall it from the device page: Installed KBs section, "Rollback" button. The action requires explicit confirmation and is logged.

Security and auditing of these actions​

  • Role-based control: only your tenant's administrative roles can uninstall KBs or launch mass campaigns.
  • Typed confirmations: high-impact actions require typing the exact KB or the number of affected devices; they never run from an accidental click.
  • Integrity verification: the agent verifies (SHA-256) that the script to run is exactly the one approved in the console. If it differs, it does not run.
  • Immutable audit: every sensitive action records who ordered it, what ran, on how many devices, when and from where; it cannot be edited or deleted from the console.
  • Tenant isolation: no action by one customer can affect another customer's devices.
warning

Virtual patching is a temporary measure. Install the official patch as soon as it is available and then run the mitigation rollback.

Plan

Available in NESS Enterprise. See also Patch management and Vulnerabilities.