Cyber defence automation, lessons from industrial control systems

Agentic attackers move at machine speed. Process industries solved automatic, pre-authorised action decades ago. Here is how their safety lifecycle maps to automated cyber containment.

Author
Ben Steenkamer
Published
Reading time
12 minutes
Topics
OT security, Cyber incident response automation, CSIRT, Detection engineering, Functional safety

The threat clock has changed

Agentic offensive frameworks are now executing real intrusions at machine speed. Google Threat Intelligence Group and Mandiant documented ARTEX and PentAGI in active use by extortion crews and suspected espionage operators through late 2026.

What numbers we are dealing with:

  • Execution runs in bursts of 2 to 25 seconds. One operation logged 27 events in 23 seconds.
  • First compromised account to deep access took four hours. In the shortest case, 15 minutes.
  • DCSync exposed the krbtgt key and the framework enumerated more than 110,000 AD objects.

GTIG describes seven stages of LLM-enabled operations, today we are at stage 5:

  1. Prompt-based use: coding help, phishing drafts (late 2025 to early 2026)
  2. LLMs embedded in malware at runtime (early 2026)
  3. LLM automation with humans in the loop (September 2026)
  4. Experimenting with autonomous frameworks (mid-2026 to September 2026)
  5. Multiple lifecycle stages run by LLM tooling in the wild (now)
  6. Multi-agent, unsophisticated attacks with little human input (expected in 1 to 3 months)
  7. Sophisticated, fully autonomous attacks, on self-hosted models (expected in 3 to 6 months)

Frequency will only rise. GTIG assesses with high confidence that cybercrime actors will keep adopting these tools, as wider reach offsets lower success rates. Taking down the original ARTEX repository in October 2026 slowed nothing: forks and a commercial ARTEX PRO are already circulating.

None of these are new techniques. It is valid credentials, unpatched edges and lateral movement, as always. What has changed is how fast they are chained together.

Why “a human approves every action” no longer works

A typical SOC chain runs alert, triage, escalate, approve, contain, and every hand-off is a queue. Against an attacker that finishes a kill chain in 15 minutes, the attack is over by the time the approval step comes around.

The good news is that these tools are loud (for now). One web server intrusion produced 240 log events, sub-agents overwrote each other’s work, and one forced a notification system to email more than 1,300 internal users. Detection is still possible. But GTIG’s own conclusion is that detection alone doesn’t stop an attack.

So why don’t internet-facing companies automate containment? Because executives have been burned, or worry about being burned, by automation that takes production offline. Their objections are fair:

  • Who decided this action was safe?
  • What happens if the signal is wrong?
  • Has it ever actually been tested?
  • What happens when the automation itself breaks?

Process industries answered these exact questions decades ago for safety trips. Nobody running an LNG plant is afraid of the safety system, even though it can shut down a multi-billion-dollar facility with no human approval. What makes the difference isn’t the automation, it’s the engineering discipline around it.

How process industries solved this: the safety lifecycle

A process plant runs two separate systems. The process control system (PCS), which runs the plant. And the safety instrumented system (SIS), which has one job: when the process goes outside safe limits, take it to a safe state without asking anyone.

Each protective function in the SIS is a safety instrumented function (SIF). A SIF is a complete loop of sensor, logic solver and final element. For example, high-high pressure on a separator closes the inlet shutdown valve.

The governing standard is IEC 61511. It defines a lifecycle, and no SIF goes into service without passing through every stage:

  1. Hazard and risk assessment. A HAZOP identifies what can go wrong. A LOPA then works out how much risk reduction each scenario still needs once the other layers of protection are counted.
  2. SIL allocation. Each SIF gets a Safety Integrity Level, SIL 1 to 4, which sets its target “probability of failure on demand (PFD)”. SIL 2, for example, means a “PFD” between 1 in 100, and 1 in 1,000.
  3. Safety Requirements Specification (SRS). For each SIF, the SRS defines the trip set point, process safety time, required response time, safe state, voting architecture, bypass rules, reset requirements and proof test interval.
  4. Design and engineering. The hardware architecture and fault tolerance are designed, and a PFD calculation proves the SIL target is met.
  5. Verification and validation. Factory acceptance testing, then Site acceptance testing, including cause and effect testing, then safety validation - all before any hazardous hydrocarbons are introduced.
  6. Operation and maintenance. Proof testing at a fixed interval, bypass control, and a review after every trip.
  7. Management of change. Any change re-enters the lifecycle at the intended point and is re-verified.

The point for executives: a trip is never “a script someone wrote”. It is a specified, calculated, independently verified function, with a record of every test it has ever been through.

What a cause and effect matrix actually is

The cause and effect (C&E) matrix is the contract between process safety, the design team and the commissioning team. Each row is a cause, an initiating event detected by sensors. Each column is an effect, an action on a final element. A mark where they meet means “when this cause occurs, this effect must happen”.

Worked example for a gas separator (tags and set points are illustrative only):

Cause Sensors Trip point Voting Close inlet SDV-1001 Open blowdown BDV-1001 Stop compressor K-1001 Alarm in CCR
Separator pressure high-high (PAHH) PT-1001A/B/C 85 barg 2oo3 × × ×
Separator level low-low (LALL) LT-1002A/B 10% 1oo2 × × ×
Confirmed gas detection GD-1003A/B/C 20% LEL 2oo3 × × × ×
Manual ESD pushbutton HS-1004 n/a 1oo1 × × × ×

The matrix makes everything explicit:

  • Each cause names its sensors, set point and voting. 2oo3 means two of three transmitters must agree before the trip acts, so a single failed transmitter can neither trip the plant nor blind the function.
  • Each effect names its final element and safe state: valve closed, valve open, motor stopped.
  • Each mark is a testable requirement. Unmarked means it doesn’t happen. Marked means it must be proven.
  • Notes cover the rest: time delays, latching, permissives, and how and where the trip is reset.

Operators, process engineers, safety engineers and auditors can all read a C&E. That shared readability is why it works so well.

What final elements are, and why testing goes all the way to them

A final element is the device that physically puts the process into its safe state: a shutdown valve with its actuator and solenoid, a blowdown valve, a motor contactor, a breaker. It is where the logic meets the physical world.

Final elements are where many dangerous failures hide. Valves stick, solenoids burn out, actuators lose instrument air. Commonly cited industry figures put around half of SIF dangerous failures in the final elements, against less than a tenth in the logic solver. A trip that works perfectly in the logic solver but never strokes the valve has done nothing.

So the industry rule is end to end. A SIF test starts at the sensor, or as close to it as practical. It ends only when the final element is confirmed in its safe state within the required response time.

How the industry tests SIFs

Testing is layered, and each layer proves something different.

Stage Where What it proves
Logic test Vendor factory, simulated I/O The application logic matches the C&E: every cause drives every marked effect
FAT (Factory Acceptance Test) Vendor factory, real logic solver hardware Hardware, I/O, diagnostics and logic perform to spec
Loop checks Site, after installation Every field device is wired correctly and reads or acts correctly through to the logic solver
SAT (Site Acceptance Test) and C&E testing Site, before hazards are introduced Every C&E mark tested end to end: inject the cause at the sensor, confirm each effect at the final element, record response times
Safety validation Site, before startup The installed SIS meets the SRS before process fluids are introduced
Proof testing Operating plant, at the SRS interval Finds dormant failures diagnostics can’t see, such as a valve that will no longer stroke
Trip review After every real or spurious trip The function acted as designed, and the demand was real

Around the testing sit the controls that keep it honest:

  • Voting. Architectures like 2oo3 and 1oo2 trade safety against spurious trips, and both sides are calculated.
  • Spurious trip rate. Tracked closely, because a SIS that trips falsely ends up bypassed.
  • Bypass management. Every bypass is authorised, logged, time limited and visible in the control room, with compensating measures in place.
  • Manual reset. After a trip the plant does not restart itself. A person confirms the cause has cleared, then resets.
  • Management of change. Any change to logic, set points or hardware triggers re-verification of the affected functions.
  • Records. Every test is signed and every result kept. The audit trail is part of the deliverable.

Translating it: Deterministic Cyber Defence

A deterministic containment action is a “Cyber SIF”, built on the same loop. Telemetry is the sensor, a correlation rule engine is the logic solver, and the enforcement point is the final element. “Deterministic” means the same inputs always produce the same action: a defined, version-controlled rule, not a model deciding on the fly. AI can help find attack paths and tune baselines, but it never gets to decide when to initiate trips.

Same loop, different domain: every trip ends at a final element Two parallel loops. Process safety: sensors PT-1001A/B/C feed a logic solver with 2oo3 voting and C&E logic, which closes shutdown valve SDV-1001. Cyber defence: proxy, DNS and firewall telemetry feed a rule engine with 2oo3 voting and C&E rules, which has EDR isolate the host. Process safety (SIF) Sensors PT-1001A/B/C Logic solver 2oo3 voting, C&E logic Final element SDV-1001 closes Cyber defence (deterministic containment) Telemetry Proxy, DNS, firewall Rule engine 2oo3 voting, C&E rules Enforcement point EDR isolates the host
The two loops are built and tested the same way. Only the final element changes, and a test passes only when that final element is confirmed in its safe state within the required response time.

A Cyber C&E matrix, with rows taken from behaviours in the GTIG research (thresholds illustrative only):

Cause Telemetry sources Threshold Voting Revoke sessions and tokens Isolate host (EDR) Block egress Throttle API Page on call
Canary credential used IdP, cloud audit log Any use 1oo1 × × ×
Management API burst from new origin Control plane audit log, network flow N calls in 60 s above baseline 2oo2 × × ×
Server egress to webhook, OAST or tunnel services Proxy, DNS resolver, firewall Any, from server segments 2oo3 × × ×
Directory enumeration spike Domain controller logs, EDR N times baseline object reads 2oo2 × × ×
Bulk email or notification from an app App logs, mail gateway Recipients above limit 1oo1 × ×

Each row maps to something ARTEX did: credential abuse, bursts against Kudu and ARM management APIs, C2 over 491 rotating webhook.site URLs, enumeration of 100k+ AD objects, and 1300+ forced internal emails.

The final elements are the enforcement points: IdP session revocation, key and token rotation, EDR network isolation, firewall and proxy rule pushes, API rate limits, cloud security group changes. The SIS rule applies unchanged. A test passes only when enforcement is confirmed: the session is dead, the host can’t reach the network, the egress is actually blocked. “The playbook ran” isn’t a pass.

The full mapping:

Control systems Cyber defence automation
HAZOP and LOPA Threat scenarios, scored on the attack’s consequence and on the cost of a “spurious trip” to production
SIL Response tier: how much confidence and voting a scenario needs before an action
SRS Response spec per action: trigger, threshold, safe state, response time, reset, test interval
C&E matrix Detection × containment matrix, signed off by security operations and the business owner
Sensor Telemetry source/s with a mature baseline
Voting (2oo3) Independent telemetry sources must agree before a high-impact action
Logic solver Deterministic rule engine (SIEM or SOAR correlation), version controlled
Final element Enforcement point: IdP, EDR, firewall, API gateway, cloud control plane
Process safety time Attacker time-to-impact; GTIG’s 15 minutes sets the bar
Alarm, pre-alarm, trip Graduated response: alert, then low-impact actions, then high-impact voted actions
FAT Rule and playbook testing in staging with replayed telemetry
SAT, C&E test Production test: inject the cause, confirm every effect at the enforcement point, time it
Proof test Scheduled retest of every row, as APIs, credentials and integrations fail silently
Spurious trip rate False-positive budget per action, reported as a KPI
Bypass management Suppressions authorised, logged, time-gated and visible
Safe state and fail direction Decided per action: what happens if the automation itself fails?
Manual reset The machine contains, a human restores
Management of change Rule changes go through change control and retest, then redeploy

Worked example: testing one row end to end

Take one row: server egress to webhook, OAST or tunnelling services. The effects are isolate the host, block the egress and page on call engineer.

SRS entry

  • Cause: an outbound connection from a server segment to a listed webhook, OAST, tunnelling or file transfer domain, seen in at least 2 of 3 sources (proxy, DNS resolver, firewall).
  • Effects: EDR isolates the host, the perimeter blocks egress to the destination, and on call is paged with the evidence.
  • Required response time: set per environment, for example under 60 seconds from first event to confirmed isolation.
  • Safe state: host isolated, with the EDR management channel kept open.
  • Fail direction: if the EDR API is unreachable, fall back to switch port or security group quarantine, and page.
  • Reset: manual, by on call after triage, and logged.
  • Proof test interval: monthly, and after any change to EDR, proxy, DNS or firewall.

Test procedure

  1. Prepare. Notify operations, pick a designated test host in a production server segment, and confirm the rollback.
  2. Inject the cause. From the test host, resolve and connect to a test domain on the list.
  3. Prove the voting. Confirm the event appears in all three sources. Disable one source and confirm it still trips (2oo3). Disable two and confirm it doesn’t.
  4. Confirm every effect at the final element. The host reaches nothing except the EDR management channel, egress is blocked at the perimeter, and the page arrives.
  5. Record response times for each effect against the SRS.
  6. Reset. On call releases the isolation, and the host is confirmed back in service.
  7. Sign off the result, the times, any deviations etc.

That is a test record. An executive can read it and an auditor can check it. Nobody is left guessing what the automation will do in production.

Where to start

  1. Start with causes that have almost no false positives. No legitimate user touches a canary credential or honeytoken, so a single use can be a 1oo1 trip.
  2. Build baselines before automating. Volumetric rows like API bursts, enumeration and bulk reads need mature network and identity telemetry. Without a baseline, a trip is a guess.
  3. Write the C&E before the playbooks. Have SOC + Security Engineering and the business owner sign off each row.
  4. Use graduated response. Alert first, then low-impact automatic actions (force reauth, throttle), then high impact voted trips (isolate, revoke).
  5. Test every row end to end, then put it on a proof test schedule.
  6. Report to executives the way a plant reports SIS performance: test results, spurious trips, open bypasses.

The process industries didn’t get comfortable with automatic shutdowns by trusting automation. They got comfortable by engineering it, testing it all the way to the final element, and keeping the records. Internet-facing companies will be forced to do the same.

Detection alone can’t stop an attack. Only pre-authorised containment at machine speed can do that: own the ruleset and the review, not the execution.

Sources