A virtual patch is a mitigation applied where traffic can be inspected, while the vulnerable application code stays unchanged. It can reduce exposure to the attacks it matches, but it does not fix the underlying flaw or guarantee that every variant is blocked.

Identify where the mitigation runs

Traffic inspection may happen at a network device, reverse proxy, edge service or in-process application middleware. Each position sees different traffic and deploys differently, so not every virtual patch is a network control.

A mitigation can block a matched request or change the response. How useful it is depends on the vulnerability and on what the rule can see. A control with no trusted access to application state cannot decide who owns a record or apply other business rules.

Two different deployment contexts
ContextQuestions to ask
Proxy or edgeWhat traffic is visible, which routes are covered and who controls deployment?
In-process middlewareWhich runtime is supported, what context is available and where is the SDK installed?
Either contextWhat happens to legitimate traffic, failed rules and rollback?

When virtual patching fits

A virtual patch buys time while the real correction is prepared. It is most useful when a known, exploitable weakness cannot be fixed in code quickly.

  • A newly disclosed vulnerability, before a vendor or framework patch is available or deployed.
  • Legacy or third-party code that your team cannot change quickly.
  • A change freeze or release window that delays a code deployment.
  • The gap between a confirmed pentest finding and a reviewed, released code fix.

Observe before enabling enforcement

Start from evidence of the actual weakness. Run the rule in log-only mode first and look at what it matches. Test normal traffic and realistic bypass attempts within the authorized scope.

Turn on blocking only after the team that owns the application has reviewed what the rule matched. Keep a way to roll back, and watch the effect on real users. Installing middleware can itself need an application deployment, so virtual patching does not always mean no deployment, no downtime or no testing cycle.

Separate enforceable patterns from ownership policy

ShieldProbe Defend runs as in-process middleware through its SDK. It is sold separately and starts in log-only mode; your team decides when a supported rule starts blocking. A rule can allow or block a request, add a response header, or rewrite or mask the response. It never rewrites the request.

In our fictional SP-015 example, an installed rule with blocking turned on stops a matched reflected-script payload. That shows one payload blocked, not complete XSS protection. SP-014, a separate order-ownership finding, is logged but never blocked, because a rule cannot query sessions or the database to work out who owns an order.

Limits to plan for

A virtual patch is a mitigation, not a correction. Plan for its operating costs from the start.

  • Pattern-based rules can miss a variant of the attack or block legitimate requests, so observe matches before enforcing.
  • Flaws that depend on business rules, such as ownership checks, usually need application context that a rule does not have.
  • Each rule needs an owner, a review date and removal once the code fix is verified.
  • Measure the performance and operational impact in your own environment.

Retire the rule after verifying the correction

Use the time the mitigation buys to write and review the code fix. Keep the original finding and the rule's state where the remediation owner can see them.

Retest the patched application with the mitigation turned off. Replay the attack and the normal-user checks, and note what the retest covered. While the mitigation is on, a block can hide an application that is still vulnerable, so it is not proof of a fix.

Once that evidence is in, the owner can decide whether to retire the rule.

Primary references

Standards change, so check the current version of each source when you plan your own testing.

Before you turn on blocking

  • Know where the rule runs and which actions it supports.
  • Watch what it matches and test normal traffic first.
  • Keep the rule version, who approved blocking and how to roll back.
  • Retest the code fix with the mitigation turned off.