Security & Safety / Defence Against Hostile Agents
Defend against hostile AI agents with the 4Ds — Delay, Defend, Detect, Disrupt
The four layers come from the Institute for AI Policy and Strategy’s detection-in-depth report, which defines them at ecosystem level. The rules below are this site’s adaptation for one organisation defending its own environment.
Delay — slow attacking agents down
Section titled “Delay — slow attacking agents down”- SHOULD raise the cost of automated attacks: rate-limit and challenge high-volume access, add latency to suspicious sessions, and place tarpits that consume an attacking agent’s time and tokens.
- SHOULD use decoy paths and content (fake credentials, fake shares, fake APIs) that lead automated attackers into monitored dead ends rather than real systems.
Defend — harden what agents target
Section titled “Defend — harden what agents target”- MUST fix the basics agents exploit fastest: exposed services, stolen or weak credentials, missing MFA, unpatched internet-facing systems, secrets in repositories (BP-0033).
- MUST apply least privilege and segmentation so one compromised identity or host gives an agent little to work with (BP-0032).
- MUST harden your own agents against being turned on you: prompt-injection handling, tool allow-lists and approval gates (BP-0005).
Detect — see agent activity early
Section titled “Detect — see agent activity early”- MUST deploy deception that only an attacker would touch (canary tokens, honey credentials, decoy hosts and documents). Any interaction is a high-confidence alert, and automated attackers tend to touch everything.
- SHOULD detect machine-speed patterns: very fast reconnaissance, many parallel sessions, systematic enumeration, and tool or user-agent fingerprints, correlated across identity, endpoint, network and cloud logs.
- SHOULD send deception and detection alerts to the SOC with enough context to act, and record the attacking agent’s behaviour as threat intelligence.
Disrupt — impose cost inside your own boundary
Section titled “Disrupt — impose cost inside your own boundary”- SHOULD respond automatically to high-confidence signals: isolate hosts, revoke sessions and tokens, block sources, and divert the session into a high-interaction decoy to observe it.
- MUST NOT attack, probe or “hack back” systems you do not own or have authority over. Disruption stays inside your environment and your legal scope; get legal and leadership approval for active deception and for any automated response.
- MUST protect deception assets and logs from tampering, and make sure decoys cannot be used as a pivot into real systems.
- SHOULD run regular exercises with an authorised agentic red team to measure time to detect and contain.
When to apply
Section titled “When to apply”Security programmes planning for AI-assisted or fully agentic attacks, including insider misuse of agents.
Examples
Section titled “Examples”| Layer | Control | Tool examples |
|---|---|---|
| Delay | Tarpit SSH/HTTP endpoints; decoy file shares | LLM-backed honeypots (for example Beelzebub) |
| Defend | Phishing-resistant MFA; secret scanning; segmentation | Identity platform, CI scanners |
| Detect | Canary tokens in repos, mailboxes and AD; decoy hosts | Canary platforms, SIEM correlation |
| Disrupt | Auto-isolate on canary trip; revoke tokens; divert to decoy | SOAR playbooks |
Anti-patterns
Section titled “Anti-patterns”- Deception with no alert routing, so trips are never seen.
- Decoys that hold real data or can reach production.
- Automated “counter-attacks” against source IPs.
- Treating agentic attacks as a future problem while basics stay unfixed.
Checklist
Section titled “Checklist”- Delay: rate limits, tarpits and decoy paths in place
- Defend: basics fixed; least privilege; own agents hardened
- Detect: deception deployed and alerting; machine-speed patterns correlated
- Disrupt: automated containment inside legal scope; no hack-back
- Decoys isolated and protected; exercises run