Skip to content
Back to skills

Llm Agent Security Audit

ASecurity

Use when auditing an LLM, RAG, chatbot, or tool-using agent for prompt injection, data exfiltration, system-prompt leakage, or cross-tenant access.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsrustgoshellapisecurity

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add raniellimontagna/agent-toolkit --skill llm-agent-security-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Agent Security Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llm Agent Security Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/raniellimontagna-llm-agent-security-audit/badge)](https://www.skillsdirectory.com/skills/raniellimontagna-llm-agent-security-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llm-agent-security-audit
description: Use when auditing an LLM, RAG, chatbot, or tool-using agent for prompt injection, data exfiltration, system-prompt leakage, or cross-tenant access.
metadata:
  origin: Adapted from uphiago/recon-skills; first-party defensive rewrite.
  tags: security, llm, agents, prompt-injection
---

# LLM and Agent Security Audit

Test trust boundaries around model instructions, retrieved content, tools, and
tenant data. A refusal or unsafe sentence alone is not a vulnerability; require
reproducible impact at the data or action layer.

## When to Use

- Reviewing an agent with browser, shell, filesystem, email, or API tools.
- Assessing RAG/document ingestion, plugins, MCP tools, or multi-tenant chat.
- Investigating prompt injection, system-prompt leakage, or tool exfiltration.

## Procedure

1. Map system/developer/user/retrieved instructions, tool schemas, credentials,
   memory, tenant boundaries, and approval gates.
2. Use synthetic canary data and a disposable account. Label every test input
   and keep external callbacks under the auditor's control.
3. Test indirect instructions in documents and web content for instruction/data
   confusion. Verify whether the model can cause a tool action, not merely say
   it would.
4. Apply the run-twice rule for alleged prompt or system-message leakage. A
   finding needs reproducible non-guessable content or a verifiable action.
5. For exfiltration claims, require an authorized OOB callback containing only
   the synthetic canary. Rendered Markdown or a model claim is not proof.
6. Test cross-tenant retrieval with a value independently known to belong to a
   second synthetic tenant. Do not use real customer data.
7. Check tool permissions, argument validation, URL allowlists, confirmation
   gates, output encoding, and audit logs. Recommend architectural controls,
   not prompt-only mitigations.

## Evidence Gate

Confabulation, jailbreak compliance, a model repeating user input, and a generic
refusal bypass are not findings without a trust-boundary consequence.

## Report

Include model/build, synthetic input, tool/data boundary, reproducibility,
observable impact, logs or callback metadata, and mitigation. Never include
system prompts, customer content, credentials, or harmful payloads verbatim.

## Stop Conditions

Stop if a test reaches real data, sends an uncontrolled external request, or
would mutate a real system. Revoke test credentials and preserve minimal logs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.