# Agentic safety audit

> Agentic safety audit is an open-source agent skill for security. Guides authorized adversarial testing of autonomous LLM agents for injection and approval. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/agentic-safety-audit
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** agentic-safety-audit
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a structured method for red-teaming an autonomous LLM application during an authorized security assessment. It focuses on failures that only arise because a model sits in the control loop: untrusted web pages, MCP tool schemas, returned data, durable memory and messages from other agents steering credentialed actions.

The workflow starts by mapping which inputs reach the model and which model outputs become actions, then enumerates the full action surface, including what those actions can reach indirectly. From there it walks through prompt injection tests using harmless canary payloads, confused-deputy checks on the authority an agent acts with, and adversarial tests of approval gates to confirm the harness enforces them rather than the model's instructions. It also covers scope containment proven by observed denials, memory write-then-recall paths, subagent output re-entering a parent as trusted context, and how the agent behaves on tool errors or timeouts.

The skill is written for specialists running sanctioned assessments and expects access to the target application and its tools. It is a process document rather than a script set, and it asks that every finding be recorded with the exact input that triggered it.

## When your agent uses it

> Use during an authorized adversarial assessment of an autonomous LLM application when attacker-controlled web content, MCP schemas, parameter descriptions, returned data, durable memory, or peer messages may cause credentialed actions: test injection, confused-deputy authority, approval enforcement, scope denial, poisoned recall, delegation, and fail-closed behavior. Not for authoring or revising the application's system instructions, or for validating one planted-config escape technique.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/agentic-safety-audit)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/agentic-safety-audit)

## Features

- **Trust boundary mapping:** Identifies which inputs reach the model and which attacker-influenced sources can drive actions.
- **Prompt injection testing:** Tests untrusted content, tool descriptions and tool output with harmless canary payloads.
- **Confused deputy checks:** Checks whether the agent acts with credentials or scope beyond the requester's own authority.
- **Approval gate testing:** Verifies that approvals are enforced by the harness and cannot be argued away by the model.
- **Memory and delegation review:** Covers poisoned recall, memory labelling and trust passed between parent and subagents.
- **Fail-closed behavior:** Observes whether the agent stops or improvises a less safe path after errors or refusals.

## Good for

- Assess whether a web-browsing agent can be redirected by hidden page content
- Test whether an MCP tool description can trigger unintended actions
- Check that an approval prompt cannot be bypassed by an adversarial request
- Verify that poisoned memory entries are not recalled as operator instructions
- Audit whether subagent output is treated as untrusted when returned to a parent agent

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/agentic-safety-audit` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agentic-safety-audit &&
cp -R "$tmp/.agents/skills/agentic-safety-audit" ~/.claude/skills/agentic-safety-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agentic-safety-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agentic-safety-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agentic-safety-audit &&
cp -R "$tmp/.agents/skills/agentic-safety-audit" ~/.agents/skills/agentic-safety-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agentic-safety-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agentic-safety-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agentic-safety-audit &&
cp -R "$tmp/.agents/skills/agentic-safety-audit" ~/.cursor/skills/agentic-safety-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agentic-safety-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/agentic-safety-audit
```

Or copy the folder to `~/.gemini/skills/agentic-safety-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agentic-safety-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agentic-safety-audit &&
cp -R "$tmp/.agents/skills/agentic-safety-audit" ~/.copilot/skills/agentic-safety-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agentic-safety-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/agentic-safety-audit` into your agent's skills folder as `agentic-safety-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Who is Agentic safety audit intended for?

It is marked for specialists running authorized adversarial assessments of autonomous LLM applications.

### Does Agentic safety audit write or change system instructions?

No. The skill explicitly excludes authoring or revising the application's system instructions and validating a single planted-config escape technique.

### What kinds of inputs does Agentic safety audit test?

Attacker-controlled web content, MCP schemas and parameter descriptions, returned data, durable memory and peer messages.

### Does Agentic safety audit include scripts?

No scripts or extra tools are bundled; the skill is a single SKILL.md file.

### How do I install Agentic safety audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agentic-safety-audit to use it in all your projects, or to .claude/skills/agentic-safety-audit in one project.

### Does Agentic safety audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agentic safety audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agentic safety audit?

The closest alternatives to Agentic safety audit are Agent action safety, Agent security hardening, AI threat testing, Audit integrity and Agentic actions auditor.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agent action safety](https://ai-powered.com/skills/agent-action-safety): Agent action safety is an open-source agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [AI threat testing](https://ai-powered.com/skills/ai-threat-testing): AI threat testing is an open-source agent skill for security.
- [Audit integrity](https://ai-powered.com/skills/audit-integrity): Audit integrity is an open-source agent skill for security.
- [Agentic actions auditor](https://ai-powered.com/skills/agentic-actions-auditor): Agentic actions auditor is an open-source agent skill for ai models and llm tooling.
- [Red team](https://ai-powered.com/skills/red-team): Red team is an open-source agent skill for security.
- [Security threat model](https://ai-powered.com/skills/security-threat-model-mtarcure): Security threat model is an open-source agent skill for security.
- [Client side](https://ai-powered.com/skills/client-side): Client side is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/agentic-safety-audit
