In our last post, we argued that defence must run as a continuous loop at machine speed.
The obvious next question:
What happens when the defending agent is wrong, or compromised?
Three failure modes. All expensive.
- False positive: It hallucinates an attack and isolates production. You just launched a denial-of-service against yourself.
- False negative: It declares "all clear". The breach continues, now with a green dashboard.
- Agent compromise: Prompt injection, poisoned context or a compromised tool manipulates the agent into using its own privileges against the network it was built to protect.
Your most privileged non-human identity may soon be an AI agent.
Govern it accordingly.
This is not theoretical. In a second-opinion review of an agentic AI solution for a major bank, we found authentication gaps, prompt-injection exposure and stability issues. 65% of the solution had to be redesigned.
We built a custom control layer so that hallucinated outputs and unauthorised commands cannot reach execution. It went live only after full verification and validation, with tested rollback. It has since become one of our most requested capabilities.
From our work in mission-critical and banking environments, these are the minimum guardrails we apply to a defence agent:
- Least privilege. Unique identity, scoped and short-lived credentials per task. No standing admin rights. The agent cannot grant or modify its own permissions.
- Untrusted input. Logs, emails, alerts and web content are data, never trusted instructions. Enforce input isolation, provenance and validation.
- Separation of duties. Detection ≠ Decision ≠ Execution. An independent policy enforcement layer must authorise high-impact actions.
- Integrity first. Cryptographic hashes, signed artifacts and trusted deployment controls for code, models and configuration. Monitor runtime integrity.
- Evidence before action. Independent corroboration and verifiable evidence before high-impact autonomous actions. Insufficient evidence? Escalate, investigate, don't execute.
- Graduated autonomy. Observe → Assess → Propose → Act. Expand autonomy only within explicitly approved risk boundaries.
- Humans own the irreversible. Critical system isolation, identity revocation and destructive remediation require human approval unless explicitly covered by pre-authorised emergency playbooks.
- Independent audit and kill switch. Immutable, externally stored audit records. An emergency stop mechanism outside the agent's control.
And two additional architectural principles:
- Continuous adversarial testing and assurance.
- Recovery to a trusted state if the agent is compromised.
The fundamental principle:
Never allow the agent to be the sole authority validating its own decisions or authorising its own actions.
Speed without verification is just a faster way to be wrong.
← Attackers now run AI agents. Your SOC still runs tickets.Guardrails without governance are just configuration. →