bounty-hunting-methodology
它能做什么
这项技能说明如何评估开源项目并阅读其代码,以证明某个弱点可以被利用。适合参与已获授权的漏洞赏金计划或负责任披露计划的研究人员。
适用场景
- ✓当研究人员要求智能体审查一个设有漏洞赏金或披露计划的开源项目时。
- ✓当智能体需要在审查前判断项目的信任边界和过往安全公告时。
- ✓当报告需要清晰到能通过经验丰富的安全工程师的分诊时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/bounty-hunting/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我按照这个开源项目的漏洞赏金规则审查代码,并告诉我哪些发现是我能证明的?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体检查计划的范围和过往公告,阅读关键信任边界附近的代码,只保留它能够演示的发现。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Bug Bounty Hunting Methodology
You are not scanning. You are reading code, mapping architecture, and proving exploitability. Volume is the enemy — signal is the metric. Every report must survive triage by an experienced security engineer.
Target Assessment
The selected program and workflow determine effort allocation. Useful context for interpreting a supplied target includes:
- Exposure context: known deployments and dependency reach. Popularity alone does not establish technical impact or a reward multiplier.
- Trust boundary complexity: Does the app load config from untrusted sources? Handle plugins? Parse user-controlled serialized data? Multi-tenant auth? Complex trust boundaries = more attack surface.
- Security advisory history: Check
github.com/advisories?query=<package>. Projects that accept and credit researchers will work with you. Projects with zero advisories are either very secure or don't have a disclosure process. - Reward program: HackerOne, Bugcrowd, Immunefi, GitHub Security Advisories, Google VRP. Check scope, excluded vuln classes, and reward tiers.
Record the assessment as a node:
kg_add_node("repo", "<name>", props={"stars": N, "downloads_weekly": N,
"has_security_policy": true, "advisory_count": N, "bounty_program": "hackerone"})
White-Box Methodology
This is the core loop. Fork. Read. Trace. Prove.
Step 1 — Map the project
find /workspace/target -name 'package.json' -o -name 'pyproject.toml' \
-o -name 'go.mod' -o -name 'Cargo.toml' -o -name 'composer.json' | head -20
Identify: language, framework, entry points, config loading, auth middleware.
Step 2 — Map trust boundaries
Where does untrusted input enter the system? Trace these sources:
- HTTP request params, headers, body
- Environment variables and
.envfiles - Config files from current directory (
.gemini/settings.json,.vscode/settings.json) - Plugin/extension loading paths
- Deserialization of user-controlled data (pickle, YAML, JSON with class hints)
- IPC channels, WebSocket messages, MCP tool inputs
For each source, add an ENTRYPOINT node:
kg_add_node("entrypoint", "POST /api/upload body", props={"type": "http",
"file": "routes/upload.py", "line": 42})
Step 3 — Identify crown jewels
What is the most valuable thing an attacker could reach?
- Admin access / account takeover
- RCE / command execution
- Database contents / PII
- Secret keys / credentials
- File system read/write
Add CROWN_JEWEL nodes for each.
Step 4 — Trace source → sink
For each entrypoint, trace the data flow to dangerous sinks:
exec(),eval(),spawn(),subprocess.run(),os.system()db.query()with string interpolationrender()/innerHTMLwith unescaped inputopen()/readFile()with user-controlled pathspickle.loads(),yaml.unsafe_load(),JSON.parse()with reviverredirect()with unvalidated URLs
Use semgrep, grep, or bash to find sinks, then manually trace backwards
to see if untrusted input reaches them without sanitization.
Step 5 — Prove or discard
Every finding MUST go through validate_finding with:
- A working
poc_command success_patternsthat uniquely match the exploit signal- A
negative_command(same request without payload) negative_patternsmatching the baseline response- Full
cvss_vectorstring
An unreproduced claim remains unverified. Distinguish an unavailable prerequisite from a control that refutes the hypothesis; preserve the evidence and limitations.
Mechanism families
These are investigation categories, not a universal payout or priority ranking:
- Remote Code Execution — deserialization, template injection, command injection,
unsafe
eval/exec,shell: truewith user input. - Access Control Bypass — IDOR, BOLA, missing ownership validation, broken function-level authorization.
- Authentication Bypass — token leakage, session fixation, OAuth state confusion,
JWT
alg=none, password reset flaws. - Path Traversal / File Write — directory escape in upload/download handlers, session file storage with crafted IDs, zip slip.
- Server-Side Request Forgery — redirect bypass, DNS rebinding, cloud metadata access via internal URL parameters.
- Injection — SQLi, XSS (stored > reflected), LDAP injection, GraphQL injection.
- Information Disclosure — API key leakage, user enumeration via error codes, schema/debug
常见问题
该技能是否要求扫描整个项目?
不是。它指出扫描并非目标,应该阅读代码并证明可利用性。
为什么要检查计划规则?
该技能指出,范围、排除的漏洞类别和奖励等级决定了哪些问题值得报告。
这项技能适合谁?
适合在计划规则之内工作、并通过其流程提交发现的研究人员。
详情
作者的原始描述
Bug bounty white-box hunting methodology. Load when the target is an open-source project with a security advisory program, bug bounty, or responsible disclosure policy.
热度
- GitHub 星标
- 6.5k
- 排名
- #13950
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …