web-security-advanced

web-security-advanced is a skill for Claude Code, Codex from Unclecheng-li/DeepSec. It costs 38 tokens per session (1,177 once invoked), scanned A, a copy of web-security-advanced, MIT.

A playbook for advanced security testing of websites, APIs, gateways, and browser-facing services. It covers attacks such as injection, authentication flaws, unsafe file handling, and protocol problems.

In plain words
What is it for?
Use it when performing authorized tests for SQL injection, cross-site scripting, command execution, access-control errors, file vulnerabilities, deployment weaknesses, and related web risks.
Why use it?
It gives a structured way to check several parts of a modern web application's attack surface and route special cases, such as CTF challenges, to more specific guidance.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/unclecheng-li/deepsec/web-security-advanced
Any agent
npx skills add Unclecheng-li/DeepSec --skill web-security-advanced
Clone the repo
git clone --depth 1 https://github.com/Unclecheng-li/DeepSec

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-security-advanced

README.md
[![agentmods](https://agentmods.dev/badge/skills/unclecheng-li/deepsec/web-security-advanced.svg)](https://agentmods.dev/skills/unclecheng-li/deepsec/web-security-advanced)
Your own site
<a href="https://agentmods.dev/skills/unclecheng-li/deepsec/web-security-advanced"><img src="https://agentmods.dev/badge/skills/unclecheng-li/deepsec/web-security-advanced.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.01177
Opus 5 $0.00019 $0.00589
Sonnet 5 $0.00008 $0.00235
Haiku 4.5 $0.00004 $0.00118

Measured 4d ago against content hash 77adf6a28394, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-security-advanced scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to web-security-advanced — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

deepsec/spear/skills/specialized/web-security-advanced/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web 高级安全测试 Skill

当目标是 Web 应用、API、网关或浏览器面向服务,且需要系统性的漏洞测试时使用本 Skill。

前置条件:如果请求仍由客户端控制且重放未稳定,先使用 client-reverse Skill。

CTF 场景路由

当目标为 CTF 题目(已知有 flag,需要绕过特定过滤)时,优先使用 ctf-web Skill 获取具体绕过值和 payload:

CTF 场景 路由到 ctf-web 参考文档
PHP 弱比较/类型绕过 ctf-web references/php-bypass-cheatsheet.md
命令注入空格绕过 ctf-web references/command-injection-bypass.md
eval 回显/无回显 ctf-web references/eval-and-rce-techniques.md
PHP 代码审计 ctf-web references/php-code-audit-checklist.md
SSTI 注入链 ctf-web references/ssti-injection-chains.md
反序列化利用链 ctf-web references/deserialization-playbook.md
文件上传 → RCE 本 Skill references/web-playbook-08-file-vulnerabilities.md

本 Skill 侧重渗透测试方法论,CTF 实战绕过值和 payload 模板请参考 ctf-web

场景路由

攻击面类型 首选参考
参数注入(SQLi/XSS/命令执行/SSTI/XXE) references/web-injection.md
协议安全(CORS/GraphQL/WebSocket/OAuth/请求走私) references/web-modern-protocols.md
认证与逻辑(IDOR/越权/支付/密码重置/鉴权绕过) references/web-logic-auth.md
文件与基础设施(上传/遍历/包含/部署/缓存/CDN/云) references/web-file-infra.md
部署安全 references/web-deployment-security.md

测试流程

1. 输入验证测试

  • SQL 注入:布尔/时间/报错/Union/堆叠
  • XSS:反射/存储/DOM/CSP 绕过
  • 命令注入:分隔符绕过、编码绕过
  • SSTI:模板引擎识别 + RCE 链
  • XXE:实体注入、OOB 数据外带
  • 反序列化:Java/PHP/Python 链

2. 认证与会话测试

  • 默认凭据、暴力破解
  • 会话管理缺陷(固定/劫持/不安全 Cookie)
  • JWT 安全(算法篡改/密钥爆破/none算法)
  • OAuth/OIDC 配置缺陷
  • MFA 绕过

3. 逻辑漏洞测试

  • 越权访问(水平/垂直)
  • 业务逻辑绕过(支付/优惠券/投票)
  • 竞态条件
  • IDOR(不安全直接对象引用)

4. 协议安全测试

  • CORS 配置错误
  • GraphQL 内省/注入
  • WebSocket 认证与注入
  • HTTP 请求走私
  • SSRF(内网探测/云元数据)

5. 文件与部署安全

  • 文件上传绕过
  • 路径穿越
  • LFI/RFI
  • CDN/缓存投毒
  • 供应链攻击
  • 云安全配置

参考文档

  • references/web-injection.md — 注入攻击详细参考
  • references/web-modern-protocols.md — 现代协议安全
  • references/web-logic-auth.md — 认证与逻辑漏洞
  • references/web-file-infra.md — 文件与基础设施安全
  • references/web-deployment-security.md — 部署安全
  • references/web-ai-attack-map.md — Web 与 AI 攻击映射
  • references/web-playbook-*.md — 各专项 Playbook(23 个)

Read the full file on GitHub · 111 lines

Files

What ships with it

33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 111 lines · 38 tokens per session scan A 77adf6a28394

Subscribe to this mod's changes

web-security-advanced is a skill published in the GitHub repository Unclecheng-li/DeepSec (386 stars, last pushed 10d ago), licensed MIT. It adds 38 tokens to every session and 1,177 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to web-security-advanced, differing in 0 lines, and is treated as a copy.