By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: PromptfooPublished November 14, 2025

TL;DR: Anthropic’s report on AI-orchestrated cyber espionage shows that agentic tools can lower the skill barrier for offensive operations, even when attacks still depend on conventional access paths and human direction, according to Promptfoo’s coverage of the report. The security challenge is no longer whether AI can assist attacks, but how defenders govern the same capabilities without weakening legitimate red teaming and validation work.


At a glance

What this is: Promptfoo argues that AI agents are making offensive cyber operations more accessible by lowering the expertise needed to execute attacks.

Why it matters: This matters to IAM practitioners because the same tooling that accelerates attacks can also be used to probe identity controls, so governance must distinguish legitimate testing from abusive automation.

By the numbers:

👉 Read Promptfoo’s analysis of AI hacking, red teaming, and defensive tradeoffs


Context

AI-assisted offensive operations are not limited by whether a human attacker can type faster. They become more concerning when agents can chain reconnaissance, testing, and exploitation steps with less operator skill and less time between discovery and misuse. In identity-heavy environments, that compresses the window in which exposed credentials, over-permissioned accounts, or delegated access can be detected and contained.

The governance problem is not just model misuse. It is the overlap between AI tooling, privileged access, and security testing, where legitimate red teaming and malicious automation can look similar at the prompt layer. That makes identity controls, request validation, logging, and access boundaries part of AI security rather than separate concerns.


Key questions

Q: How should security teams govern AI agents used for offensive testing?

A: Treat offensive AI agents as distinct workloads with explicit ownership, scoped tools, and logged approvals. Give them only the environments, credentials, and actions needed for authorised testing. Separate research targets from production systems, and review retries, data access, and output handling as part of standard governance, not as an afterthought.

Q: Why do AI agents increase non-human identity risk?

A: AI agents increase non-human identity risk because they can execute many actions quickly once they inherit a credential or tool permission. That speed expands blast radius, shortens attacker dwell time, and makes weak delegation more dangerous. The remedy is tighter scoping, continuous verification, and strict separation between observation and execution privileges.

Q: What do security teams get wrong about AI blue teaming?

A: They often treat blue teaming as an assessment activity instead of an operational control. In practice, the value comes from converting detection into immediate enforcement, especially when threats can mutate through prompts, parameters, and chained tool use faster than human response cycles can keep up.

Q: Who is accountable when an AI system used for security testing crosses into abuse?

A: Accountability sits with the organisation that grants access, defines scope, and approves the workflow. That usually includes security leadership, platform owners, and the teams managing the AI toolchain. If a model can act on behalf of a business process, the business must control the identity, permissions, and audit trail behind it.


Technical breakdown

How agent-based attacks compress the defender response window

Agentic systems can decompose a target objective into smaller steps such as scanning, credential probing, exploit selection, and follow-up actions. That matters because an AI agent does not need to be fully autonomous to create risk. Even when a human sets the objective, the agent can still choose timing and tool sequencing inside the session, which reduces the time defenders have to see and stop suspicious activity. The core issue is operational speed combined with plausible variation in behavior, which makes simple signature-based detection less reliable.

Practical implication: security teams need telemetry that detects fast multi-step abuse patterns, not just single malicious actions.

Why red teaming and offensive testing remain hard to separate

Security teams often need to simulate attacks to validate controls, but the same workflows can resemble harmful use cases at the model boundary. The article highlights the governance dilemma: a prompt that mentions passwords, authentication, or access testing may be legitimate or malicious depending on context, and the model cannot always infer intent from text alone. That means the control problem is not only about refusal logic. It is also about identity, authorisation, auditability, and scoping the tools the model can touch.

Practical implication: separate test identities, scoped credentials, and auditable approvals are essential for AI-enabled security testing.

Why compromised NHIs matter in AI-led attack chains

The attack surface expands when AI systems inherit the same weak points as other automated tooling, especially exposed secrets, service accounts, API keys, and delegated access. In practice, an AI agent can accelerate misuse of a compromised non-human identity because it can search, test, and follow through faster than a person working manually. That does not change the underlying identity failure. It simply reduces the margin for error when access is standing, over-broad, or poorly monitored.

Practical implication: treat compromised NHIs as high-velocity attack enablers and monitor them with the same urgency as privileged human accounts.


Threat narrative

Attacker objective: The objective was to gain covert access to corporate and government systems and extract internal information at scale with less human effort.

  1. Entry occurred when attackers used an AI coding agent to support offensive operations against real targets, lowering the barrier to reconnaissance and task execution.
  2. Escalation followed as the agent helped chain activity across multiple systems, making it easier to probe access, test credentials, and pursue successful compromise in a small number of cases.
  3. Impact was the access to internal data and the ability to sustain espionage activity before detection and account bans curtailed the operation.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI-enabled offensive tradecraft is now a governance problem, not only a threat problem. The article shows that agentic tools can lower the expertise needed to run reconnaissance and exploitation workflows, which changes the economics of abuse. That means defenders must treat model-enabled attack paths as part of the security operating model, not as an edge case. The practical conclusion is to govern AI tooling with the same seriousness applied to privileged automation.

Offensive and defensive AI use cannot be separated cleanly by prompt text alone. Red teaming depends on controlled offensive simulation, but the same words can appear in legitimate testing, criminal activity, or ambiguous research. This is where identity controls matter: authorisation, session scoping, and tool boundary enforcement are what make intent reviewable. The practical conclusion is that AI security programmes need policy, approvals, and audit trails, not just content filters.

Compromised NHIs become more dangerous when agents can exploit them faster than humans can respond. AI does not replace credential abuse, it accelerates its use once secrets, tokens, or service accounts are exposed. That makes the relevant governance concept attack compression through machine identities: the time between exposure and abuse shrinks when automation can chain actions at machine speed. The practical conclusion is that NHI inventory, secret hygiene, and runtime detection must be designed for much shorter exposure windows.

Security teams should expect a wider attack surface as agentic AI adoption grows. The article’s central warning is that attackers do not need perfect autonomy to gain value from AI. Even partial automation can increase throughput, reduce skill requirements, and broaden the set of actors capable of meaningful intrusion. Practitioners should therefore re-evaluate how much trust they place in tool-enabled workflows that can touch identity systems, secrets stores, and production data.

The market is moving toward controls that govern behaviour, not just access. Traditional IAM can authenticate a user or service account, but it does not by itself explain whether the session objective is benign. For AI-led environments, governance will increasingly depend on runtime monitoring, tool authorization, and policy enforcement tied to the identity of the acting system. Practitioners should prepare for control models that combine IAM, NHI governance, and AI usage policy.

From our research:

  • 98% of companies plan to deploy even more AI agents within the next 12 months, despite documented rogue behaviour in 80% of current deployments, according to AI Agents: The New Attack Surface report.
  • 52% of companies can track and audit the data their AI agents access, while 48% cannot, according to SailPoint.
  • OWASP Agentic AI Top 10 is a useful next step for understanding tool misuse, delegation risk, and agent boundary failures.

What this signals

Attack compression through machine identities: as AI tools reduce the time and skill needed to progress from reconnaissance to abuse, identity programmes will need shorter detection and revocation cycles. The operational question is no longer whether a secret or token exists, but how fast it can be discovered and used before controls intervene.

The practical signal for IAM and NHI teams is that session scoping and auditability will matter more than policy text alone. Controls that assume a human operator will pause, review, or take a predictable path are weak when an agent can chain actions continuously. Reference points such as the NIST AI Risk Management Framework and OWASP Agentic AI Top 10 help frame this shift.

Security teams should prepare for more requests that look like legitimate testing but require much tighter governance. That means separating validation environments, enforcing scoped credentials, and making tool use attributable to a specific non-human identity. Where AI touches privileged access, the boundary between productivity and exposure is now an identity control issue.


For practitioners

  • Define separate identities for testing and production AI work Use distinct service accounts, credentials, and tool permissions for red teams, engineering experiments, and production-facing AI workflows. Keep approvals tied to the identity that will execute the action so that misuse is attributable and reviewable.
  • Scope AI tool access to specific actions and datasets Restrict what coding agents can read, call, and modify. Apply least privilege to repositories, secrets stores, cloud APIs, and incident-response tooling so that a compromised agent cannot pivot into wider access by default.
  • Instrument high-velocity abuse detection for NHIs Monitor for bursty credential probing, rapid tool chaining, unusual API call sequences, and access from unexpected execution contexts. Tie alerts to the non-human identity behind the session, not only to the IP address or application name.
  • Require human approval for sensitive escalation paths Place approval gates on actions that can expose secrets, create new credentials, widen permissions, or touch regulated datasets. The goal is to stop a model from completing a harmful chain before session termination or credential issuance.
  • Keep red teaming auditable and isolated Run offensive simulations in isolated environments with documented scope, time-bounded access, and immutable logs. This preserves legitimate security testing while reducing the chance that an agentic workflow is mistaken for or repurposed into abuse.

Key takeaways

  • AI agents lower the cost of offensive operations by compressing the steps between reconnaissance, testing, and compromise.
  • The real governance issue is not prompt wording alone, but the identity, permissions, and tools an AI system can reach.
  • Defenders should respond by tightening non-human identity controls, isolating red team workflows, and instrumenting faster abuse detection.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03The article centers on compromised credentials and NHI abuse in AI-enabled attack chains.
OWASP Agentic AI Top 10The piece focuses on agent misuse, tool access, and boundary failures in AI workflows.
NIST AI RMFGOVERNGovernance is central because the article is about safe use, misuse, and accountability for AI systems.
NIST CSF 2.0PR.AC-4Least-privilege access is the main control theme for both agents and compromised NHIs.
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral MovementThe attack pattern involves credential abuse and movement across multiple systems.

Map AI-assisted intrusion telemetry to credential access and lateral movement indicators for faster containment.


Key terms

  • Agentic AI: Autonomous AI systems capable of planning, deciding, and taking actions — including calling APIs, writing code, and orchestrating other agents — with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services.
  • Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.
  • Red Teaming: Red teaming is structured adversarial testing used to find how an AI system fails under realistic misuse or attack conditions. In AI security, it is a discovery method, not a proof of safety, because probabilistic behaviour and changing models prevent any lasting guarantee.
  • Attack Compression: A reduction in the time and effort required for an attacker to move from discovery to abuse, often because automation accelerates each step. In identity-heavy environments, this shortens the window between secret exposure and compromise, making rapid detection and revocation more important.

What's in the full article

Promptfoo's full article covers the operational detail this post intentionally leaves for the source:

  • The author’s direct analysis of Anthropic’s reported AI-orchestrated attack chain and the policy tradeoffs it creates.
  • Examples of why model refusal logic is hard to apply cleanly to offensive testing, research, and legitimate security work.
  • Discussion of how red teams can use the same capabilities attackers use without weakening defensive testing.
  • The article’s commentary on why AI hacking is becoming more accessible even when it is not fully autonomous.

👉 Promptfoo’s full article covers the geopolitical context, model safety tradeoffs, and why AI hacking is hard to stop cleanly.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It is designed for practitioners who need to connect identity controls to broader security operations and AI-enabled workflows.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org