A CVE lands on a PLC, an RTU, a gateway, or an HMI, and the honest answer to "when can we patch it" is often "not this quarter." Uptime requirements, vendor restrictions, certification cycles, maintenance windows, legacy firmware with no supported upgrade path: in OT, the asset frequently stays exactly as vulnerable as the advisory says it is, for months or years after the advisory is published.
Virtual patching exists for that gap. It does not fix the vulnerability. It reduces exposure to it, at the network layer, without modifying the asset itself. Done well, it buys the operations team time. Done carelessly, it becomes a second problem sitting on top of the first.
Virtual Patching Is Not the Same Thing as Blocking a Port
The instinct when a CVE lands on a piece of equipment is to shut the door it came through. Block TCP/502, block TCP/102, block whatever service the advisory names. In OT that instinct is usually wrong, because the process depends on that exact service to run.
A real virtual patch has a narrower job: allow the legitimate industrial communication through, and stop the specific malicious behavior riding on top of it. Availability is not a secondary concern here. A rule that interrupts normal operations to stop a vulnerability that was never actively exploited can end up costing more than the vulnerability itself.
Start With the Exploit, Not the IPS Rule
The rule is the last thing you write, not the first. Before any signature gets drafted, the work is understanding what the exploit actually does: the affected product and firmware band, the service and protocol involved, the exact attacker action, and the impact it produces.
From there, the exploit gets reproduced safely, in a lab or against a digital twin, and the resulting traffic gets captured. Only once you have a real PCAP of the real exploit hitting a real (or realistically simulated) target do you have something precise to build a rule against.
CVE description → exploit execution → packet behavior → enforceable network condition. Skip a step and you are guessing.
The PCAP Is Where the Virtual Patch Actually Begins
Source and destination IPs, ports, the protocol name: none of that is where a good virtual patch lives. The packet capture needs a closer read than that.
Not Every IoC Is a Good Blocking Indicator
An indicator earns its place in a virtual patch by being strongly tied to the exploit and unlikely to show up in normal traffic.
| Strong Indicators | Weak Indicators |
|---|---|
| Malformed protocol fields | Destination port alone |
| Impossible or out-of-range values | Protocol name alone |
| Exploit-specific strings | Generic administrative commands |
| Abnormal message length | Broad, catch-all payload patterns |
| Distinctive command combinations | Anything the exploit shares with routine traffic |
The Question That Makes OT Harder Than Signature Matching
Somewhere in every IoC review, one question decides whether the indicator is safe to act on: could legitimate engineering activity look exactly the same?
A PLC STOP command can be an attacker shutting down a process. It can also be an engineer doing scheduled maintenance. A Modbus FC06 write can push a dangerous value into a control loop, but FC06 itself is a perfectly valid function used constantly by legitimate operator traffic. The command is real either way. The intent is the part the packet does not tell you.
That is why something can be genuinely useful for detection without being safe to auto-block. The two need to be judged on separate scales.
A high-confidence alert is not the same claim as a safe prevention rule, and treating them as interchangeable is where virtual patches can start causing outages of their own.
A few real cases make the difference concrete, drawn from the kind of exploit library a virtual patching program actually has to work through:
Siemens SIPROTEC EN100
The public proof of concept sends a crafted UDP payload to port 50000. Blocking UDP/50000 outright is too broad, and matching the PoC byte for byte is too brittle. The fix is finding the invariant part of the packet that actually characterizes the vulnerability.
S7 Memory Viewer
A request to /tools/MemoryDump is a far stronger application-layer indicator than "HTTP traffic on port 8080." The closer an indicator sits to the actual exploit action, the better the resulting virtual patch holds up.
Galil RIO-47100 DoS
The firewall already had an IPS signature for this one, a reminder to check vendor coverage before building custom rules. But a signature in the database proves nothing until it is confirmed enabled, on the right policy, current, and actually seeing the traffic.
A signature existing in the database and a signature stopping the attack in your environment are two different claims, and only one of them is usually tested.
False-Positive Testing Is Part of the Patch, Not an Optional Extra Step
A rule earning a place in production has to clear two tests, not one. The first is obvious: send the exploit, confirm the firewall blocks it. The second is the one that gets skipped under time pressure: send normal HMI, operator, and engineering traffic through the same rule and confirm none of it gets caught in the process.
A workflow that holds up end to end looks like this: research the exploit, build or simulate the vulnerable asset, execute the exploit, capture the PCAP, identify candidate indicators, build the rule, re-run the exploit to confirm the block or detection, replay normal traffic to check for false positives, refine, and only then deploy or approve.
Every step in that loop except the last one depends on having a target to run the exploit against, and that is exactly where most OT virtual patching programs stall. Not from lack of knowledge. From lack of somewhere safe to test.
Where BattleTwin Fits
BattleTwin builds a virtual twin of the industrial environment the exploit expects, matching the same services, the same banners, and the same request and response structure on the wire. That means the exploit runs as written and produces exactly the traffic you would see in a real attack, without a real PLC, RTU or HMI anywhere near it.
That fixes the write side of virtual patching: reproducing the exploit safely, capturing a clean PCAP, and testing candidate indicators against something that behaves like the real device, without touching a live process to get there.
But the module goes further than helping you build new patches. It also lets you point your existing virtual patches, the ones already sitting in your firewall or IPS policy, at the twin and re-run them on demand. Re-fire the exploit against the rule you wrote six months ago and confirm it still blocks. Then replay normal engineering and HMI traffic through the same rule and confirm it still lets that through too, even after firmware notes changed, after the policy got touched during an unrelated maintenance window, or after a signature update quietly altered its own behavior.
Whether the exploit-specific indicator your patch relies on still triggers exactly when it should, whether the policy the rule sits in is still the one seeing the traffic, and whether legitimate process communication still passes cleanly through it. All three, on the twin, on a schedule, with nothing routed anywhere near the real asset.
A virtual patch is not a document you write once and file away. It is a claim about behavior under specific conditions, and those conditions drift: policies get edited, signature sets get updated, network paths change. Being able to re-test that claim on a twin, as often as you like, is what turns "we deployed a rule for that CVE" into "we know the rule still holds today."
The hardest part of OT virtual patching was never writing the rule. It is proving, and re-proving, that the rule still does what you think it does.
