Agent skill

Php Framework Audit

by wgpsec in wgpsec/AboutSecurity

PHP 框架特定安全审计。当在 PHP 白盒审计中已识别目标使用特定框架、 需要检查框架特有安全机制和常见配置缺陷时触发。

No licenceAuto-check: notesBackend & APIs

Install Php Framework Audit

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill php-framework-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wgpsec/AboutSecurity php-framework-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wgpsec/AboutSecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-audit/php/php-framework-audit .claude/skills/php-framework-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
php-framework-audit
GitHub stars
1.8k
Token cost
~767 tokens
SKILL.md length
233 words
Files
4 (incl. references)
Skills in repo
74
Repo updated
First seen
Licence
None found

At a glance

PHP 框架特定安全审计。当在 PHP 白盒审计中已识别目标使用特定框架、 需要检查框架特有安全机制和常见配置缺陷时触发。

  • Works in 6 steps: Mass Assignment -- $fillable / $guarded… → Blade XSS -- 搜索 {!! !!} 未转义输出、@php 指令内直接… → CSRF 例外 -- VerifyCsrfToken 中间件 $except… → …
  • Tasks that involve Web application vulnerabilities
  • SKILL.md covers 框架识别决策表, Laravel 核心检查点, ThinkPHP 核心检查点 and WordPress 核心检查点, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Php Framework Audit is an agent skill from wgpsec/AboutSecurity. PHP 框架特定安全审计。当在 PHP 白盒审计中已识别目标使用特定框架、 需要检查框架特有安全机制和常见配置缺陷时触发。 覆盖 6 大框架: Laravel(Mass Assignment/Blade XSS/CSRF 例外)、 ThinkPHP(RCE 历史漏洞/路由注入/缓存写入)、WordPress(插件漏洞/权限钩子/nonce 验证)、 Symfony(Debug Bar/YAML 解析/安全投票器)、Yii2(RBAC/ActiveRecord 注入)、CodeIgniter(全局 XSS/CSRF Token)。

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/laravel-patterns.md`, `references/thinkphp-patterns.md` and `references/wordpress-patterns.md`).

It sits in Backend & APIs, covering Web application vulnerabilities, Backend development and Authorization and RBAC. It works with PHP, Laravel, WordPress and Symfony. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Tasks that involve Web application vulnerabilities
  • Tasks that involve Backend development
  • Tasks that involve Authorization and RBAC

Example prompts

  • “/php-framework-audit”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Mass Assignment -- $fillable / $guarded 是否正确配置,Model::create($request->all()) 或 update($request->all()) 是否存在未过滤字段
  2. Blade XSS -- 搜索 {!! !!} 未转义输出、@php 指令内直接 echo、自定义 Blade Directive 未调用 e()
  3. CSRF 例外 -- VerifyCsrfToken 中间件 $except 数组是否包含敏感路由,API 路由组默认不含 CSRF 中间件
  4. Gate / Policy -- 控制器方法是否调用 $this->authorize() 或 Gate::allows(),Policy 定义是否覆盖所有 CRUD
  5. Eloquent Raw -- whereRaw / havingRaw / orderByRaw / DB::raw 中是否存在变量拼接
  6. 签名 URL / 调试 -- APP_DEBUG=true 残留、.env Web 可达、Telescope / Debugbar 路由暴露

What it can do on your machine

Read from SKILL.md and the folder at commit db4573f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Php Framework Audit loads about 767 tokens when it runs, and up to ~4.1k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 233 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~767
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:33
    **签名 URL / 调试** -- `APP_DEBUG=true` 残留、`.env` Web 可达、Telescope / Debugbar 路由暴露

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 233 words (~767 tokens).

name
php-framework-audit
metadata.tags
laravel, thinkphp, wordpress, symfony, yii, codeigniter, 框架审计, mass assignment, blade xss, wp plugin, think rce
metadata.category
code-audit

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/code-audit/php/php-framework-audit of wgpsec/AboutSecurity.

  • SKILL.md
  • references/laravel-patterns.md
  • references/thinkphp-patterns.md
  • references/wordpress-patterns.md

Open the folder on GitHubat commit db4573f

Compare with similar skills

Php Framework Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Php Framework Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Php Framework Audit this skillwgpsec/AboutSecurity1.8k—~767Automated safety check: NotesNone
Laravel SecurityHoangNguyen0403/agent-skills-standard570—~887Automated safety check: PassMIT
Auditing Php Applicationstrilwu/secskills156—~2.8kAutomated safety check: PassMIT
Django Access Reviewgetsentry/skills1k3 repos~2.6kAutomated safety check: NotesApache-2.0
Php Laravel Audit0xShe/PHP-Code-Audit-Skill4021 repos~821Automated safety check: PassNone
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT

Similar skills

  • Laravel Security

    HoangNguyen0403/agent-skills-standard

    Harden Laravel apps with Policies for model authorization, Gate-based RBAC, validated mass assignment, and CSRF protection.

    570 GitHub stars~887 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Audit PHP web application source for critical vulnerabilities using PHP's specific sink and footgun catalog — object injection via unserialize and phar:// POP chains, type-juggling and magic-hash…

    156 GitHub stars~2.8k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Django Access Review

    getsentry/skills

    Official

    Django access control and IDOR security review. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 3 repos~2.6k tokens
    Backend & APIsAuto-check: notes
  • Php Laravel Audit

    0xShe/PHP-Code-Audit-Skill

    Laravel 框架特效安全审计工具。针对 Laravel 常见鉴权/CSRF/Session/模型填充/Blade 渲染等框架特性进行白盒静态审计,并将风险映射到你现有通用漏洞类型体系(AUTH/CSRF/LOGIC/XSS/CFG 等)。

    402 GitHub starsUsed in 1 repo~821 tokens
    Backend & APIsAuto-check passed
  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Laravel Specialist

    Jeffallan/claude-skills

    Builds Laravel 10+ applications with Eloquent models, Sanctum authentication, Horizon queues, API resources and Livewire components, tested with Pest or PHPUnit.

    12k GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check passed

More from wgpsec/AboutSecurity

All 74 skills in this repo
  • A skill your agent uses whenever the user asks to add, absorb, migrate, port, update, merge, compare, or extract security knowledge into the AboutSecurity repository from any external resource such…

    1.8k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed
  • Ad Persistence

    wgpsec/AboutSecurity

    AD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton…

    1.8k GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

    APT 模拟与情报驱动红队方法论。基于已知 APT 组织的 TTP(MITRE ATT&CK)设计红队行动计划。当需要模拟特定威胁组织、设计高仿真攻击演练、或根据威胁情报制定攻击策略时使用

    1.8k GitHub stars~922 tokensUpdated 3 days ago
    Auto-check passed
  • Argocd Tactics

    wgpsec/AboutSecurity

    ArgoCD 后渗透方法论:Redis缓存投毒集群接管、SSO认证绕过、未授权API枚举、恶意Application部署、Webhook SSRF、默认凭据利用。

    1.8k GitHub stars~510 tokensUpdated 3 days ago
    Auto-check passed
  • C2 Beacon Analysis

    wgpsec/AboutSecurity

    C2 Beacon 配置提取与分析。当捕获到 Cobalt Strike/Sliver/Havoc 等 C2 框架的 Beacon 样本、内存 dump、或网络流量时使用。提取 C2 地址、通信协议、Malleable Profile、Watermark 等关键情报。红队视角:了解蓝队如何从 Beacon 提取 IOC 以改进 C2 OPSEC

    1.8k GitHub stars~1.2k tokensUpdated 3 days ago
    Auto-check passed
  • C2 Evasion Methodology

    wgpsec/AboutSecurity

    C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改

    1.8k GitHub stars~557 tokensUpdated 3 days ago
    Auto-check passed

Questions about Php Framework Audit

What does Php Framework Audit do?

PHP 框架特定安全审计。当在 PHP 白盒审计中已识别目标使用特定框架、 需要检查框架特有安全机制和常见配置缺陷时触发。. Php Framework Audit is an agent skill from wgpsec/AboutSecurity.

When should I use Php Framework Audit?

Php Framework Audit fits situations like: tasks that involve Web application vulnerabilities; tasks that involve Backend development; tasks that involve Authorization and RBAC.

How do I install Php Framework Audit in Claude Code?

Run `npx skills add wgpsec/AboutSecurity --skill php-framework-audit -a claude-code`. Or copy the skill folder (skills/code-audit/php/php-framework-audit in wgpsec/AboutSecurity) into .claude/skills/php-framework-audit in your project. Claude Code loads it when a task matches its description.

How do I install Php Framework Audit in Codex?

Run `npx skills add wgpsec/AboutSecurity --skill php-framework-audit -a codex`. Or copy the skill folder (skills/code-audit/php/php-framework-audit in wgpsec/AboutSecurity) into .agents/skills/php-framework-audit in your project. Codex loads it when a task matches its description.

Can I use Php Framework Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wgpsec/AboutSecurity --skill php-framework-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/php-framework-audit, .gemini/skills/php-framework-audit, .github/skills/php-framework-audit and .opencode/skills/php-framework-audit in your project.

What does Php Framework Audit need to run?

SKILL.md names no scripts, command-line tools or credentials: Php Framework Audit is instructions for the agent only.

Does Php Framework Audit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Php Framework Audit safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Php Framework Audit use?

No licence was found for Php Framework Audit or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Php Framework Audit use?

About 767 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Php Framework Audit?

Skills that share tags, products or a category with Php Framework Audit: Laravel Security (HoangNguyen0403/agent-skills-standard, 570 stars), Auditing Php Applications (trilwu/secskills, 156 stars), Django Access Review (getsentry/skills, 1k stars) and Php Laravel Audit (0xShe/PHP-Code-Audit-Skill, 402 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Php Framework Audit?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,776 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 3, 2026.

Source: wgpsec/AboutSecurity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.