Agent skill

Ctf Source Audit

by wgpsec in wgpsec/AboutSecurity

CTF 挑战中的源码审计方法。当发现 .git 目录、.bak/.zip 备份、/proc/self/environ 泄露源码时使用。与真实代码审计不同——CTF 源码中的漏洞是故意设置的,通常只有 1-2 个关键点。先找危险函数(sink),再追溯输入(source)到该函数的路径。覆盖 PHP/Python/Node.js/Java 四种语言的危险函数和漏洞模式

No licenceAuto-check: notesSecurity

Install Ctf Source Audit

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill ctf-source-audit -a claude-code

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

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

At a glance

CTF 挑战中的源码审计方法。当发现 .git 目录、.bak/.zip 备份、/proc/self/environ 泄露源码时使用。与真实代码审计不同——CTF 源码中的漏洞是故意设置的,通常只有 1-2 个关键点。先找危险函数(sink),再追溯输入(source)到该函数的路径。覆盖 PHP/Python/Node.js/Java 四种语言的危险函数和漏洞模式

  • Works in 6 steps: 快速识别语言和框架 → 审计流程 → PHP 常见漏洞模式 → …
  • Tasks that involve Capture the flag
  • SKILL.md covers ⛔ 深入参考(必读), Phase 1: 快速识别语言和框架, Phase 2: 审计流程 and Phase 3: PHP 常见漏洞模式, plus 4 more sections
  • Needs SECRET_KEY

What it does

Ctf Source Audit is an agent skill from wgpsec/AboutSecurity. CTF 挑战中的源码审计方法。当发现 .git 目录、.bak/.zip 备份、/proc/self/environ 泄露源码时使用。与真实代码审计不同——CTF 源码中的漏洞是故意设置的,通常只有 1-2 个关键点。先找危险函数(sink),再追溯输入(source)到该函数的路径。覆盖 PHP/Python/Node.js/Java 四种语言的危险函数和漏洞模式

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `evals/evals.json`, `evals/recall.json` and `references/dangerous-functions.md`).

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

When your agent uses it

  • Tasks that involve Capture the flag

Example prompts

  • “/ctf-source-audit”

Requirements

  • Python 3
  • Node.js
  • Docker
  • A credential in SECRET_KEY

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 快速识别语言和框架
  2. 审计流程
  3. PHP 常见漏洞模式
  4. Python 常见漏洞模式
  5. Node.js 常见漏洞模式
  6. Java 常见漏洞模式

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 (its code samples are php, python, javascript and java).

    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 these keys or tokens, usually read from environment variables:

    • SECRET_KEY

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

Context cost

Ctf Source Audit loads about 1.4k tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 192 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.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:129
    # - config.py / .env 文件

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 192 words (~1,398 tokens).

name
ctf-source-audit
metadata.tags
ctf,source,audit,code review,源码审计,php,python,node,java,代码审计,SAST
metadata.category
ctf

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/ctf/ctf-source-audit of wgpsec/AboutSecurity.

  • SKILL.md
  • evals/evals.json
  • evals/recall.json
  • references/dangerous-functions.md

Open the folder on GitHubat commit db4573f

Compare with similar skills

Ctf Source 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.

Ctf Source Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ctf Source Audit this skillwgpsec/AboutSecurity1.8k—~1.4kAutomated safety check: NotesNone
Dt Obs ServicesDynatrace/dynatrace-for-ai161—~3.3kAutomated safety check: PassApache-2.0
Sap Btp Business Application Studiosecondsky/sap-skills462—~2.7kAutomated safety check: PassGPL-3.0
Assess Migrationmendixlabs/mxcli128—~3.6kAutomated safety check: NotesApache-2.0
Detecting Insecure Deserializationjeremylongshore/tons-of-skills-marketplace2.8k—~1.4kAutomated safety check: PassMIT
SDK Implementation Guidemacalbert/envilder138—~1.9kAutomated safety check: PassMIT

Similar skills

  • Dt Obs Services

    Dynatrace/dynatrace-for-ai

    Service performance monitoring with RED metrics (Rate, Errors, Duration) and runtime-specific telemetry for Java, .NET, Node.js, Python, PHP, and Go.

    161 GitHub stars~3.3k tokensUpdated 6 days ago
    DevOps & CloudAuto-check passed
  • This skill provides comprehensive guidance for SAP Business Application Studio (BAS), the cloud-based IDE on SAP BTP built on Code-OSS.

    462 GitHub stars~2.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Assess Migration

    mendixlabs/mxcli

    Investigate an existing non-Mendix application (Java, .NET, Python, Node, PHP, …) and produce a structured migration assessment for Mendix.

    128 GitHub stars~3.6k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Detecting Insecure Deserialization

    jeremylongshore/tons-of-skills-marketplace

    Scan a source tree for unsafe-by-default deserialization APIs: Python pickle.loads / cPickle / shelve / dill, Ruby Marshal.load / YAML.load (pre-3.1 default), Java ObjectInputStream.readObject, PHP…

    2.8k GitHub stars~1.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • SDK Implementation Guide

    macalbert/envilder

    Operational guide for implementing a new Envilder runtime SDK.

    138 GitHub stars~1.9k tokensUpdated 3 days ago
    Productivity & AutomationAuto-check passed
  • Check Tools

    oaustegard/claude-skills

    Validates development tool installations across Python, Node.js, Java, Go, Rust, C/C++, Git, and system utilities.

    150 GitHub stars~641 tokensUpdated today
    DevelopmentAuto-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

Categories

Questions about Ctf Source Audit

What does Ctf Source Audit do?

CTF 挑战中的源码审计方法。当发现 .git 目录、.bak/.zip 备份、/proc/self/environ 泄露源码时使用。与真实代码审计不同——CTF 源码中的漏洞是故意设置的,通常只有 1-2 个关键点。先找危险函数(sink),再追溯输入(source)到该函数的路径。覆盖 PHP/Python/Node.js/Java 四种语言的危险函数和漏洞模式. Ctf Source Audit is an agent skill from wgpsec/AboutSecurity.

When should I use Ctf Source Audit?

Ctf Source Audit fits situations like: tasks that involve Capture the flag.

How do I install Ctf Source Audit in Claude Code?

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

How do I install Ctf Source Audit in Codex?

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

Can I use Ctf Source 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 ctf-source-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/ctf-source-audit, .gemini/skills/ctf-source-audit, .github/skills/ctf-source-audit and .opencode/skills/ctf-source-audit in your project.

What does Ctf Source Audit need to run?

Going by SKILL.md and its folder, Ctf Source Audit needs credentials named SECRET_KEY. Our summary lists: Python 3; Node.js; Docker; A credential in SECRET_KEY.

Does Ctf Source 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 Ctf Source 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 Ctf Source Audit use?

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

How many tokens does Ctf Source Audit use?

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

What are the alternatives to Ctf Source Audit?

Skills that share tags, products or a category with Ctf Source Audit: Dt Obs Services (Dynatrace/dynatrace-for-ai, 161 stars), Sap Btp Business Application Studio (secondsky/sap-skills, 462 stars), Assess Migration (mendixlabs/mxcli, 128 stars) and Detecting Insecure Deserialization (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ctf Source 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.