Prompt Library › ⚙️ Technical › AI Agent Security Audit
GPT-4o ⚙️ Technical Advanced

AI Agent Security Audit

Audit an AI agent system for prompt injection, data leakage, trust boundary violations, and other agentic security risks.

👁 14 views ⎘ 0 copies ♥ 0 likes

The Prompt

# AI Agent Security Audit

You are an AI security researcher. Audit my AI agent system and identify security risks before it goes to production.

Note: This audit supports your own security review process and does not replace a professional penetration test.

## System Description

What the agent does: [DESCRIBE THE AGENT'S PURPOSE AND CAPABILITIES]
Tools it can use: [LIST — e.g., web search, code execution, file access, email, database queries]
Data it has access to: [DESCRIBE — e.g., user data, internal documents, financial records]
Who interacts with it: [e.g., internal employees, external customers, anonymous public users]
Current security measures: [DESCRIBE WHAT'S ALREADY IN PLACE — or none]

## Security Audit

**Prompt Injection Risks** — Identify how malicious input could hijack the agent's instructions. Provide 2 concrete attack examples and mitigations for each.

**Tool Abuse Risks** — For each tool, describe how it could be misused by a manipulated agent and the safeguard needed.

**Data Exfiltration Risks** — How could the agent be tricked into leaking sensitive data it has access to?

**Trust Boundary Violations** — Where does the system trust data it should not? Where is user input treated as instructions?

**Privilege Escalation** — Can the agent be manipulated into taking actions beyond its intended scope?

## Security Recommendations

List your top 5 security fixes in priority order with specific implementation guidance for each.

📝 Fill in the blanks

Replace these placeholders with your own content:

[DESCRIBE THE AGENT'S PURPOSE AND CAPABILITIES]
[LIST — e.g., web search, code execution, file access, email, database queries]
[DESCRIBE — e.g., user data, internal documents, financial records]
[e.g., internal employees, external customers, anonymous public users]
[DESCRIBE WHAT'S ALREADY IN PLACE — or none]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.