Agent skill

Php Serialization Audit

by wgpsec in wgpsec/AboutSecurity

PHP 源码序列化与模板类漏洞审计。当在 PHP 白盒审计中需要检测反序列化、XML 解析或模板注入漏洞时触发. An agent skill from wgpsec/AboutSecurity.

No licenceAuto-check passedSecurity

Install Php Serialization Audit

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

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

GitHub CLI
$ gh skill install wgpsec/AboutSecurity php-serialization-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-serialization-audit .claude/skills/php-serialization-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-serialization-audit
GitHub stars
1.8k
Token cost
~689 tokens
SKILL.md length
178 words
Files
2 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
None found

At a glance

PHP 源码序列化与模板类漏洞审计。当在 PHP 白盒审计中需要检测反序列化、XML 解析或模板注入漏洞时触发. An agent skill from wgpsec/AboutSecurity.

  • Security work in your project
  • SKILL.md covers 深入参考, 3 类漏洞速查表, 反序列化审计要点 and XXE 审计要点, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Php Serialization Audit is an agent skill from wgpsec/AboutSecurity. PHP 源码序列化与模板类漏洞审计。当在 PHP 白盒审计中需要检测反序列化、XML 解析或模板注入漏洞时触发。 覆盖 3 类风险: PHP 反序列化(unserialize/phar 反序列化/POP 链构造)、 XXE(XML 外部实体注入/libxml 配置)、SSTI(模板注入/Twig/Blade/Smarty 引擎)。 需要 php-audit-pipeline 提供的数据流证据。

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/deser-patterns.md`).

It sits in Security. It works with PHP. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Security work in your project

Example prompts

  • “/php-serialization-audit”

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 Serialization Audit loads about 689 tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 178 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 178 words (~689 tokens).

“本 skill 聚焦源码层面判断"反序列化/XXE/SSTI 是否成立",核心是验证 Source→Sink 路径上的数据可控性和安全配置。构造 payload、链条利用等运行时技术属于对应黑盒 exploit skill 范畴。”

— opening of SKILL.md by wgpsec
name
php-serialization-audit
metadata.tags
deserialization, unserialize, phar, pop chain, xxe, xml, libxml, ssti, template injection, twig, smarty, blade, 反序列化, 模板注入, xml外部实体
metadata.category
code-audit

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/code-audit/php/php-serialization-audit of wgpsec/AboutSecurity.

  • SKILL.md
  • references/deser-patterns.md

Open the folder on GitHubat commit db4573f

Compare with similar skills

Php Serialization 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 Serialization Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Php Serialization Audit this skillwgpsec/AboutSecurity1.8k—~689Automated safety check: PassNone
Php Archive Extract Audit0xShe/PHP-Code-Audit-Skill4021 repos~883Automated safety check: PassNone
Php Auth Audit0xShe/PHP-Code-Audit-Skill4021 repos~951Automated safety check: PassNone
Auditing Code For Vulnerabilitiestrilwu/secskills156—~3.2kAutomated safety check: PassMIT
Php Cmd Audit0xShe/PHP-Code-Audit-Skill4021 repos~465Automated safety check: PassNone
Php Config Audit0xShe/PHP-Code-Audit-Skill4021 repos~417Automated safety check: NotesNone

Similar skills

  • Php Archive Extract Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~883 tokens
    SecurityAuto-check passed
  • Php Auth Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码鉴权机制审计工具。从源码中识别所有认证/鉴权实现并分析风险,输出路由-鉴权映射与漏洞分析(含 PoC 与修复建议)。

    402 GitHub starsUsed in 1 repo~951 tokens
    SecurityAuto-check passed
  • Audit source code for exploitable vulnerabilities using threat-model-driven review, taint tracing, invariant checking, and variant analysis.

    156 GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Php Cmd Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码命令注入审计工具。识别命令执行 Sink(exec/system/shellexec 等),追踪用户输入进入命令拼接,输出可利用性分级、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~465 tokens
    SecurityAuto-check passed
  • Php Config Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 配置安全审计工具。识别 CORS/错误暴露/调试开关/安全头/危险运行时开关等,输出分级、可利用性分析、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~417 tokens
    SecurityAuto-check: notes
  • Php Expr Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码表达式注入(非模板)审计工具。识别用户可控表达式字符串进入表达式引擎求值/编译并最终导致敏感语义执行,输出可利用性分级、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~720 tokens
    SecurityAuto-check passed

More from wgpsec/AboutSecurity

All 64 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 4 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 4 days ago
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

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

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

    wgpsec/AboutSecurity

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

    1.8k GitHub stars~510 tokensUpdated 4 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 4 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 4 days ago
    Auto-check passed

Works with

Categories

Questions about Php Serialization Audit

What does Php Serialization Audit do?

PHP 源码序列化与模板类漏洞审计。当在 PHP 白盒审计中需要检测反序列化、XML 解析或模板注入漏洞时触发. An agent skill from wgpsec/AboutSecurity. Php Serialization Audit is an agent skill from wgpsec/AboutSecurity.

When should I use Php Serialization Audit?

Php Serialization Audit fits situations like: security work in your project.

How do I install Php Serialization Audit in Claude Code?

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

How do I install Php Serialization Audit in Codex?

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

Can I use Php Serialization 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-serialization-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-serialization-audit, .gemini/skills/php-serialization-audit, .github/skills/php-serialization-audit and .opencode/skills/php-serialization-audit in your project.

What does Php Serialization Audit need to run?

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

Does Php Serialization 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 Serialization Audit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Php Serialization Audit use?

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

How many tokens does Php Serialization Audit use?

About 689 tokens (SKILL.md is roughly 2.8k 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 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Php Serialization Audit?

Skills that share tags, products or a category with Php Serialization Audit: Php Archive Extract Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Php Auth Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Auditing Code For Vulnerabilities (trilwu/secskills, 156 stars) and Php Cmd 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 Serialization Audit?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,775 GitHub stars. The repository holds 64 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.