Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security How should security teams scope AI security testing…
Cyber Security

How should security teams scope AI security testing as AI agents become part of the attack surface?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 8, 2026 Domain: Cyber Security

Security teams should treat AI agents like an extension of the application and identity estate, not a separate novelty. Scope should include exposed endpoints, connected tools, identity paths, data access, and the actions an agent can take on behalf of users or services. The goal is to understand real attack paths, then prioritize controls that reduce unauthorized access and unintended agent behavior.

Why AI Agent Security Testing Has to Follow the Attack Surface

AI agents expand testing scope because they can combine software execution, data retrieval, and delegated action in one control plane. That makes the real question less about model quality and more about which endpoints, tools, permissions, and trust paths an agent can reach. For agentic systems, security testing should trace where the agent can read, decide, call, write, approve, or trigger workflows, then test the blast radius of each path.

That matters because agent failures are often not confined to the model layer. A prompt injection, tool abuse, or overbroad service account can turn an apparently narrow assistant into a cross-system actor. SailPoint reports that 80% of organisations say their AI agents have already performed actions beyond their intended scope, including unauthorised system access and inappropriate data sharing. In practice, many security teams discover the exposure only after the agent has already been wired into production workflows.

For a useful starting point, align testing to the agent’s observable trust boundaries rather than to the marketing label attached to the system. The OWASP OWASP Agentic AI Top 10 is especially relevant here because it frames the common failure modes around tool use, orchestration, and authority rather than model outputs alone.

How Security Teams Should Structure the Test Plan

A practical scoping model starts with four layers: exposure, authority, data, and downstream action. Exposure covers every interface the agent can touch, including chat surfaces, APIs, plugins, browsing tools, queues, and internal connectors. Authority covers the identity used by the agent, the tokens or secrets it can reach, and whether access is static or time-bound. Data covers the inputs it can retrieve or infer from, including sensitive, regulated, or privileged content. Downstream action covers what the agent can actually do after a decision, such as creating tickets, changing records, sending messages, or invoking administrative functions.

That means the test plan should include both defensive and adversarial checks. Teams should validate prompt injection resistance, tool authorization boundaries, secret-handling behaviour, escalation paths, and logging fidelity. They should also test what happens when the agent is given ambiguous instructions, conflicting objectives, or malformed tool responses, because those conditions often reveal whether policy is enforced at runtime or only assumed at design time.

Two references are useful for structuring this work. The CSA MAESTRO agentic AI threat modeling framework helps teams think in terms of agentic control points, while NIST AI Risk Management Framework is useful when the organisation needs a governance layer for measurement, mapping, and ongoing assurance. Testing should also include identity-bearing paths, because agents often inherit access through service accounts and API credentials rather than through a human-style login.

NHIMG’s AI Agents: The New Attack Surface report is a good reminder that visibility is part of scoping, not an afterthought. If teams cannot track which data the agent accessed or which systems it touched, they cannot tell whether a test is complete or whether a compromise would be detectable. These controls tend to break down when agents are allowed to chain multiple tools across environments because each individual permission looks harmless until the full sequence is exercised.

Where Agentic Testing Needs Extra Boundaries

Tighter agent testing increases operational overhead, so organisations have to balance thoroughness against the speed of delivery. The hard part is that the highest-risk behaviours are often emergent, which means a lab test that checks only one prompt or one tool call will miss the real failure path.

Current guidance suggests treating some behaviours as mandatory test cases regardless of business pressure: credential use, cross-system writes, data exfiltration opportunities, and any action that can affect production state. Human review is also still necessary when the agent can act with financial, legal, or administrative consequence, because there is no universal standard for fully automating those approvals yet. External AI safety guidance continues to evolve, and teams should not assume that model vendor guardrails are sufficient evidence of operational containment.

For teams that need a threat-led reference point, the MITRE ATLAS adversarial AI threat matrix helps connect agent testing to recognised adversarial behaviours, while the OWASP Top 10 for Agentic Applications 2026 is useful for aligning testing with common agent-specific weaknesses. The practical boundary is simple: if an agent can take an action that a human operator would need approval for, the test plan should verify both the approval path and the failure path.

That approach becomes much harder once agents are allowed to self-chain tools, reuse long-lived credentials, or operate across loosely governed SaaS integrations because the reachable attack surface expands faster than manual review can keep up.

Risk and Threat Considerations

The main risk is scope creep turning the agent into a high-trust intermediary with more reach than its designers intended. That creates exposure across identity, data, and workflow integrity, especially when the agent can read sensitive context and then act on it without a meaningful approval boundary.

Failure mechanism: Adversaries can exploit prompt injection, tool abuse, overprivileged credentials, or weak runtime policy enforcement to steer the agent into unauthorized data access or unsafe actions. The same mechanism can also appear operationally when the agent is simply given too much authority and then follows an unexpected but valid instruction path.

Impact: The result can be unauthorized system changes, sensitive data disclosure, credential exposure, or loss of auditability over which actions were human-approved versus agent-initiated. In larger deployments, the failure can spread across multiple workflows because the agent may reuse the same identity and toolchain in many places.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A1 — Agentic Access ControlAI agents need bounded authority over tools and actions.
Recommendation — Limit agent actions to approved tools and explicit runtime authorization.
CSA MAESTROT1 — Agentic Threat ModelingScopes threats around orchestration, tools, and control points.
Recommendation — Model each agent tool path and test the resulting trust boundary.
NIST AI RMFGOV-1 — GovernAgent testing needs governance for scope, accountability, and oversight.
Recommendation — Define oversight, ownership, and review criteria for agent testing.
OWASP Non-Human Identity Top 10NHI-01 — Secrets and Credential ManagementAgents often rely on machine credentials and delegated access.
Recommendation — Inventory and constrain every credential the agent can use.
CIS Controls v86 — Access Control ManagementAgent scope depends on controlling who and what can access systems.
Recommendation — Remove unnecessary access paths and validate least privilege for agents.

Practitioner Guidance

What to prioritise: Start with the agent actions that can change state, move data, or invoke privileged tools. Those are the paths where a testing gap becomes a real incident, not just a model-quality defect.

What to verify: Confirm that every external tool call is bounded by explicit authorization, that sensitive data access is visible in logs, and that the agent cannot silently expand its reach through inherited credentials or chained workflows.

Decision rule: If an agent can access production data or execute production actions, scope the test as both application testing and identity testing. If it only drafts content or summarizes data, focus more narrowly on data handling and prompt-injection resilience.

Practitioner takeaway: The safest way to scope agent testing is to follow the agent’s power, not its interface; wherever the agent can act independently, the test must prove it cannot act beyond the authority you intended.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 8, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org