symfony-security
Installation
SKILL.md
Symfony Security
When to use
This skill is the Symfony/PHP-specific layer on top of secure-coding. Symfony has a sophisticated Security Component but plenty of foot-guns: firewall ordering, missing voters, Doctrine string-interpolation, Twig opt-outs, and PHP's enduring RCE classes (unserialize gadget chains, dynamic includes, type juggling).
Triggers on:
- A question like "review this Symfony app for security", "is our security.yaml correct", "Doctrine SQLi check", "Twig |raw on user input", "PHP unserialize on request body", "Symfony Profiler in prod".
- Presence of
composer.jsonwithsymfony/*packages,config/packages/security.yaml,config/services.yaml,src/Controller/,src/Entity/,templates/*.twig,bin/console. - A PR that touches
security.yaml, voter classes, Doctrine repositories with raw SQL or DQL, Twig templates with|raw, or any controller that callsunserialize(),include $var,system(), oreval(). - Symfony version bumps or security advisories from the Symfony blog.
- A handoff from
security-revieworapi-securitywhen Symfony is in the stack. - A Symfony-based CMS (Sulu, Ibexa, Bolt) review.