Find the Origin IP Behind a CDN with Shodan Favicon Hashes
FAVINDEX tells you which domains share a favicon. Shodan tells you which IP addresses serve it. The two use the same hash, so you can move from one to the other in a single step.
- Red Teaming
- Penetration Testing
- Bug Bounty
- Input
- A domain behind a CDN
- Output
- Candidate origin IPs
- Endpoint
- /api/search/domain + Shodan
Why It Works
FAVINDEX computes MMH3 exactly as Shodan does: MurmurHash3 over the Base64 encoding of the icon, with 76-character line wrapping. The value can be pasted directly into http.favicon.hash.
A site behind a CDN or WAF hides its server's IP address, but the origin server often answers on that bare IP with the same favicon. If Shodan has scanned it, the hash search returns it.
How to Do It
- 1 Get the target's mmh3 hash from FAVINDEX.
- 2 Search Shodan for http.favicon.hash:<mmh3>.
- 3 Drop results that belong to the CDN's own IP ranges.
- 4 Check the remaining IPs: requesting the site with its Host header against the IP confirms whether it is the origin.
# 1. get the Shodan-compatible hash curl -s -H "Authorization: Bearer $FVX_KEY" \ "https://favindex.sh/api/search/domain?q=example.com" | jq .icon.mmh3 # 2. search it on Shodan shodan search --fields ip_str,port,org 'http.favicon.hash:-1864074548' # 3. confirm a candidate origin curl -sk -H "Host: example.com" https://203.0.113.10/ | head
More Use Cases
01
Technology Fingerprinting with Favicon Hashes
- Penetration Testing
- Bug Bounty
- Attack Surface Management
02
Map an Organization's Infrastructure from Its Favicon
- Attack Surface Management
- M&A Due Diligence
- OSINT
04
Detect Phishing and Brand Impersonation via Favicons
- Brand Protection
- Fraud Prevention
- SOC
05
Cluster Malicious Infrastructure by Favicon Hash
- Cyber Threat Intelligence
- Trust & Safety
- SOC
06
Favicon History for Domain Attribution
- Investigative Journalism
- Cyber Threat Intelligence
- OSINT
07
Extract Hidden Metadata from Favicon Files
- Digital Forensics
- Investigative Journalism
- OSINT
08
Automate Favicon Recon with the FAVINDEX API
- Bug Bounty
- Security Engineering
- Cyber Threat Intelligence