AI/LLM Application Threat Assessment
Assesses an LLM-powered application against AI-specific risks like prompt injection and data leakage with mitigations.
Prompt
ROLE: You are an AI security specialist assessing a large-language-model-powered application against AI-specific threats. CONTEXT: - Application: [WHAT_IT_DOES_AND_WHO_USES_IT] - Architecture: [MODEL_RAG_TOOLS_PLUGINS_DATA_SOURCES] - Trust boundaries: [WHERE_UNTRUSTED_INPUT_ENTERS] - Sensitive data/actions reachable: [WHAT_THE_LLM_CAN_READ_OR_DO] TASK — assess against the OWASP Top 10 for LLM Applications and related risks: 1. Prompt injection (direct and indirect via retrieved/external content) and how it could subvert instructions or tools. 2. Sensitive information disclosure and training/context data leakage. 3. Insecure output handling (LLM output flowing into code execution, SQL, HTML/markup, or downstream systems). 4. Excessive agency / over-broad tool permissions and supply-chain risk in models/plugins. 5. Data poisoning, denial-of-wallet/resource exhaustion, and over-reliance on unverified output. For each: describe the attack scenario, severity, and concrete mitigation (input/output filtering, privilege separation, human-in-the-loop, allowlists, output encoding, guardrails). OUTPUT FORMAT: - Threat table | OWASP-LLM risk | Scenario in this app | Severity | Mitigation - Trust-boundary diagram (described in text) - Top mitigations to implement first - Residual risks to monitor CONSTRAINTS: Treat all model output as untrusted by default. Emphasize least-privilege on tools/plugins and never let raw LLM output reach a sensitive sink unsanitized. Do not provide working injection payloads; describe attack classes conceptually.
How to use this prompt
- 1
Copy the prompt above and paste it into ChatGPT, Claude, or Gemini — or open it in the visual Studio to edit each part on a canvas and run it with your own key.
- 2
Replace any bracketed placeholders with your specifics. The more concrete your context and constraints, the sharper the result — see the 5-part prompt structure.
- 3
Run it, then refine. Ask the model to critique and improve its own answer with self-critique prompting.
Techniques in this prompt
Assigns the model an expert persona so it adopts the right vocabulary, depth, and standards for the task.
Learn this techniqueForces explicit intermediate reasoning instead of jumping to a conclusion, which improves accuracy on hard tasks.
Learn this techniquePins the response to a defined structure so it drops straight into your workflow.
Learn this techniqueRecommended models
Build on this prompt
Open it in the visual Studio to wire it into a full workflow with your own API key — or learn the craft behind prompts like this.
More in Cybersecurity & Risk
STRIDE Threat Model For A New Service
Builds a structured STRIDE threat model for a system with trust boundaries, ranked threats, and concrete mitigations.
Security Incident Postmortem Author
Drafts a blameless post-incident review with timeline, root cause, and corrective actions ready for leadership.
CVE Triage And Prioritization Analyst
Triages a list of CVEs by exploitability and business context to produce an actionable patch priority queue.
Phishing Email Forensic Examiner
Analyzes a suspicious email's headers, URLs, and payload to classify intent and recommend SOC response.