Skip to content
Back to blog

Introducing virtual patches in SWARM

5 min read
Introducing virtual patches in SWARM

Sources checked: . FailSafe Research.

A vulnerability does not stop being exploitable while the fix is in review. Once SWARM has reproduced a finding, the request that proves it is also a precise description of what needs to be blocked. Virtual patching turns that finding into a rule at the edge, so the path can be refused while engineering prepares and tests the code change.

Virtual patches are available now for confirmed findings in SWARM. They generate a provider-specific rule for Cloudflare, AWS WAF, ModSecurity or Nginx. A Cloudflare rule can be applied from the finding after a user with edit rights approves it.

The window between discovery and fix

A pentest finding is usually the start of a queue, not the end of the risk. The issue has to be triaged, assigned, fixed, reviewed and released. For a critical path, that can take days or longer than a sprint.

The usual options in that window are to accept the exposure, disable the feature, or write a one-off rule under time pressure. Each has a cost. Disabling a feature can break the product. A hand-written rule is hard to review, easy to leave behind and rarely connected to the finding that justified it.

SWARM already has the missing input: a reproduced request, the identity and state around it, and a recorded result. A virtual patch uses that evidence to build a narrow rule, then keeps the rule linked to the finding it came from.

How it works

  1. A finding is reproduced. SWARM confirms the issue with a request and response, or with source evidence where the finding rests on code.
  2. SWARM drafts the rule. The finding page generates an expression that targets the method, host and path involved in the demonstrated request.
  3. The customer reviews it. The rule is shown with its expression and the bypass paths to check before enforcement.
  4. The rule is applied with approval. For Cloudflare, a user with edit rights confirms the rule with their own login. One active rule per finding.
  5. The fix is retested and the rule is removed. After the code change is deployed, the original case is retested. The virtual patch is a stopgap, not the permanent control.

Built from the finding, not a generic signature

A virtual patch is narrow by design. It matches the request shape that proved the issue, such as a POST to a specific diagnostics endpoint, rather than blocking a whole class of traffic across the application.

That narrowness is what makes the rule reviewable. The finding already records the request, the identity, the preconditions and the observed effect. The rule can be read against that record instead of against a vendor's generic rule set.

Narrowness is also a limit. A rule that matches one path can miss a method override header, an encoded variant, another hostname or a different API version. SWARM surfaces those checks beside the expression, and the finding remains open until the code fix is verified.

Four rule formats

Different teams run different edges. SWARM generates an expression for Cloudflare, AWS WAF, ModSecurity or Nginx from the same finding, so the rule can fit the infrastructure the customer already operates.

Cloudflare is the deepest integration today: the rule can be applied from the finding after approval. For AWS WAF, ModSecurity and Nginx, the expression can be reviewed and copied into the customer's own configuration. Provider access, rule limits and deployment process are confirmed for each engagement.

Approval stays with the customer

A virtual patch changes production traffic. It is not applied silently by an agent.

For Cloudflare, the apply action requires a user with edit rights to confirm it with their own Cloudflare login. SWARM keeps one active rule per finding and logs every apply and removal. The rule can be reviewed before it is enabled, and it can be removed without waiting for a release.

This follows the same operating model as the rest of SWARM. The agent can investigate and propose. The customer keeps authority over production changes.

What a virtual patch does not do

A virtual patch does not fix the vulnerability. It reduces exposure to a demonstrated request pattern while the underlying code is corrected. The issue remains in the finding until the fix is deployed and the original case is retested.

It also does not replace a code review. If the application accepts the same action through another path, a method override header or a new API version, the rule may not cover that path. The finding page lists the variants to check. A blocked exploit attempt is not evidence that the authorization rule itself was corrected.

And it is not a permanent substitute for engineering work. A growing set of virtual patches becomes its own maintenance problem. The useful end state is a small number of temporary rules, each linked to a finding and removed after the fix is verified.

From stopgap to fix

The sequence matters. Reproduce, patch, fix, retest, remove.

The virtual patch buys time without pretending the vulnerability is gone. The retest proves the code change on the corrected build. Removing the rule after the retest keeps the edge configuration honest.

For teams already using SWARM, virtual patching turns the period between a confirmed finding and a released fix into a controlled window rather than an accepted risk. For teams evaluating the platform, it is a concrete answer to a common question: what happens after the report arrives?

Availability

Virtual patching is available for confirmed findings in SWARM. Cloudflare rules can be applied after approval by a user with edit rights. AWS WAF, ModSecurity and Nginx expressions can be reviewed and copied. Availability for a specific plan, provider and target is confirmed with the team before an engagement.

Review the virtual patching feature in SWARM, the controls around applying a rule, or discuss virtual patching for your environment.

Basis: FailSafe product documentation and the public execution-control summary, editorial update 26 November 2026. This describes the documented workflow. Provider support, account access and deployment terms are confirmed per engagement.

Questions & answers

Questions about this topic

Direct answers to common questions about this page.

A virtual patch is a targeted rule at the WAF or edge firewall that blocks a demonstrated request pattern while the underlying code fix is prepared and deployed. It reduces exposure to that pattern. It does not remove the vulnerability.

No. A Cloudflare rule is applied only when a user with edit rights confirms it with their own login. One active rule is kept per finding, and every apply and removal is logged. AWS WAF, ModSecurity and Nginx expressions are provided for the customer to review and deploy.

SWARM generates expressions for Cloudflare, AWS WAF, ModSecurity and Nginx. Cloudflare is the deepest integration today. Confirm provider access and rule limits for your environment.

After the code fix is deployed and the original case is retested on the corrected build. Keeping temporary rules after the fix adds maintenance work and can hide a later change in behaviour.

Yes, if the application accepts the same action through another path, a method override header, an encoded variant or a different API version. The finding lists the variants to check. A blocked request does not prove the authorization rule was corrected.

Put this guidance to work

Review the finding-to-rule workflow, the provider formats and the approval step before the fix ships.

Startup offer: $999 USD for 250 credits and one authorized black-box run. Sign in to SWARM before Stripe checkout. Custom scope and sovereign deployments are separate.

See virtual patching in SWARM