performing-ssrf-vulnerability-exploitation
它能做什么
这个工具可以帮你检查一个网站是否可能被诱导去访问内部或云端信息。它会尝试访问一些特殊地址,这些地址可能会暴露敏感数据。
适用场景
- ✓在获得授权的前提下,测试网站的安全性时。
- ✓调查可能存在的数据泄露问题时。
- ✓检查网站能否有效防止未经授权的访问时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-ssrf-vulnerability-exploitation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我检查一下 example.com 这个网站能否被利用来访问 AWS 数据。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会向那些可能暴露信息的地址发送请求。它会尝试访问云端地址和内部服务,并使用不同的协议来查找漏洞。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
When to Use
- When conducting security assessments that involve performing ssrf vulnerability exploitation
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
- Install dependencies:
pip install requests - Identify URL parameters in the target application that accept URLs or hostnames.
- Test SSRF payloads:
- Cloud metadata:
http://169.254.169.254/latest/meta-data/ - Internal services:
http://127.0.0.1:port/,http://10.0.0.1/ - Protocol handlers:
file:///etc/passwd,gopher://,dict:// - Bypass techniques: IP encoding, DNS rebinding, URL redirects
- Cloud metadata:
- Analyze responses for information disclosure or internal access confirmation.
- Generate a vulnerability assessment report.
# For authorized penetration testing and lab environments only
python scripts/agent.py --target-url https://app.example.com/fetch?url= --output ssrf_report.json
Examples
AWS Metadata SSRF
GET /fetch?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/
If the response contains AWS credentials (AccessKeyId, SecretAccessKey), SSRF is confirmed with critical impact.
常见问题
什么是 SSRF?
SSRF(服务端请求伪造)是一种安全漏洞,攻击者可以让受害者的 Web 服务器去请求其他服务器,从而可能暴露内部数据。
我可以用它测试任何网站吗?
不可以。你只能在明确获得安全测试授权的网站上使用这个工具。未经许可使用是违法的。
什么是“云端地址”?
这些是 AWS、Google Cloud、Azure 等云服务商使用的特殊地址,可以提供运行代码的服务器实例的相关信息。
详情
作者的原始描述
Tests web application URL parameters for Server-Side Request Forgery by probing cloud metadata endpoints (AWS/GCP/Azure at 169.254.169.254), internal network services, and protocol handlers (file://, gopher://, dict://) using a Python script, including IP-encoding bypass and DNS rebinding checks. Use during authorized penetration testing to confirm SSRF in a URL-fetching parameter and generate a v
热度
- GitHub 星标
- 35k
- 排名
- #8314
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。