Subscribe to the Non-Human & AI Identity Journal

Agentic exploit discovery

Agentic exploit discovery uses AI systems that can reason over code, test variations, and expand on human-identified patterns to find vulnerabilities at scale. The method is most effective when humans provide the exploit model and the agents handle breadth, repeatability, and variation.

Expanded Definition

Agentic exploit discovery refers to a workflow where an AI agent is used to systematically explore weaknesses, generate test cases, and vary inputs across code, APIs, prompts, or runtime behaviours. Unlike static scanning, it is iterative and adaptive: the agent can learn from failures, branch into adjacent hypotheses, and keep testing until it finds a viable path. In NHI security, this matters because the target is often not just application code but the identity layer around it, including tokens, service accounts, tool permissions, and agent-to-agent trust. Guidance across vendors is still evolving, but the practical distinction is clear: the human supplies the exploit hypothesis, while the agent supplies scale and repetition. That makes it closely aligned with the risk taxonomy in the OWASP Top 10 for Agentic Applications 2026 and the governance lens in the NIST AI Risk Management Framework. The most common misapplication is treating agentic exploit discovery as a replacement for human exploitation expertise, which occurs when teams let the model free-run without a defined exploit hypothesis or safety boundary.

Examples and Use Cases

Implementing agentic exploit discovery rigorously often introduces test noise and potential overreach, requiring organisations to weigh broader coverage against the risk of unsafe probing or unstable environments.

  • Testing an API gateway for token handling errors by having an agent vary header order, expiry values, and malformed refresh flows to see whether privilege checks fail.
  • Exploring agentic workflow tools for prompt injection paths, then chaining discovered behaviours into downstream action abuse, as discussed in the OWASP NHI Top 10 coverage of agentic risk patterns.
  • Using a controlled lab to search for secret leakage in code-assist or coding-agent integrations, similar to the concerns raised in Analysis of Claude Code Security.
  • Feeding a known auth bypass pattern into an agent so it can reproduce the issue across multiple routes, environments, and parameter combinations without manual re-testing.
  • Mapping IAM and NHI misconfigurations by pairing agentic probing with threat guidance from the MITRE ATLAS adversarial AI threat matrix and incident patterns from LLMjacking: How Attackers Hijack AI Using Compromised NHIs.

For offensive security teams, the value is speed and breadth. For defenders, the same method can be used to validate whether a control fails only in rare combinations that human testers would not reasonably enumerate.

Why It Matters in NHI Security

Agentic exploit discovery matters because NHIs fail in ways that traditional identity reviews often miss: a token is accepted longer than intended, an agent inherits too much scope, or a tool chain allows actions outside the intended trust boundary. That becomes especially serious when attacker discovery is automated, since exposed credentials can be targeted within minutes. NHIMG research on compromised NHIs shows that when AWS credentials are publicly exposed, attackers attempt access within an average of 17 minutes, and as quickly as 9 minutes in some cases, underscoring how quickly exploit discovery can move from theory to live abuse. The broader agent-risk picture is equally stark: in NHIMG’s AI Agents: The New Attack Surface report, 80% of organisations reported rogue behaviour in current deployments and only 52% could track and audit agent data access. That is why agentic exploit discovery is not just a red-team technique; it is a governance concern tied to containment, observability, and blast-radius reduction. Organisationally, it usually becomes unavoidable only after an exposed secret, a suspicious tool invocation, or a failed agent action reveals that exploitation is already in progress.

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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Focuses on secret handling failures that agentic discovery often exposes.
OWASP Agentic AI Top 10 A2 Addresses agent autonomy risks and unsafe action chaining in agentic systems.
NIST AI RMF Frames AI risks around mapping, measuring, and managing model-enabled harms.
NIST Zero Trust (SP 800-207) 5.1 Zero trust requires explicit verification that agent paths cannot exceed intended trust.
NIST CSF 2.0 DE.CM-8 Continuous monitoring is needed to detect unusual agent behaviours and exploit signals.

Use agent-driven testing to find exposed secrets, overbroad scopes, and reuse paths before attackers do.