Physical consequences of a rogue command
When an agent is granted the ability to send set‑points to a turbine governor, the effect is not a software glitch but a real change in mechanical output that can affect downstream generators and consumer supply.
Imagine an agent that mis‑reads a forecast and lowers the output limit of a gas‑fired plant by ten percent during peak demand. The grid operator would have to dispatch reserve capacity, increasing fuel consumption and emissions, while customers experience voltage dips.
Network segmentation and the cloud‑agent gap
OT networks are deliberately air‑gapped or segmented behind firewalls. An AI service running in a public‑cloud tenant cannot reach the PLCs unless a broker is explicitly permitted.
Suppose a cloud‑hosted scheduling agent tries to invoke a maintenance‑order tool that lives behind a bastion host. Without a pre‑approved rule, the call is blocked, preserving the segmentation that protects safety‑critical controllers.
- Strict access control for every tool callMAQPNA enforces a default‑deny policy per tool and per argument, allowing a call only when a rule explicitly permits it.
- Human oversight of safety‑critical actionsMAQPNA holds risky calls for a person to approve, providing four‑eyes approval and separation of duties.
- Immediate revocation of compromised agentsMAQPNA supplies a kill switch that revokes every agent, everywhere, with sub‑second latency.
- Tamper‑evident audit trail for regulator scrutinyMAQPNA writes every decision to a SHA‑256 hash‑chained ledger; a call that cannot be recorded does not run.
- Protection against data leakage from tool executionMAQPNA adds data‑loss‑prevention on tool, model and code calls, tracking the lethal trifecta.
Meeting NIS2 and AI Act obligations
NIS2 obliges operators of essential services to demonstrate tight access control, immutable logging and a defined incident‑response process for any automated decision.
A plausible failure: an agent's attempt to adjust a breaker position succeeds, but the audit record is lost because the logging backend was unavailable. In that scenario the regulator would consider the control system non‑compliant.
- Enforce default‑deny per tool and per argument.
- Require four‑eyes approval for any call that changes a physical set‑point.
- Store every decision in a SHA‑256 hash‑chained ledger.
Failure modes and safe defaults
When a downstream dependency fails, the safest reaction is to stop the automation rather than to continue with stale data. A stop‑on‑error policy prevents cascades that could jeopardise equipment.
Imagine a loss of connectivity to the central SCADA server while an agent is in the middle of a ramp‑up sequence. A well‑designed guard will abort the operation and raise an alert instead of guessing the plant state.
Putting controls in practice
On Monday morning, audit your tool catalog and pin each definition with a policy that rejects any unsigned change. Verify that every agent session runs in its own gVisor sandbox and that short‑lived Ed25519 tokens carry the correct SPIFFE subject.
Enable the built‑in kill switch, test its latency in a staging region, and document the procedure for revoking all agents within seconds. Record the test in the ledger so the evidence pack can be mapped to NIS2 and the EU AI Act.
- Run
maqpna preflight --profile prod -f values.yaml --strictbefore any production rollout. - Add a DLP rule that blocks the lethal trifecta – private data, untrusted content, outbound channel – on every tool call.
- Configure prompt‑injection guards to screen all LLM inputs that influence control decisions.
Takeaways
- Audit and pin every OT tool definition before granting agent access.
- Require four‑eyes approval for any command that changes a set‑point or breaker state.
- Test the kill‑switch latency weekly and keep the procedure documented.
- Store all agent decisions in an immutable ledger and verify logging availability.
- Run a pre‑flight validation (
maqpna preflight …) before each production deployment.
Questions people ask
Can an AI agent directly control a PLC on a segmented OT network?
Only if a policy explicitly allows the specific tool call and the network path is authorised. MAQPNA's default‑deny stance blocks any undeclared pathway.
How does MAQPNA help with NIS2 logging requirements?
Every decision is written to a SHA‑256 hash‑chained ledger. If a call cannot be recorded, the ledger rejects the action, ensuring an immutable audit trail.
How this was written
Part of the MAQPNA sector series, written with Cloudflare Workers AI and checked automatically: every claim about MAQPNA comes from our fact sheet, no statistics are invented, and rules are named, never "certified". MAQPNA helps you produce the controls and evidence they ask for; your assessor decides the rest. See MAQPNA for energy and critical infrastructure. Spotted a mistake? Tell us.