web-auth-mapping
它能做什么
它梳理网站使用的登录方式,并记录每种方式的响应情况。适用于需要了解网站登录系统的测试人员和开发者。
适用场景
- ✓当开发者想记录网站使用的每一种登录方式时。
- ✓当测试人员需要知道网站是否使用 JWT 令牌、OAuth 或单点登录时。
- ✓当分析人员想记录有效密码和无效密码的登录响应有何不同时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/auth-mapping/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请梳理用户如何登录我们的应用,包括令牌、Cookie 和单点登录。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能告诉 AI 检查常见的登录路径,并根据响应头和重定向识别登录类型。然后它会为每种方式记录所发现的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Authentication Surface Mapping
Map every authentication mechanism the target exposes. Exploit downstream needs to know exactly how to hold a session (cookie, JWT, API key) and where to attack auth (token theft, race-condition on bcrypt, SSO redirect chain).
1. Login Endpoint Discovery
# Common auth paths
for path in login signin auth authenticate oauth/authorize \
api/auth api/login admin/login wp-login.php; do
code=$(curl -s -o /dev/null -w "%{http_code}" "https://<target>/$path")
[ "$code" != "404" ] && echo "$code https://<target>/$path"
done
2. Auth Mechanism Identification
| Mechanism | Signal |
|---|---|
| Cookie-based | Set-Cookie headers after login (often session=, JSESSIONID=, PHPSESSID=) |
| JWT | Authorization: Bearer eyJ... patterns; three base64 segments separated by . |
| OAuth 2.0 | /oauth/authorize, /oauth/token endpoints; state/code/redirect_uri params |
| API Key | X-API-Key header accepted; Authorization: ApiKey <token> |
| SAML/SSO | Redirects to IdP (Okta, Azure AD, Auth0); SAMLRequest form param |
| Session row + slow KDF | Login latency >50ms on wrong password (bcrypt/Argon2) — flag for race-condition recon |
3. Output for Handoff
Record per mechanism: endpoint, success/fail signals (status code, cookie set, JSON shape), credentials used, observed latency. This feeds the Required session state line in the recon → exploit handoff.
常见问题
它能识别哪些登录类型?
它能识别 Cookie 会话、JWT 令牌、OAuth、SAML 和 API 密钥登录。
它会尝试密码吗?
它提到使用凭据进行测试,但这只适用于允许测试的场所。
这些结果有什么用?
这些记录有助于之后对登录系统进行审查。
详情
作者的原始描述
Authentication surface — login endpoints, JWT/OAuth/SAML/SSO/API-key mechanism identification.
热度
- GitHub 星标
- 6.5k
- 排名
- #14152
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …