Insights
AI threat modeling: what it covers that a standard penetration test does not
A penetration test attacks what you deployed. AI threat modeling questions what you designed. AI systems need both, in that order.
By Shantanuu Roy
What a penetration test covers
A penetration test is an authorized examination of a running system within an agreed scope. It can identify exploitable weaknesses in authentication, authorization, configuration, exposed interfaces, and application logic. Findings should connect a reproducible attack path to a concrete impact. The result is evidence about the tested environment and conditions, not a guarantee that all vulnerabilities have been found.
An AI application still needs this conventional testing. A secure model integration cannot compensate for broken tenant isolation in an API or credentials exposed in a deployment artifact. The test scope should include the surrounding application, ingestion services, administrative endpoints, and tool handlers. Excluding these components can leave the most direct attack paths unexamined while attention stays on the conversation interface.
What changes with AI systems
Language models process instructions and task data through a shared interface. A retrieved document can contain text that attempts to redirect the model, request secrets, or trigger an external action. This is an indirect prompt injection scenario. Treating the document as untrusted is necessary, but a warning in the system prompt does not establish a reliable security boundary by itself.
Consequences depend on the surrounding design. A model with no tools and limited context has different exposure from an agent with broad document access and write permissions. Generated output may also become an attack input when passed into a browser, database query, or command interpreter. Reviewers need to trace how output is consumed rather than assess the generated text in isolation.
Build the threat model around decisions
Start with intended use, protected assets, actor capabilities, and trust boundaries. Draw data flows through ingestion, retrieval, inference, storage, and tool execution. Identify where permissions are checked and where identities change. Record assumptions about provider behavior, retention, and component ownership. An assumption that nobody can verify should become a question or a restriction, not silently function as a control.
STRIDE helps examine spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege across those boundaries. Supplement it with AI-specific analysis rather than replacing it. For example, a prompt injection may contribute to information disclosure, but the actionable design question is which sensitive source the model can reach and which external channel could carry that information out.
The AI-specific threat categories
The OWASP Top 10 for LLM Applications 2025 includes prompt injection, sensitive information disclosure, supply chain risks, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation, and unbounded consumption. These categories help reviewers avoid omissions. They are not ten equally applicable test cases, and they do not replace analysis of a specific architecture.
MITRE ATLAS provides a knowledge base of adversarial tactics and techniques against AI systems. Use relevant techniques to develop attack hypotheses, then document prerequisites and expected impact. For retrieval, examine document provenance, index permissions, and deletion behavior. For agents, examine tool selection, argument validation, approval binding, and execution limits. Avoid treating every unexpected answer as an exploitable vulnerability without tracing a security consequence.
Turn scenarios into verification
A useful threat model produces testable requirements. If malicious source content attempts to invoke a write tool, the backend should reject the action without valid authorization. If a user loses access to a document, retrieval and cached results should respect that change. Each scenario should identify the enforcing component, a test method, an owner, and the evidence needed to close the issue.
Adversarial tests should vary inputs and repeat relevant cases because model responses can differ across runs. Record model versions, prompts, tool definitions, retrieval settings, and test fixtures. Keep deterministic checks for authorization and output validation separate from graded assessments of answer quality. Passing a collection of prompt attacks does not establish that an architectural permission boundary is correctly implemented.
How the two work together
Begin threat modeling while architecture choices remain open, then test the implementation against the resulting scenarios. Penetration testing can reveal missing assumptions and new attack paths, which should update the model. Revisit both after material changes to data sources, tools, provider configuration, or user populations. This is an iterative relationship rather than a single design document followed by a final gate.
Report findings with clear prerequisites, demonstrated impact, and uncertainty. Prioritize a verified cross-tenant disclosure differently from an answer that merely ignores a style instruction. Assign remediation and retest the changed control, including adjacent behavior that could regress. Risk acceptance should identify the remaining exposure and the person authorized to accept it, so unresolved design issues do not disappear into a completed test report.
Preserve sanitized reproduction materials for retesting. Access to sensitive test evidence should be controlled, with retention appropriate to the investigation and assurance needs. Reports should remain useful without distributing confidential prompts or customer documents more broadly than necessary.
Tell us what changed.
Thirty minutes, no obligation. Written scope and fixed-fee proposal within one business day of your call.
