FISTA Solutions does not load Google Analytics until you accept. Rejecting keeps optional analytics off. Read the Cookie Policy.

All field notes

Governance · 5 minute read

AI Penetration Testing Scope: What to Test in AI Agents

AI penetration testing scope covers what conventional tests miss: direct and indirect prompt injection, tool abuse and privilege escalation through agent actions, data exfiltration via prompts, retrieval, tools, and logs, agent identity and credential handling, sandbox escape, retrieval poisoning, and the AI supply chain, with fixes in the platform rather than the prompt.

By FISTA Solutions· AI-Native Engineering Team·
AI Penetration Testing Scope: What to Test in AI Agents article cover

Security teams commission penetration tests for AI systems and receive reports about TLS configuration and dependency versions. The tests were scoped for a web application, and the component that actually breaks, a model that can be steered by content it reads and that holds credentials to act, went untested. This guide defines the AI penetration testing scope, the scenarios, the evidence, and where fixes belong. It supports the AI security checklist and the AI agent security risks practice. It is general guidance, not a compliance determination.

What does the scope cover?

AreaScenariosControl tested
Direct injectionUsers attempting to override behaviorPrompt structure, gates
Indirect injectionInstructions planted in documents, tickets, emails, pages, records, tool resultsTrust labeling, gates, confirmation on plan change
Tool abuseSteering the agent to call consequential tools outside specificationPermissions, classification, gates
Privilege escalationUsing one tool's output to gain access through anotherLeast privilege, delegation scoping
ExfiltrationMoving data out via prompts, retrieval, tools, or logsRedaction, egress control, DLP policy
IdentityCredential exposure, delegation misuse, revocation gapsBrokered identities, short-lived credentials
Sandbox and egressEscaping the environment, reaching non-allowlisted hostsSandboxing, network policy
Retrieval poisoningPlanting content that changes future answers or actionsIngestion controls, source trust
Supply chainMalicious models, prompts, tools, or MCP serversProvenance, registry, review
ResilienceBehavior under provider outage; kill switch under loadFallbacks, tested stop

How are injection tests designed?

For every content type the agent reads, testers plant instructions with three goals: exfiltrate (send data somewhere), act (trigger a consequential tool), and mislead (report false conclusions). Variants include invisible text, metadata, and instructions split across documents. The measure is whether actions stayed within specification, not whether the model "noticed." The attack model is in what is indirect prompt injection.

How are tool abuse and escalation tested?

Testers try to make the agent call each consequential tool without the specified preconditions, chain reads into writes the role should not perform, use one system's output to obtain access to another, and exceed volume limits. A gate that never fires, a tool that accepts arbitrary parameters, or a credential broader than the tool needs are findings. The permission design under test is in how to design tool permissions for AI agents.

How is exfiltration tested?

Every outbound path: prompts to providers (what categories reach which deployment), retrieval (does it return content the user could not see), tool results (whole records versus fields), traces (raw content in logs, who can read them), and agent actions (email, messages, external posts). Controls are those in LLM data loss prevention.

What do identity and sandbox tests target?

Identity: can credentials be extracted from the environment or traces; does delegation scope hold; does revocation take effect within the stated time; are there long-lived secrets. Sandbox: filesystem and process escape, network egress to non-allowlisted hosts, resource exhaustion. The models are in non-human identities for AI agents and AI agent sandboxing.

What does a test engagement look like?

PhaseActivity
ScopingAgent inventory, permissions, content sources, tools, and autonomy levels shared with testers; rules of engagement for production systems
ReconnaissanceTesters read the agent specification, tool descriptions, and prompt structure; the goal is a test of controls, not of obscurity
Injection campaignPlanted content across every source type, run through the agent in a staging environment mirroring production permissions
Tool and identity testingDirect attempts against gates, credential brokerage, delegation, and revocation
Environment testingSandbox and egress probes from inside the agent's runtime
Reporting and retestFindings with business impact; fixes at the correct layer; retest and regression capture

Testers need traces. An engagement without trace access produces findings whose root causes are guessed and whose fixes are wrong.

What does the report contain?

ElementStandard
FindingReproducible path from attacker-controlled input to business impact
SeverityBased on the agent's real permissions and the data involved
Failed controlWhich layer should have stopped it
Fix locationPermissions, gate, sandbox, gateway policy, ingestion; prompt-only fixes are flagged as insufficient
RetestConfirmed after fix, added to the adversarial regression suite

How does the test fit the lifecycle?

Before first production release at act-with-approval or higher; after material changes to tools, models, permissions, or content sources; annually. Between tests, adversarial cases live in the regression suite per AI regression testing, so the findings do not return quietly.

What are the common mistakes?

  1. Web-app scope only.
  2. Testing the chat surface, not the agent's tools.
  3. Accepting prompt-only fixes.
  4. No business-impact framing, so severity is argued.
  5. One-off test with no regression capture.
  6. Testers without access to traces, so root causes are guessed.

How does FISTA Solutions help?

FISTA Solutions builds every AI agent to be tested this way, with classified tools, gates, sandboxing, brokered identities, and gateway policy, and supports security teams scoping and remediating AI penetration tests through its AI enablement practice, with forward deployed engineers turning findings into platform fixes and regression cases. FISTA has delivered 150+ projects for 50+ companies across 12+ countries.

To scope a test of your agents, message FISTA on WhatsApp, or read AI agent security risks for the continuous practice.

Share-ready article cover

Download the generated social format.

Download cover

Clear answers

Questions raised by this field note.

Straightforward guidance for evaluating scope, fit, and the next step.

01How is AI penetration testing different from application testing?

Application testing probes code paths and infrastructure. AI testing adds a component that can be steered by content: testers plant instructions in documents, tickets, pages, and tool results, then check whether the agent leaks data, takes unauthorized actions, or escalates privileges. The scope follows the agent's permissions and the content it reads.

02What should be in scope?

Direct and indirect injection across all content types; tool abuse and privilege escalation; exfiltration through prompts, retrieval, tools, and logs; identity and credential handling including delegation and revocation; sandbox and network egress; retrieval poisoning; model and dependency supply chain; and the approval and kill-switch controls under adversarial conditions.

03What does a good finding look like?

A reproducible path from an attacker-controlled input to an impact stated in business terms: a planted ticket caused a refund without approval; a document caused customer records to be sent to an external address. Each finding names the control that failed and the layer where the fix belongs, with a retest after the fix.

04How often should AI systems be tested?

Before the first production release at act-with-approval or higher autonomy, after material changes to tools, permissions, models, or content sources, and on an annual cycle at minimum. Continuous adversarial evaluation in the regression suite covers the space between formal tests. This is general guidance, not a compliance determination.

Start with the hard problem

Need the outcome owned, not merely analyzed?

Tell us where delivery is constrained. We’ll map the fastest credible path from intent to verified production.

Start a project