Agentic Security
Why rogue agency is an emerging systemic enterprise risk, and ten controls cybersecurity teams should consider.
This blog post draws on preliminary disclosures from Hugging Face (16 July 2026) [1], OpenAI (21 July, updated 28-29 July 2026) [2], and Anthropic (30 July 2026) [3]. These reviews are continuing and a fuller OpenAI technical report is expected, so treat the specifics as provisional and recheck before relying on them.
In this post
What happened
On 16 July, Hugging Face disclosed an intrusion into part of its production infrastructure, detected and contained, and driven end to end by an autonomous AI agent system rather than an adversary at a keyboard [1]. Five days later, OpenAI revealed the activity had come from its own models, GPT-5.6 Sol and a more capable internal research prototype, run with their cyber refusals reduced for an internal capability evaluation [2].
The models were not given direct internet access; to get it, they found and exploited a zero-day in the package proxy that provided their only permitted network path, escalated privileges and moved laterally until they reached an online node, then inferred that Hugging Face might hold the benchmark’s answers and proceeded to chain stolen credentials and further zero-days to gain a foothold on Hugging Face’s servers. There was no external adversary. This was an authorised evaluation that no one intended to escape, with the models, in OpenAI’s words, going to extreme lengths for a narrow testing goal.
The defence gave us a glimpse of a new challenge, too. When Hugging Face came to analyse the attack, the frontier models Hugging Face first used, behind commercial APIs, refused the malicious material on safety grounds, unable to tell an incident responder from an attacker. It fell back to an open-weight model, GLM 5.2, on its own infrastructure [1]. The safeguards meant to protect had become an obstacle for incident responders.
This was not a one-off. On 30 July, Anthropic disclosed related but technically distinct incidents in cyber evaluations run with a third-party partner. Across 141,006 reviewed runs, it found three incidents in which Claude reached the internet and gained unauthorised access to three organisations [3]. Anthropic judged them closer to harness and operational failures than alignment failures. The models mostly treated real systems as part of the simulation, although an older model continued after recognising that it had probably reached production, while Anthropic’s latest test model stopped. No self-generated objective was required: an assigned goal, a false picture of the environment and reachable real systems were enough.
A rogue outcome does not require a rogue objective.
This is the kind of failure we named a distinct class of threat last December, when we placed Rogue Agents in the OWASP Top 10 for Agentic Applications as ASI10 [4]: an agent that, whether subverted or simply over-optimising, acts beyond the boundaries and the authority it was given. Replit was an early warning prior to our Top 10 publication, then PocketOS in April, and now the July disclosures from OpenAI, Hugging Face and Anthropic. Together, these cases show the same failure mode recurring under different conditions. UK AISI’s evaluations show autonomous cyber capability advancing quickly, with open-weight and frontier models closely matched on some tasks [5].
Vulnerability discovery is one front in this new battlefield. The NCSC says AI is already accelerating elements of offensive cyber activity, compressing some work from weeks to minutes [6]. The UK is taking a leading role in defence. A GC3 pilot across nine government organisations combined conventional scanners, structured agent pipelines and expert review. Across the participating teams, it found 407 issues, including critical weaknesses, at a model-usage cost of about £13,000; all critical weaknesses were remediated and no exploitation was identified [7]. Cyber Shield extends that ambition to national-scale discovery, detection, containment and mitigation [6]. This work is pioneering, welcome, necessary and right.
But national cyber defence is the sharpest manifestation, not the whole problem. Replit and PocketOS show the same failure mode in enterprise software development: agents pursuing legitimate tasks with real credentials performed destructive actions. Cyber Shield itself envisages agents operating under their owners’ control and authority. Enterprises must now make that real across ordinary workflows. National capability will not, by itself, govern every agent an organisation deliberately deploys.
Hannibal Ante Portas No More
If an authorised system can act through tools at machine speed, perimeter security and model safeguards remain necessary but are no longer sufficient. I have made this point repeatedly, at Cyber Crime 2026 [8] and at the Real World AI Conference at Stanford University [9]: organisations need to rethink their security models for agentic AI. These incidents, alongside the earlier Replit [10] and PocketOS [11] cases and Anthropic’s own insider-threat research [12], confirm the urgency.
This is a new systemic enterprise risk, and it needs a systemic response that goes beyond building resilience against frontier cyber capability. Rogue agency is here to stay; securing and governing AI must extend beyond vulnerability management.
Ten lessons for cyber teams
The ten points below adopt the familiar cybersecurity approach to this problem: understand the risk, reduce what an agent can reach, govern what it does at the point of action, detect and contain what slips through, and test that what is in place works.
Treat agents as unvetted workers, for their whole lifecycle.
Give every agent its own identity, register it, give it an owner, give it time-bound permissions, and make its behaviour observable. Expire permissions with an alert, and retire the agent and its credentials when its job ends. A forgotten, over-permissioned agent is an unmanaged access path for an attacker or a rogue instance. You would not let an unknown contractor act on your systems without a badge, a log and a leaving date, and an agent is no different. Time-bound permissions with expiry and a renewal alert are the right antidote to the permissions-review fatigue that can leave agents running after their task has ended or their owner has departed.
Understand the risk before you deploy.
Not every agent is equally dangerous when it goes wrong. An agent that drafts slides or summarises documents has a small potential blast radius; an agent with production credentials, code execution or offensive-security tooling has a larger one. In your threat modelling and risk assessment, tier your agents by what they could do if compromised, manipulated, or over-optimising for their objective, and by what they can actually reach. That tier informs, and should make explicit, how much isolation, monitoring and enforcement each agent needs.
Shrink the blast radius before the agent ships.
Vulnerability exploitation was a trigger here, when the models broke out through a zero-day in the package proxy, so a strong security baseline with vulnerability scanning and patching remains essential; this is the fundamentals-first posture the NCSC continues to urge, and the UK’s AI-assisted vulnerability-discovery work shows how far that baseline can now be pushed [6] [7]. But given the capabilities now emerging, including the rapid evolution of open-weight models, we should not treat it as foolproof prevention. Vulnerabilities will be found and exploited; that is precisely why reducing the blast radius matters so much.
The most effective control is the one that leaves a rogue agent with less to reach. Apply least privilege, time-bound and just-in-time permissions, isolation and segmentation, and remove the ambient credentials an agent can scavenge, so that a compromised or over-optimising agent inherits as little reach as possible.
Do this before deployment, not after: threat-model the agent and scan the environment as a condition of going live. The risk is not hypothetical: controlled research by Unit 42 shows how a malicious agent could abuse a Vertex AI service agent’s excessive default permissions [13], and the PocketOS coding agent deleted a production database using an over-scoped token it found in an unrelated file [11].
Rethink guardrails.
Content guardrails and model refusals still matter, but they address a different problem from rogue agency: the input and output surface, where someone feeds the model malicious input in the hope of harmful output. A rogue agent’s harm is in its actions, the tool calls that read, write, delete and move laterally, and it may be pursuing a goal it treats as legitimate.
So guardrails are far from redundant here. ASI01, ASI02, ASI05 and ASI06 treat natural-language inputs and outputs, retrieved content, tool results, memory, context, and model-generated code and commands as untrusted; those surfaces still need validation, sanitisation, isolation and monitoring. Anthropic notes that the safeguards shipped with its generally available models would have blocked the behaviour it found, which reinforces their value [3].
But guardrails are not a complete authority system. They may interrupt a harmful trajectory; they do not decide whether this agent may perform this action on this resource. That control belongs at the action layer, through identity, permissions, runtime policy and containment.
Enforce runtime security at machine speed.
Runtime security is the right complement, but how you roll it out matters. You cannot meet machine-speed activity with human-speed approval. Shrinking the blast radius decides what an agent can reach; this decides what it may do with that reach.
Policy-as-code, using an engine such as Cedar or Open Policy Agent, becomes an essential defence when it is enforced by agent-action interceptors, so that a call is checked against policy and against the surrounding detection context, before it takes effect.
At a minimum, check the consequential actions: any write, update, execute or delete. Implementations are emerging at different levels of maturity. You can start with platform primitives: Amazon Bedrock AgentCore Gateway interceptors [14], the Microsoft Foundry Control Plane [15], or Google’s before_tool_callback in the Agent Development Kit (ADK) [16]. These vary in granularity and depth.
Dedicated offerings go further: Microsoft’s excellent open-source, multi-platform Agent Governance Toolkit is a full reference implementation of what can be done [17], and CSA AARM-aligned projects, both commercial and open source, offer turnkey products to evaluate [18]. The Agent Control Standard (ACS), recently accepted as a workstream within the OWASP GenAI Security Project’s Agentic Security Initiative, is an emerging standard poised to standardise this area [19]. Start with platform capabilities for an immediate baseline while evaluating dedicated offerings.
Keep a human in the loop for high-consequence actions.
Runtime policy can enforce repeatable rules, but a narrow set of irreversible or high-value actions warrants human authorisation, so machine speed never carries an unrecoverable action on its own. Choose that set deliberately and keep it small: if approval fatigue sets in, people will click through it and it stops being a real control.
Extend monitoring, SOC and incident response to insider-style threat at scale.
Treat this as an insider problem, because a compromised or over-optimising agent behaves like one. Many organisations forward telemetry to the SIEM only for public-facing systems; extend that to internal agent activity, and enrich it with the denials and escalations that runtime enforcement produces.
Consider canary tokens on sensitive paths as high-fidelity tripwires. Wiring them to automatic containment can stop a rogue agent early, but automated revocation carries its own availability risk, since a false positive could disrupt a legitimate service, so test any such automation and make its use risk-based rather than universal. And prepare an incident-response playbook for agentic incidents specifically, rather than adapting a human-attacker template.
Maintain a dependable but controlled AI cyber capability.
Defensive analysis of malware and exploit code can trigger commercial models’ cyber-safety refusals when they lack enough context to distinguish a responder from an attacker; Hugging Face hit this and fell back to an open-weight model on its own infrastructure [1]. So decide your dependable, pre-approved defensive-analysis path in advance.
Vendor trusted-access programmes, such as OpenAI’s Trusted Access for Cyber [20] and Anthropic’s Cyber Verification Program [21], can relax the refusals for verified defenders, but vary in their retention, approval and scope terms, so confirm the current terms for the exact service. A gated model such as Anthropic’s Mythos [22] is a separate option available to vetted partners under trusted-access arrangements. The alternative is a model under your own operational control, which keeps both the decision and the data with you but comes with considerable investment and risk of its own.
A managed platform such as Amazon Bedrock [23] or Microsoft Foundry [24] sits between the two, so verify the specific data boundary of the exact service rather than assuming nothing leaves. Fireworks currently offers GLM 5.2 through a serverless API [25], although it remains a third-party service rather than your own tenancy. Validate whichever you choose before relying on it, confirming it will parse the hostile artefacts you expect to handle; the UK AISI’s open-source Inspect framework is a sound basis for that check [26].
Handle provenance separately, as a supply-chain control, verifying origin and integrity with signatures, hashes and artefact scanning, so your incident-response tool is not itself a supply-chain risk. And govern the model itself as an access-controlled, logged, dual-use asset.
Use this capability for incident response, red teaming and blast-radius exercises. We built AIRt-Eval on the UK AI Security Institute’s Inspect framework to evaluate models as attackers and scorers in AI red teaming. It is designed to replace reliance on defaults with task-specific evidence.
Validate your capability using the way agents actually behave.
Run user-journey-style reviews and offensive-security incident drills built around agentic behaviour to check whether your monitoring and detection actually fire. This matters most where SOC and monitoring coverage is fragmented, which is exactly where a rogue agent can pass unnoticed. Include a check that you can generate chain-of-custody evidence during the drill. The UK’s applied vulnerability-discovery pilot points the same way: GC3 reported that architecture mattered most, model choice mattered less, and triage and human review remained essential [7]. Validate your full security model, not just AI model and CI/CD world but also monitoring, containment and incident-response readiness for rogue agency.
Rethink red teaming for agentic systems.
Traditional AI red teaming, built on black-box assumptions, struggles here. Grey-box testing, working with access to telemetry and knowledge of the agent’s tools, permissions and policies rather than probing blind, exposes far more, as a recent engagement with a regulated financial-services client proved. Build rogue-agent behaviour into your test cases, and run them in a production-like sandbox rather than against live systems to find the gaps.
Closing remarks
Hugging Face and OpenAI report that their incident was detected and contained and that their joint investigation continues. Anthropic separately stopped the affected evaluations, notified its evaluation partner, and worked with two affected organisations while continuing efforts to contact the third. All accounts remain preliminary.
The industry will rightly keep its near-term focus on cyber resilience against frontier model offensive capabilities. This is an emergency we need to address. But make no mistake: as adoption continues, rogue agency is the new systemic class of risk that we must manage, and our cyber strategies will have to adjust.
The lesson is not that agents are too dangerous to use. It is that the advantage will belong to whoever can deploy them under control. Reduce, govern, detect: that is what governable autonomy looks like, and it is what separates an agentic capability from an agentic incident. Treat these ten points as general guidance, to be applied against your own threat model and risk assessment, not as a universal architecture.
The AMLUCS AI Red Teaming course (21-22 September 2026) covers hands-on agentic threat modelling, policy-as-code runtime security, tool-call testing and a deliberately rogue agent in a production-like sandbox [27]. We can also run a tailored version at your organisation, putting your teams through rogue agents in action against a replica of your own environment.
Want help securing your agentic systems? We will help you tier your agents, shrink their blast radius, and stand up runtime enforcement and a tested incident-response path.
References
- Hugging Face. (2026). Security incident disclosure – July 2026. huggingface.co
- OpenAI. (2026). OpenAI and Hugging Face partner to address security incident during model evaluation. openai.com
- Anthropic. (2026). Investigating three real-world incidents in our cybersecurity evaluations. anthropic.com
- OWASP GenAI Security Project. (2025). OWASP Top 10 for Agentic Applications (2026 edition). genai.owasp.org
- UK AI Security Institute. (2026). How far behind the frontier are leading open-weight models on cyber? aisi.gov.uk
- National Cyber Security Centre. (2026). Cyber Shield: the path to an agentic AI future for cyber defence. ncsc.gov.uk
- Department for Science, Innovation and Technology and National Cyber Security Centre. (2026). When AI leaves the lab: testing frontier models in government cyber defence. gov.uk
- Sotiropoulos, J. (2026). No Human at the Keyboard [presentation, Cyber Crime 2026]. Deep Cyber Ltd. deepcyber.ai
- Sotiropoulos, J. (2026). Securing Agentic AI [presentation, Real World AI Conference, Stanford University]. Deep Cyber Ltd. deepcyber.ai
- The Register. (2025). Replit’s AI agent deleted a production database during a code freeze. theregister.com (see also Fortune)
- The Register. (2026). A Cursor/Opus agent snuffs out PocketOS’s database in nine seconds. theregister.com (see also Live Science)
- Anthropic. (2025). Agentic Misalignment: How LLMs Could Be Insider Threats. anthropic.com
- Unit 42, Palo Alto Networks. (2026). Double agents: abusing Vertex AI service agents. unit42.paloaltonetworks.com
- Amazon Web Services. (2025). Apply fine-grained access control with Bedrock AgentCore Gateway interceptors. aws.amazon.com
- Microsoft. Foundry Control Plane. azure.microsoft.com
- Google. Types of callbacks – Agent Development Kit (ADK). google.github.io
- Microsoft. (2026). Introducing the Agent Governance Toolkit: open-source runtime security for AI agents. opensource.microsoft.com (repository: github.com)
- Cloud Security Alliance. Autonomous Action Runtime Management (AARM) working group. cloudsecurityalliance.org
- Agent Control Standard. agentcontrolstandard.org
- OpenAI. Trusted Access for Cyber. openai.com
- Anthropic. Real-time cyber safeguards on Claude Opus and Sonnet (Cyber Verification Program). support.claude.com
- Anthropic. Claude Mythos. anthropic.com
- Amazon Web Services. What is Amazon Bedrock? docs.aws.amazon.com
- Microsoft. Foundry Models overview. learn.microsoft.com
- Fireworks AI. GLM 5.2. fireworks.ai
- UK AI Security Institute. Inspect evaluation framework. inspect.aisi.org.uk
- AMLUCS. AI Red Teaming training course. amlucs.ai

