> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-virtual-patch/readme.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Cortex XDR Virtual Patch

Cortex XDR Virtual Patch provides real-time exploit mitigation at the endpoint, protecting vulnerable workloads while you wait for official patches to be applied. It uses the Cortex XDR agent to inspect incoming traffic to supported applications, match requests against known exploit signatures, and block malicious activity — all without requiring server downtime or application restarts.

Once enabled, virtual patching acts as a **compensating control** within Exposure Management. The system automatically evaluates its effectiveness for each vulnerability and workload. You can manage and monitor its status through the compensating control workflows, including visibility into whether protections are fully effective, guided resolution actions when they are not, and automated lifecycle management as vulnerabilities are patched.

### Prerequisites

Before enabling virtual patching, confirm the following:

* You have an Exposure Management license active on your tenant.
* The Cortex XDR agent is deployed on the target workloads.
* The Cortex XDR agent is version 9.4 or higher.
* Windows IIS is installed on the workload.

### Supported Applications

Cortex XDR Virtual Patch is supported for Microsoft Internet Information Services (IIS) only.

Virtual Patching is enabled only on workloads where Microsoft IIS is installed. Workloads without Microsoft IIS are not affected.

### Why Cortex XDR Virtual Patch

Vulnerability management teams often identify critical vulnerabilities but cannot patch them directly. Applying patches depends on IT, DevOps, or development teams, and the process can take weeks or months. During that window, workloads remain exposed.

Virtual Patching closes this gap. By deploying exploit-specific protections directly on the Cortex XDR agent, you can mitigate the risk of exploitation immediately — without waiting for a patch cycle, a maintenance window, or a server reboot.

Use Virtual Patching when you need to:

* **Reduce exposure time** for critical or actively exploited vulnerabilities.
* **Protect against zero-day threats** where no vendor patch exists yet.
* **Buy time** for IT teams to schedule and test official patches.
* **Satisfy compliance requirements** that mandate compensating controls for unpatched vulnerabilities.

### How Cortex XDR Virtual Patch works

Virtual Patch operates in two phases:

1. **Observation and evaluation**\
   The Cortex XDR agent continuously monitors incoming requests to Microsoft IIS on the workload. It evaluates each request against a set of exploit signatures that correspond to known CVEs.
2. **Action and enforcement**

   When a request matches a signature associated with a virtually patched CVE, the agent takes action based on your configured enforcement mode:

   * **Report** — The agent logs the event but allows the traffic to pass. Use this mode to gain visibility before enabling active blocking.
   * **Block** — The agent blocks the malicious request at the endpoint, preventing the exploit from reaching the application.

This inline protection happens in real time, with no server downtime or application restart required.

#### How CVEs Are Targeted

Virtual Patching does not blindly apply all available signatures to every workload. To minimize performance impact and avoid unnecessary processing, the system dynamically determines which CVEs to enforce on each specific agent by intersecting three data sources:

1. **Endpoint ID** — Identifies workloads where Virtual Patching is enabled.
2. **Virtual Patch content** — The list of CVEs for which exploit signatures are available.
3. **Vulnerability findings** — The CVEs actually detected on each specific workload through vulnerability scanning.

Only CVEs that appear in all three sets are enforced on a given agent. This means:

* Two workloads using the same exploit profile may have **different CVEs** virtually patched, because each workload has different vulnerabilities.
* If a signature exists for a CVE but that CVE is **not found** on a workload, the signature is not pushed to that agent.
* If a CVE is found on a workload but **no signature exists** for it, Virtual Patching cannot protect against it.

> **Note:** The set of enforced CVEs updates automatically as new vulnerability scans report changes. When a new scan detects a CVE that has a matching signature, the protection is added. When a scan shows a CVE has been remediated, the protection is removed.

#### CVE Lifecycle Management

Cortex XDR Virtual Patch automatically manages the lifecycle of CVE protections:

1. **A vulnerability is detected** — A scan identifies a CVE on a workload. If a matching signature exists and Virtual Patching is enabled, the protection is pushed to the agent.
2. **The vulnerability is remediated** — A subsequent scan confirms the CVE is no longer present (for example, an official patch was applied). The system automatically removes the Virtual Patch protection from the agent.

This automated lifecycle eliminates manual overhead and ensures that agents are not burdened with obsolete rules for vulnerabilities that have already been fixed.

### Enable Cortex XDR Virtual Patch

Virtual patching is disabled by default. To enable it, you'll create an endpoint profile, enable virtual patching in that profile, and create a policy rule to apply the profile to endpoints.

#### Prerequisites

Before enabling virtual patching, confirm the following:

* You have an Exposure Management license active on your tenant.
* The Cortex XDR agent is deployed on the target workloads.
* Windows IIS is installed on the workload.

#### Enable virtual patching in an exploit prevention profile

Create an exploit prevention endpoint profile and enable virtual patching in that profile.

1. Navigate to **Inventory** **>** **Endpoints > Policy Management > Prevention > Profiles.**
2. Click **Add Profile** and **Create New.**
3. Select the **Windows** platform, and **Exploit** as the profile type. Click **Next**.
4. For **Profile Name**, enter a unique name for the profile. The name can contain only letters, numbers, or spaces, and must be no more than 30 characters. The name will be visible from the list of profiles when you configure a policy rule.
5. (Optional) Add a description of the profile.
6. Locate the **Virtual Patch** section.
7. Toggle Virtual Patching to Enabled.
8. Select an Action Mode
   * **Report**: Logs traffic that matches a virtual patch signature but does not block it. Use this to monitor activity before switching to active enforcement.
   * **Block**: Blocks traffic that matches a virtual patch signature, preventing the exploit from executing.
9. Click **Create** to save the profile.\
   The profile will now appear in the list on the Prevention Profiles page.

Once enabled, the agent begins monitoring traffic to supported applications on all workloads associated with that profile.\
\
To learn more about endpoint profiles, see [Set up endpoint protection](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/protect-your-endpoints/endpoint-security/install-and-manage-endpoints/set-up-endpoint-protection.md).

#### Apply the Virtual Patch profile to a policy rule

After enabling Virtual Patching in an exploit prevention profile, apply the profile to endpoints by adding it to a policy rule.

To create a policy rule:

1. Do one of the following:
   * Select **Inventory → Endpoints → Policy Management → Prevention → Policy Rules**, and select **+ New Policy.**
   * Select **Inventory → Endpoints → Policy Management → Prevention → Profiles**, right-click the profile you want to assign and click **Create** a new policy rule using this profile.
2. Define a **Policy Name** and optional **Description** that describes the purpose or intent of the policy.
3. Select the **Platform** for which you want to create a new policy.
4. Select the desired Exploit, Malware, Restrictions, and Agent Settings profiles you want to apply in this policy. Click **Next**.
5. Use the filters to assign the policy to one or more endpoints or endpoint groups.

   Cortex XSIAM automatically applies the platform filter you selected and, if it exists, the Group Name according to the groups within your defined user scope.
6. Click **Done**.
7. In the Policy Rules table, change the rule position, if needed, to order the policy relative to other policies.<br>

   The Cortex XDR agent evaluates policies from top to bottom. When the Cortex XDR agent finds the first match it applies that policy as the active policy. To move the rule, select the arrows and drag the policy to the desired location in the policy hierarchy.

To learn more policy rules, see [Apply profiles to endpoints](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/protect-your-endpoints/endpoint-security/install-and-manage-endpoints/apply-profiles-to-endpoints.md).

### Exclude CVEs or IP addresses from Virtual Patching

While all applicable CVEs and source IPs are included by default, you can configure exclusions to address performance concerns or false positives.

#### Exclude IP addresses or networks from Virtual Patching

Legacy Agent Exception rules enable you to configure an exception to prevention and protection modules on endpoints for selected profiles. To exclude specific source IPs or networks from virtual patch inspection, create a Legacy Agent Exception rule:

1. Select **Settings** → **Exception Configurations** → **Legacy Agent Exceptions**, and then click **+ Add Rule**.
2. Set the following rule conditions
   * For Platform, select **Windows**
   * For Module, select **Virtual Patching**
   * For Target Properties, define IP exclusion criteria using any of the following formats, and then click the Enter icon:
     * **Specific IP address** — A single IP (for example, `10.0.1.50`)
     * **CIDR block** — A network range (for example, `192.168.1.0/24`)
     * **IP range** — A start and end address (for example, `192.168.10.10–192.168.10.20`)
3. For Profiles, select one or more endpoint profiles that this rule will apply to.
4. Click Next.
5. Review the summary, and toggle the Rule Status to Enabled or Disabled.
6. Read the warning notice and select **I understand the risk**, if appropriate.
7. Click **Create**.

For more information, see [Add a legacy exception rule for endpoints](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/protect-your-endpoints/endpoint-security/install-and-manage-endpoints/set-up-endpoint-protection/set-up-endpoint-profiles-and-exception-rules/set-up-exception-profiles-and-rules/add-a-legacy-exception-rule-for-endpoints.md).

### View virtually patched workloads

The Virtual Patch management page (**Modules → Vulnerability Management → Exposure Management → Virtual Patch**) gives you a centralized view of all your virtually patched workloads. From this page you can:

* View all workloads with Virtual Patching enabled.
* See which CVEs are actively protected on each agent.
* Check the enforcement action applied to each agent.
* Click a CVE to open its associated issue or finding sidepanel.
* Click an asset name to open the asset sidepanel.

### Monitor and improve Virtual Patch effectiveness

Virtual Patching functions as a compensating control, a security measure that reduces risk when the primary control (an official patch) is not yet in place. Cortex Exposure Management automatically evaluates the effectiveness of this control for each CVE on each workload.

You can view the effectiveness of Virtual Patches on the **Vulnerability** **Issues** page, and take action to improve the effectiveness from the issue details.

1. Navigate to **Modules > Vulnerability & Exposure Management > Issues**.\
   The **Control Effectiveness** column displays the effectiveness status of the compensating controls, including Virtual Patches, for each issue. See the [Virtual Patching effectiveness definitions](#virtual-patching-effectiveness-status-definitions) to learn what each status means.
2. Click on an issue to open the issue details card. Select the **Overview** tab to view details about the issue, including CVSS details, asset details, and the list of security controls for that asset.
3. Select the **Resolution** tab to view actions to help resolve or mitigate the identified risk, including actions to improve the effectiveness of Virtual Patches and other compensating controls. Click on an action to see step-by-step instructions.\
   \
   See [Virtual Patch resolution actions](#virtual-patch-resolution-actions) to see descriptions of the recommended actions related to Virtual Patches.<br>
4. Select the **Risk Details** tab to view details about the vulnerability and the status of any compensating controls related to the issue.

#### Virtual Patch effectiveness status definitions

<table><thead><tr><th width="174">Status</th><th width="217.5">Meaning</th><th>Conditions</th></tr></thead><tbody><tr><td><strong>Effective</strong></td><td>The compensating control is active and providing full mitigation.</td><td>A signature is available in the current content version <strong>AND</strong> Virtual Patching is configured to <strong>Block</strong> the CVE.</td></tr><tr><td><strong>Partially Effective</strong></td><td>The control is available but configuration or deployment is incomplete.</td><td>A signature is available in the current content version but Virtual Patching is <strong>not configured to Block</strong> (for example, it is set to Report). <strong>OR</strong> A signature exists but is <strong>not in the content version</strong> currently installed on the agent.</td></tr><tr><td><strong>Not Effective</strong></td><td>No mitigation capability exists for this vulnerability.</td><td><strong>No signature</strong> is available for any content version. A different remediation approach or manual control is needed.</td></tr></tbody></table>

#### Virtual Patch resolution actions

When a compensating control is not fully effective, the system provides guided steps to reach full effectiveness. These recommendations appear in the **Resolution** tab of the issue details card.

<table><thead><tr><th width="265">Action</th><th>Description</th></tr></thead><tbody><tr><td>Deploy Cortex XDR Agent</td><td>Indicates that an agent is not installed on the asset. Steps explain how to install the agent.</td></tr><tr><td>Update XDR Agent Content</td><td>Indicates that the agent's content version does not include a signature for this CVE. Steps explain how to update the content.</td></tr><tr><td>Enable Virtual Patch</td><td>Indicates that Virtual Patch is not enabled in the exploit profile. Steps explain how to enable Virtual Patch.</td></tr><tr><td>Change the action from Report to Block.</td><td>Indicates that the enforcement action in the exploit profile is set to Report instead of Block. Steps explain how to change the enforcement action to Block.</td></tr></tbody></table>

### Identify CVEs that have Virtual Patch coverage

Use the **Vulnerability Intelligence** page to identify CVEs that have Virtual Patch coverage.

1. Navigate to **Modules > Vulnerability & Exposure > Vulnerability Intelligence**.
2. Use the **Virtual Patch = Yes** filter to narrow the page to CVEs that are covered by Virtual Patching.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-virtual-patch/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
