Ready-to-use hunting queries for Shodan, Censys, and Netlas — detect C2 servers, RAT panels, phishing kits, and malware infrastructure.
Introduction • Core Concepts • Query Files • Tool References • Contributing
🇹🇷 Türkçe versiyon için tıklayın
This repository provides ready-to-use hunting queries for Shodan, Censys, and Netlas — internet-wide search engines that index exposed services, certificates, and HTTP responses. These queries help security researchers, threat hunters, and SOC teams:
- Detect malicious infrastructure — C2 servers, RAT panels, phishing kits, and malware hosting
- Support threat hunting — Find exposed instances of known tools used in attacks
- Enrich IOCs — Correlate IPs and domains with fingerprint-based queries
- Identify open-source tools — Many C2 frameworks and phishing tools leave distinctive fingerprints (favicon hash, TLS cert, HTML title) that can be searched
The queries target both commercial and open-source tools. Open-source C2 frameworks (Sliver, Mythic, Havoc, Covenant, etc.) and phishing platforms (GoPhish, Evilginx) are particularly detectable because their default configurations produce consistent, searchable fingerprints. Commercial tools like Cobalt Strike also have known JARM signatures and certificate patterns.
A C2 server is a central network service that cyber attackers use to remotely control compromised devices — infected computers, servers, or IoT devices — within a botnet or malware campaign. The C2 receives commands from the attacker and distributes them to infected hosts, while collecting exfiltrated data. Detecting C2 infrastructure is a key goal of threat hunting.
A RAT is malware that gives an attacker covert, remote control over an infected system. It communicates with a C2 server as its command hub. Capabilities typically include keylogging, screen capture, file access, webcam control, and remote command execution. RATs like AsyncRAT, Quasar, and NjRAT often expose identifiable TLS certificate or HTTP signatures that can be searched.
Malicious infrastructure refers to the servers, domains, and network assets that support cyber attacks: C2 servers, phishing panels, malware distribution hosts, credential stealers’ backends, and exploit kits. Hunting for this infrastructure helps disrupt campaigns before they scale and provides IOCs for blocking and incident response.
Phishing tools are platforms used to build and run credential-harvesting campaigns. Examples include GoPhish, Evilginx, and EvilGoPhish. They host fake login pages and capture credentials. Many have distinctive fingerprints (favicon hash, cookies, HTML content) that make them detectable via Shodan, Censys, and Netlas.
Red team tools are frameworks used for adversary simulation, penetration testing, and authorized security assessments. C2 frameworks like Cobalt Strike, Sliver, Mythic, and Havoc are used legitimately by red teams but are also abused by threat actors. Their network and TLS fingerprints are well-documented, making them searchable for both defense (finding exposed instances) and offensive research (understanding detection surfaces).
| File | Content |
|---|---|
| SHODAN_QUERIES.md | Complete Shodan hunting queries |
| CENSYS_QUERIES.md | Complete Censys hunting queries |
| NETLAS_QUERIES.md | Complete Netlas hunting queries |
| ClickFixCampaign-CaseStudies.md | ClickFix social engineering attack analysis |
| TOOLS_REFERENCES.md | All RAT, C2 and tool GitHub links |
| Type | Description | Example |
|---|---|---|
| Favicon Hash | Hash of website icon | http.favicon.hash:803527991 |
| HTTP Header | Server response headers | "X-Havoc: true" |
| TLS Cert | SSL certificate fields | ssl.cert.subject.cn:"AsyncRAT Server" |
| JARM | TLS handshake fingerprint | ssl.jarm:"07d14d16d21d21d..." |
| HTML Title | Page title | http.title:"Mythic" |
| HTML Body | Page content | http.html:"mythic-react" |
Combining multiple fingerprints increases detection accuracy:
Mythic C2:
# Shodan - Title + Certificate
http.title:"Mythic" ssl.cert.subject.o:"Mythic"
# Censys - Combined with same_service
same_service(services.tls.certificates.leaf_data.subject.dn="O=Mythic" AND services.http.response.html_title="Mythic")
# Netlas
http.title:"Mythic" AND certificate.subject.organization:"Mythic"Cobalt Strike:
# JARM + Certificate
ssl.jarm:"2ad2ad16d2ad2ad00042d42d00042ddb04deffa1705e2edc44cae1ed24a4da" ssl.cert.issuer.cn:"jquery.com"
# JARM + HTTP Response
ssl.jarm:"07d14d16d21d21d00042d43d000000aa99ce74e2c6d013c745aa52b5cc042d" "HTTP/1.1 404 Not Found" "Content-Length: 0"GoPhish:
# Favicon + Title + Certificate
http.favicon.hash:803527991 http.title:"Gophish" ssl.cert.issuer.O:"Gophish"
# Cookie + HTML Content
"Set-Cookie: gophish=" http.html:"gophish.css"AsyncRAT:
# Certificate Issuer + Subject
ssl.cert.subject.cn:"AsyncRAT Server" ssl.cert.issuer.cn:"AsyncRAT Server"
# Censys
same_service(services.tls.certificates.leaf_data.issuer_dn="CN=AsyncRAT Server" and services.tls.certificates.leaf_data.subject_dn="CN=AsyncRAT Server")Sliver C2:
# Certificate + JARM
ssl.cert.issuer.cn:"operators" ssl.jarm:"3fd21b20d00000021c43d21b21b43d41226dd5dfc615dd4a96265559485910"- JARM alone is not enough - Always combine with other indicators
- Correlation is important - Use multiple fingerprints instead of a single one
- Legal use - Only use on systems you are authorized to test
- False positives - Not all matches are malicious; verify before reporting
No guarantee of accuracy. These queries do not always return real or malicious content. You may encounter honeypots, infrastructure operated by adversaries who hunt threat hunters, or legitimate red team / authorized pentest infrastructure. Research consistently shows that combining multiple fingerprints — TLS cert + JARM + HTTP headers + HTML content — yields more reliable results than any single indicator. Use these queries as a starting point; validate findings with additional context before drawing conclusions or taking action.
| Resource | URL | API |
|---|---|---|
| ThreatFox | https://threatfox.abuse.ch | curl -X POST -d '{"query":"search_ioc","search_term":"IP"}' https://threatfox-api.abuse.ch/api/v1/ |
| URLhaus | https://urlhaus.abuse.ch | curl https://urlhaus.abuse.ch/api/v1/url/IP/ |
| MalwareBazaar | https://bazaar.abuse.ch | curl -X POST -d 'query=get_taginfo&tag=TAG' https://mb-api.abuse.ch/api/v1/ |
| Feodo Tracker | https://feodotracker.abuse.ch | curl https://feodotracker.abuse.ch/blocklist/ |
| SSL Blacklist | https://sslbl.abuse.ch | Certificate blacklist |
| Resource | URL | GitHub | Usage |
|---|---|---|---|
| Shodan | shodan.io | C2 hunting | |
| Censys | search.censys.io | censys | TLS/Service hunting |
| Netlas | netlas.io | netlas-io | HTTP/TLS hunting |
| URLScan.io | urlscan.io | urlscan | URL analysis |
| VirusTotal | virustotal.com | — | Multi-AV scanning |
| Resource | GitHub |
|---|---|
| C2IntelFeeds | drb-ra/C2IntelFeeds |
| deepdarkCTI | fastfire/deepdarkCTI |
| Maltrail | stamparm/maltrail |
- Shodan Queries: SHODAN_QUERIES.md
- Censys Queries: CENSYS_QUERIES.md
- Netlas Queries: NETLAS_QUERIES.md
- ClickFix Case Study: ClickFixCampaign-CaseStudies.md
- Tool References: TOOLS_REFERENCES.md
Last Updated: 2026-02-01