
Identity & Phishing
https://hmmnm.com/hunting-phishing-infrastructure-with-urlscan-io-pivot-from-screenshot-to-campaign-takedown/
{
“@context”: “https://schema.org”,
“@type”: “Article”,
“headline”: “Hunting Phishing Infrastructure with urlscan.io: Pivot from Screenshot to Campaign Takedown”,
“description”: “Learn a hands-on urlscan.io OSINT workflow to pivot from a single phishing screenshot to the full campaign footprint using search operators, page.domains, and certificate data.”,
“author”: {“@type”: “Organization”, “name”: “HMMNM Security”},
“publisher”: {“@type”: “Organization”, “name”: “HMMNM Security”}
}
A single phishing URL is never just one URL—it’s a doorway into the attacker’s entire infrastructure. urlscan.io lets you pivot from that first screenshot to the full campaign footprint by chaining search operators (hash:, page.domain:, cert.subject:), clustering results by IP, ASN, and page.domains, and building a timeline that turns scattered domains into a takedown-ready package.
Traditional phishing analysis meant pasting a suspicious URL into a disposable VM, screenshotting the result, and hoping the kit didn’t fingerprint your sandbox. urlscan.io—which has scanned billions of URLs since its 2016 launch by Johannes Gilger—flips that workflow into structured, searchable intelligence.
Every scan produces:
The scan result page is your evidence locker. The search interface is your pivot engine—and that’s where campaigns get mapped.
urlscan’s search syntax is where OSINT becomes infrastructure hunting. The operators you’ll use daily:
page.domain:example-secure-login.com — scans of the page’s registered domain.page.url:"/wp-content/verify" — scans containing a URL path pattern.ip:185.220.101.5 and asn:AS200651 — hosting-level clustering.cert.subject.cn:mail-login.example.com and cert.issuer.agn:Let's Encrypt — certificate pivots.hash:2a3f9c... — identical DOM or resource files across sites.filename:logo-office365.png — specific resource filenames in scan results.domain:*.secure-portal-login.top — wildcard domain matching.Combine these with filters like verdict:malicious, tags such as phishing, and date:>2024-06-01, and you’re no longer chasing URLs—you’re querying an attacker’s build system.
Submit the URL through the web UI or the POST /api/v1/scan/ endpoint. urlscan’s fetchers run in controlled infrastructure—they see the page so you don’t have to, eliminating credential-capture risk from your own endpoints. Two rules:
https://portal.example.com/reset?token=abc123 burns the token and leaks your brand into a public database."visibility": "private" in the API or the unlisted option in the UI) when handling targeted lures against your organization or clients.This aligns with CISA’s phishing guidance—analyze suspicious messages in isolation, never from your production environment. CISA’s #StopRansomware and phishing advisories at cisa.gov consistently stress isolated analysis as baseline hygiene.
Phishing kits are recycled aggressively. The same actor deploying a Microsoft 365 credential harvester across forty domains ships identical artifacts every time—and identical artifacts produce identical hashes.
Your pivot chain:
hash:<dom_hash>. Sibling sites rendering byte-identical pages are running the same kit build.background.min.js or the kit’s config JSON catches variants where the HTML differs but the payload doesn’t.filename:office-icon.png or distinctive paths like /auth/verify/step2.html reveal kit templates that get re-hosted with cosmetic HTML changes.This is the same asset-fingerprinting logic OWASP documents in its application security testing guide (owasp.org): predictable artifacts enable enumeration. You’re simply pointing that principle outward at the attacker.
With sibling domains identified, cluster their hosting. ip: queries reveal shared servers; asn: queries reveal shared networks.
Read the results critically:
page.domains instead. This operator captures every domain observed in a page’s resources, links, and redirects, exposing backend call-home domains and redirect targets that the primary domain alone would never reveal.The distinction between page.domain: (the scanned page’s registered domain) and page.domains: (all domains observed in the page) is the difference between querying one site and querying everything a site touches. For campaign mapping, page.domains is your workhorse.
Attackers automate certificate issuance, and automation leaves fingerprints.
cert.subject.cn:*.secure-login-*.top to find domains sharing naming conventions baked into a kit’s provisioning script.cert.issuer.agn: combined with date windows catches domains provisioned through the same ACME account in the same burst. Let’s Encrypt’s certificate transparency logs—already indexed by urlscan via CT—mean provisioning runs of 20+ domains in one hour are trivially visible.cert.subject or cert.fingerprint hashes match across the entire cluster.Certificate pivots are particularly powerful against fast-flux phishing because domains rotate but issuance behavior doesn’t.
Sort your accumulated results by scan date. A campaign timeline emerges:
This is the material that turns a domain list into a threat actor profile suitable for sharing via MISP or an ISAC.
Manual pivots don’t scale across a brand-protection program. urlscan’s API exposes everything. Search:
curl -H "API-Key: $URLSCAN_KEY" \
"https://urlscan.io/api/v1/search/?q=page.domain%3A%22secure-login-verify.top%22&size=100"
Submit a private scan:
curl -X POST https://urlscan.io/api/v1/scan/ \
-H "API-Key: $URLSCAN_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://suspicious-domain.top/login","visibility":"private"}'
A minimal Python loop for campaign tracking:
import requests
HEADERS = {"API-Key": "YOUR_KEY"}
q = 'filename:verify-office.html AND verdict:malicious'
r = requests.get("https://urlscan.io/api/v1/search/",
headers=HEADERS, params={"q": q, "size": 100})
for res in r.json()["results"]:
print(res["page"]["domain"], res["page"]["ip"], res["task"]["time"])
Rate limits are tier-based—free accounts get modest search quotas, paid tiers unlock bulk and live scanning. Poll the scan result endpoint (/api/v1/result/<uuid>/) after submission; scans complete in seconds to a minute. Chain the search API into your SIEM or MISP instance and new kit deployments alert themselves.
Intelligence that doesn’t reach a registrar is a hobby. Package your findings:
Cite specific scan URLs in your abuse reports. Abuse desks act faster on evidence with screenshots and HTTP transaction logs than on bare domain lists.
Reproduce the workflow in a sandboxed exercise:
https://microsoft-verify-account.[TLD]/login.html (use a known-dead training domain or a historical scan from urlscan’s public database—don’t fabricate or host phishing content).hash:<dom_hash> → note sibling domains → ip:<ip> → asn:<asn> → page.domains: on one sibling to find call-home infrastructure.cert.subject.cn: wildcard matching the naming pattern and compare issuance dates.If your pivot chain produces five or more linked domains from one starting hash, you’ve internalized the methodology.
Yes, for public URLs. urlscan.io sandboxes the fetching in its own infrastructure, so your systems never touch the site. Use private scans for sensitive or targeted lures to avoid exposing your investigation in public search results.
Pivot on hash: of the DOM or individual resource files—identical kit builds produce identical hashes. Combine with page.domains: to capture related infrastructure and cert.subject lookalike patterns for domains the kit redeploys with cosmetic changes.
Public search via the web UI has limits, but the API requires a key. A free API key unlocks /api/v1/search/ with rate limits based on your account tier; paid tiers add higher quotas and bulk capabilities.
Yes. Screenshots, timestamps, HTTP transaction logs, and infrastructure data constitute solid supporting evidence for abuse reports to registrars, hosting providers, and CERTs. Reference permanent scan URLs directly in your reports.
page.domain: matches the registered domain of the scanned page itself. page.domains: captures all domains observed in the page’s resources, links, and redirects—making it essential for uncovering backend and call-home infrastructure during campaign mapping.