跳到正文
Skillpedia
安全6.5k · #14151

web-api-enumeration

它能做什么

它介绍如何查找 API 路由、检查 API 文档以及识别输入字段。适用于审查获准测试的网页应用的开发者和测试人员。

适用场景

  • ✓当开发者想列出其网页应用暴露的每一条 API 路由时。
  • ✓当测试人员需要确认 GraphQL 端点是否可用时。
  • ✓当有人想在深入测试前查看某个端点接受哪些参数时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/api-enumeration/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请找出我们网站上所有的 API 端点,并检查是否存在 GraphQL 端点。”

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

工作原理

该技能提供检查常见 API 路径、查找已发布的 API 文档以及列出参数的步骤。AI 执行这些检查并汇报结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Web API Enumeration & Parameter Discovery

Surface REST/GraphQL endpoints and the parameter surface of known endpoints. This sub-skill covers everything between "the directory tree is mapped" and "I know what to fuzz".

1. API Endpoint Enumeration

REST API Discovery

# Common API paths
ffuf -u https://<target>/api/FUZZ -w /usr/share/wordlists/api-endpoints.txt -mc 200,201,401,403,405

# Version enumeration
for v in v1 v2 v3; do
    ffuf -u "https://<target>/api/$v/FUZZ" -w api-wordlist.txt -mc 200,201,401,403
done

# Check for Swagger/OpenAPI docs
for doc in swagger.json openapi.json api-docs docs/api swagger/v1/swagger.json; do
    code=$(curl -s -o /dev/null -w "%{http_code}" "https://<target>/$doc")
    echo "$code $doc"
done

GraphQL Detection

# Common GraphQL endpoints
for path in graphql graphiql playground api/graphql; do
    # Introspection query
    curl -s -X POST "https://<target>/$path" \
        -H "Content-Type: application/json" \
        -d '{"query":"{__schema{types{name}}}"}' | head -c 200
    echo " → $path"
done

API Key/Token Patterns

Look for in responses:

  • api_key, apiKey, access_token, bearer, jwt
  • Base64-encoded blobs in cookies or headers
  • Authorization header patterns

2. Parameter Discovery

# GET parameter fuzzing
ffuf -u "https://<target>/page?FUZZ=test" -w /usr/share/wordlists/params.txt -mc 200 -fs <default_size>

# POST parameter fuzzing
ffuf -u "https://<target>/login" -X POST \
    -d "FUZZ=test" -H "Content-Type: application/x-www-form-urlencoded" \
    -w /usr/share/wordlists/params.txt -mc 200 -fs <default_size>

# Header fuzzing
ffuf -u "https://<target>/" -H "FUZZ: test" \
    -w /usr/share/wordlists/headers.txt -mc 200 -fs <default_size>
常见问题

它能找到隐藏的 API 密钥吗?

它介绍了在响应中查找类似密钥的值,以便标记出来供审查。

需要有 API 文档吗?

不需要。它也会检查常见路径中是否有 Swagger 或 OpenAPI 文件。

它面向谁?

面向审查获准测试的应用的开发者和测试人员。

详情

作者的原始描述

REST API discovery, GraphQL detection, parameter fuzzing.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14151
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能