Red Team Agent System Prompts for Injection Vulnerabilities
Assess the security of your agent system prompt against five common indirect prompt injection vectors using a structured risk analysis table.
Agent prompt for Claude and ChatGPT
Prompt
mkdir -p .agents/skills/red-team-agent-system-prompts-for-injection-vulnerabilities && curl -sL "https://prompts-gpt.com/prompts/red-team-agent-system-prompts-for-injection-vulnerabilities/raw" -o .agents/skills/red-team-agent-system-prompts-for-injection-vulnerabilities/SKILL.md---
name: red-team-agent-system-prompts-for-injection-vulnerabilities
description: "Assess the security of your agent system prompt against five common indirect prompt injection vectors using a structured risk analysis table."
---
# Red Team Agent System Prompts for Injection Vulnerabilities
Assess the security of your agent system prompt against five common indirect prompt injection vectors using a structured risk analysis table.
## Prompt
```
Act as an AI security engineer specializing in red-teaming agentic systems. Your goal is to evaluate my system prompt against indirect prompt injection risks, specifically focusing on how the agent processes untrusted tool inputs like web content or API data. Please ask me the following three questions first: 1. Paste your current system prompt. 2. What are the primary tools or external data sources the agent accesses? 3. What is the most sensitive action the agent can perform? After I respond, analyze the prompt for vulnerabilities and generate a markdown table. The table must have columns: Attack Vector, Description, Likelihood (High/Medium/Low), Blast Radius (High/Medium/Low), and Mitigation. List five distinct attack scenarios tailored to my specific tools. This is for security testing purposes only and does not constitute professional cybersecurity advice; consult a qualified security professional for production deployments.
```
## Usage Notes
Use this to stress-test your LLM agent's instruction set before deployment. Paste this prompt into Claude, ChatGPT, or Gemini. Have your system prompt and tool documentation ready for the follow-up questions.
Act as an AI security engineer specializing in red-teaming agentic systems. Your goal is to evaluate my system prompt against indirect prompt injection risks, specifically focusing on how the agent processes untrusted tool inputs like web content or API data. Please ask me the following three questions first: 1. Paste your current system prompt. 2. What are the primary tools or external data sources the agent accesses? 3. What is the most sensitive action the agent can perform? After I respond, analyze the prompt for vulnerabilities and generate a markdown table. The table must have columns: Attack Vector, Description, Likelihood (High/Medium/Low), Blast Radius (High/Medium/Low), and Mitigation. List five distinct attack scenarios tailored to my specific tools. This is for security testing purposes only and does not constitute professional cybersecurity advice; consult a qualified security professional for production deployments.Example output
Tips and common edits
Why this works
- Requires specific context about tools and tasks to provide relevant attack vectors.
- Uses a standardized table format for clear risk visualization and comparison.
- Includes a mandatory security disclaimer regarding professional advice.
Use this to stress-test your LLM agent's instruction set before deployment. Paste this prompt into Claude, ChatGPT, or Gemini. Have your system prompt and tool documentation ready for the follow-up questions.
Common edits
- Adjust the risk levels based on your specific infrastructure environment.
- Expand the mitigation column into a separate checklist for your engineering team.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Generate Adversarial Evaluation Transcripts for AI Agents
Create three distinct multi-turn conversation logs designed to test your AI agent for social engineering, tool hallucination, and silent goal drift.
Draft Input Sanitization Rules for AI Agents
Get five strict, deterministic input-sanitization rules to prevent prompt injection and data leakage before processing untrusted user inputs in an agent.
Tool Permission Matrix and Function Spec for a Tool-Using Agent
Produces a least-privilege tool inventory, function definitions, and approval rules for an agent that calls APIs or internal systems.
Audit Agent Tool Definitions to Fix Routing Errors
This prompt analyzes your AI agent tool descriptions to eliminate overlap, define clear boundaries, and prevent incorrect tool routing by adding explicit anti-use guidance.
Establish an Automated LLM-as-a-Judge Rubric for Tool Calls
Create a structured 1-to-5 grading rubric to verify the accuracy, necessity, and completeness of multi-step AI tool calls.
Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks
Produces a set of testable guardrail rules for your coding agent, covering blocked commands, approval gates, secret handling and hook checks.
- Model Tier Budget and Latency Breakdown for Multi-Turn Agents
- Research Agent Brief: Source Discovery, Evidence Review, and Citation Table
- Incident Recovery Playbook for Rogue AI Agent Loops
- Should This Be an Agent? Single Agent, Workflow or Plain Script Decision
- Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build It
- 20-Case Agent Eval Set with Pass/Fail Rubric for Normal, Edge and Unsafe Requests