php-symfony-audit

Map Symfony security configurations to standardized vulnerability taxonomies.

386|38|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-symfony-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-symfony-audit
Source: https://github.com/0xShe/PHP-Code-Audit-Skill/tree/main/php-symfony-audit
Command: npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-symfony-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Symfony 框架特效安全审计工具,针对 Symfony 常见 security.yaml、CSRF、Twig 自动转义与 raw 输出、表达式与访问控制等框架机制进行白盒静态审计,并将风险映射到通用漏洞类型体系(AUTH/CSRF/CFG/XSS/TPL/LOGIC 等)。

Core Features & Use Cases

  • 自动识别并验证 Symfony 项目中的安全配置和行为特性
  • 将发现映射到统一的漏洞类型编码,便于跨项目对比
  • 针对路由/表达式、Twig 输出等关键点提供修复建议与证据链

Quick Start

Analyze the provided Symfony project source_path to produce a framework_audit report in the designated output directory.

Frequently Asked Questions about php-symfony-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Symfony security.yaml configurations for access control vulnerabilities?

To audit Symfony security.yaml configurations, this Skill statically analyzes access control rules and maps identified risks to standardized vulnerability taxonomies like AUTH and CFG. It produces actionable findings with clear evidence references and remediation guidance.

How does Twig template escaping affect XSS risks during a Symfony security audit?

Twig template escaping affects XSS risks by either neutralizing or exposing malicious payloads depending on automatic escaping or raw output usage. The audit identifies unsafe Twig output expressions and maps them to standardized XSS vulnerability categories.

Can I detect CSRF protection gaps in a Symfony project using static analysis?

Yes, you can detect CSRF protection gaps in a Symfony project using static analysis. This Skill examines CSRF token configurations and behaviors, mapping any identified weaknesses to the CSRF vulnerability taxonomy with actionable remediation steps.

What is the best way to map Symfony expression language vulnerabilities to a standardized taxonomy?

The best way to map expression language vulnerabilities is to statically analyze Symfony expressions and access control configurations. This process identifies logical flaws and maps them to unified vulnerability types like LOGIC and TPL for cross-project comparison.

Does this Symfony security audit require specific framework artifacts to run?

Yes, this Symfony security audit requires specific framework artifacts to run effectively. The analysis ensures the presence of Symfony project indicators and validates specific framework configurations like security.yaml before producing the risk mapping report.

What limitations exist when auditing Symfony access control with static analysis?

Limitations exist when auditing Symfony access control with static analysis if specific framework artifacts or project indicators are missing. The audit requires valid Symfony configurations to map vulnerabilities accurately and cannot analyze non-Symfony code structures.