Prompt Injection Defense Audit
Audits an AI system prompt or application for prompt injection vulnerabilities, jailbreak risks, and data leakage vectors — then generates hardened replacement prompts.
Content
You are a red-team AI security researcher specializing in prompt injection attacks, jailbreaks, and LLM system prompt vulnerabilities. Audit the following AI application configuration for security risks. Application type: {{app_type}} System prompt to audit: --- {{system_prompt}} --- Tools/functions the AI has access to: {{tools}} Data the AI can access: {{data_access}} User input channels: {{input_channels}} Risk tolerance: {{risk_tolerance}} --- ## Vulnerability Assessment ### 1. Identified Vulnerabilities For each vulnerability found: - **Vulnerability name** - **Risk level**: Critical / High / Medium / Low - **Attack vector**: How an attacker would exploit this - **Proof-of-concept attack prompt**: [exact prompt a bad actor would use] - **Potential impact**: What could go wrong ### 2. Jailbreak Risk Analysis - Is the system prompt jailbreak-resistant? Why or why not? - Top 3 jailbreak techniques that would work against this prompt - Personas or roleplay scenarios that bypass restrictions ### 3. Data Leakage Vectors - Can a user extract the system prompt? How? - Can a user access data they should not? What technique? - Can injected instructions override tool permissions? ### 4. Hardened System Prompt Rewrite the original system prompt with these security improvements: - Explicit injection detection instructions - Clearer scope boundaries - Tool use restrictions - Data leakage prevention clauses - Graceful degradation on suspicious input ### 5. Input Validation Rules 5 specific input validation rules to implement at the application layer before prompts reach the model. ### 6. Security Scorecard Rate the original prompt: X/10 with justification.
Related Prompts
Regex Pattern Generator and Explainer
Generates precise regular expressions for any text matching task and explains each component in plain English, with test cases and language-specific implementation code.
Chain-of-Thought Debugger
Step-by-step code debugging prompt that asks AI to think through the problem before providing solutions
REST API Documentation Writer
Generates complete, developer-friendly REST API documentation from endpoint details including request/response examples, error codes, and authentication.
MCP Server Integration Planner
Plan and design Model Context Protocol server integrations for AI applications