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
AI Agent System Design Blueprint
Design a multi-agent AI system architecture for any use case
Data Visualization Code Generator
Generate interactive data visualizations with multiple chart types from data descriptions
Database Schema Designer
Design optimized database schemas from business requirements
Vibe Coding Project Brief Generator
Generates a clear, structured project brief optimized for AI coding tools like Cursor, Lovable, or Bolt.new so vibe coders can build faster with better AI outputs.