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
| Step | What it does |
|---|---|
| 1. Curated library | NESS 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 detection | Detection 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. Rollback | Once the official patch is installed, the rollback script reverts the mitigation and returns the device to its standard state. |
| 5. CVE campaigns | With 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:
| Type | What it does | When to use it |
|---|---|---|
| Detection | Checks 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. |
| Rollback | Reverts the mitigation and returns the device to its standard state. | Once the official patch is installed. |
Script sources
| Source | Description |
|---|---|
| Vendor (NESS) | Curated by NESS following official advisories (MSRC, official KBs, vendor guides). Visible to all customers and read-only (cannot be edited). |
| My scripts | Created 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:
- 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).
- Where? — Select one or more devices (or "All").
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
| Result | Effect on the CVE finding |
|---|---|
| VULNERABLE detection | Creates or reopens the finding: the counter goes up. |
| Successful mitigation | Marks the finding as mitigated (virtual patching): the open counter goes down. |
| Clean detection (NOT AFFECTED / REMEDIATED) | Closes the finding. |
| Rollback | Reopens 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:
- Enter the CVE (and, optionally, notes for the assistant; e.g. "the advisory mentions a registry key").
- Review each draft in its tab (Detection / Mitigation / Rollback).
- Click "Use this draft" to bring the code into the form, adjust it if needed and save it.
| Rule | Detail |
|---|---|
| No organization data | The assistant only receives the CVE and public advisory data: never devices, company name or IP addresses. |
| Nothing automatic | Drafts are only proposed text: nothing is saved or run until you review and save it. |
| "Untested" badge | Every 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" badge | Scripts generated with the assistant carry a permanent "AI" badge to distinguish them from NESS-curated ones. |
| Duplicate warning | If the CVE already has scripts (NESS or yours), the console warns you before creating duplicates, in both the assistant and the manual form. |
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:
| Field | Detail |
|---|---|
| Name | Required. Also add a description. |
| Associated CVE | Optional but recommended: enables campaigns and vulnerability counting. |
| Type | Detection / Mitigation / Rollback. |
| Interpreter | PowerShell, CMD or Bash (Linux/macOS). |
| Vendor and operating system | For the library filters. |
| Content | The 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_AFFECTEDorREMEDIATED.<TRUE|FALSE>:TRUEif the evaluation completed successfully.
Golden rules
- Detection scripts are read-only: they never write to the registry, disk or services.
- Mitigations are idempotent: running them twice yields the same state, without errors.
- Verify before reporting: after applying a change, re-read it and only then print
RESULT=...|MITIGATED|TRUE. - No secrets in the content: never include credentials or keys.
- Test on one device before a mass campaign (required for "Untested" scripts).
Examples (PowerShell, PrintNightmare)
- Detection
- Mitigation with verification
# 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"
}
# Example mitigation — apply and VERIFY
$CVE = 'CVE-2021-34527'
$pp = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
if (-not (Test-Path $pp)) { New-Item -Path $pp -Force | Out-Null }
Set-ItemProperty -Path $pp -Name NoWarningNoElevationOnInstall -Value 0 -Type DWord
$actual = (Get-ItemProperty -Path $pp -Name NoWarningNoElevationOnInstall).NoWarningNoElevationOnInstall
if ($actual -eq 0) {
Write-Output 'OK: restriction applied'
Write-Output "RESULT=$CVE|MITIGATED|TRUE"
exit 0
}
Write-Output 'ERROR: could not apply'
Write-Output "RESULT=$CVE|VULNERABLE|FALSE"
exit 1
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
- Always detect first: before mass mitigation, know how many devices are really exposed.
- Schedule mitigations in maintenance windows.
- Plan the rollback: when the official patch arrives, revert the mitigation.
- 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.
Virtual patching is a temporary measure. Install the official patch as soon as it is available and then run the mitigation rollback.
Available in NESS Enterprise. See also Patch management and Vulnerabilities.