# symfony-security-auditor

symfony-security-auditor audits Symfony codebases for business logic flaws and authorization bugs. Uses dual-agent LLM analysis to catch issues missed by static scanners.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 239 installs · ★ 13 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/symfony-security-auditor/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/symfony-security-auditor

## What it does

The skill inspects `.php` and `.twig` files, mapping controllers and voters across the project. It runs a three-stage audit process: code ingestion, architecture mapping, and an adversarial inspection loop. An attacker agent locates possible exploits, while a skeptical reviewer agent filters out false alarms.

It catches missing `#[IsGranted]` attributes, IDOR issues, mass assignment via `MapRequestPayload`, and unsafe Messenger handlers. Results can be emitted directly to the console or exported as JSON, HTML, or SARIF for CI dashboards.

Running the audit requires installing the companion bundle `vinceamstoutz/symfony-security-auditor` directly into your Symfony project dependencies.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill symfony-security-auditor -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/symfony-security-auditor/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/symfony-security-auditor/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill symfony-security-auditor -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/symfony-security-auditor/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill symfony-security-auditor -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/symfony-security-auditor/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/symfony-security-auditor
```

2. **Manually: put the files in place**
- File: `.github/skills/symfony-security-auditor/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill symfony-security-auditor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/symfony-security-auditor
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/symfony-security-auditor/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill symfony-security-auditor -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/security-skills/tree/HEAD/skills/symfony-security-auditor/SKILL.md

## When to use it
- uncover broken access control and missing #[IsGranted] attributes
- detect business logic bypasses across Symfony controllers
- export security findings into SARIF for GitHub Code Scanning
- inspect firewall configurations and Messenger handlers for leaks

## Example prompts
- Audit my Symfony application for security vulnerabilities
- Run a Symfony security audit and check for missing Voters
- Scan Symfony codebase for broken access control and IDOR

## Similar
- [security-auditor](https://affpapa.org/en/nevibecode/skills/security-auditor.md) — skill · 1100 installs
- [Python Security Vulnerability Auditor (OWASP-Mapped & Production-Hardened)](https://affpapa.org/en/nevibecode/prompts/python-security-vulnerability-auditor-owasp-mapped-production-hardened.md) — prompt · ★ 178201 repo stars
- [security-audit](https://affpapa.org/en/nevibecode/skills/netresearch-dtt-gmbh-security-audit.md) — skill · 944 installs
- [php-security-expert](https://affpapa.org/en/nevibecode/agents/php-security-expert.md) — subagent · ★ 372 repo stars
- [laravel-owasp-security](https://affpapa.org/en/nevibecode/skills/laravel-owasp-security.md) — skill · 1100 installs
- [backend-development-security-auditor](https://affpapa.org/en/nevibecode/agents/backend-development-security-auditor.md) — subagent · ★ 42780 repo stars

From the same set: [reason-machines/security-skills](https://affpapa.org/en/nevibecode/by/reason-machines/security-skills.md) — 129 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
