πŸ›‘οΈ Methodology Checklist

  • Query registrar info: whois [DOMAIN]
  • Note: registrant org, email, phone, name servers
  • Reverse WHOIS search on registrant email/org for related domains
  • ASN lookup: whois -h whois.radb.net [IP]
  • IP owner: whois [IP] β€” identifies hosting provider or own IP space
  • Check historical WHOIS (DomainTools) for ownership changes
  • Privacy-masked registrations: note for social engineering context

🎯 Operational Context

Use when: First step of any engagement β€” run WHOIS before any other tool. Reveals registrar, nameservers, org, registrant contact, and historical ownership pivots. Think Dumber First: WHOIS takes 3 seconds and gives you the DNS provider (for zone transfer attempts), registrant email (for LinkedIn/OSINT pivot), and registration date (how long they’ve been running). Run it first, always. Skip when: Target uses domain privacy (WhoisGuard/PrivacyProtect) β€” pivot to crt.sh CT log OSINT instead.


⚑ Tactical Cheatsheet

CommandTactical Outcome
whois [DOMAIN]Query WHOIS database for domain registration info
sudo apt update && sudo apt install whois -yInstall whois tool

πŸ”¬ Deep Dive & Workflow

Overview

WHOIS is a query/response protocol for accessing databases of registered internet resources: domain names, IP blocks, and autonomous systems.

Key Record Fields

FieldDescriptionPentest Value
Domain NameTarget domainβ€”
RegistrarWhere domain was registered (GoDaddy, Amazon)Cloud registrar = likely cloud-hosted
Registrant ContactOrganization or person who owns the domainPhishing targets, org names
Administrative ContactPerson responsible for domain managementSocial engineering targets
Technical ContactPerson handling infrastructureTechnical staff identification
Name ServersDNS servers for the domainNext targets for DNS enumeration
DatesCreation, Update, ExpirationOld domains = more legit; new = suspicious

Why It Matters

1. Social Engineering & Phishing Unprotected records leak names, emails, phone numbers of admin/technical staff β†’ targeted phishing pretexts.

2. Infrastructure Mapping Name servers + IP addresses β†’ first view of network infrastructure β†’ potential entry points.

3. Historical Analysis Services like WhoisFreaks show historical records β†’ track ownership changes, past vulnerabilities.

Red Flags (Malicious Domain Detection)

  • Recent registration (days/weeks old)
  • Privacy proxy hiding registrant info
  • Free email services for registrant contacts
  • Registrant addresses in high-cybercrime regions
  • Multiple domains sharing same nameservers β†’ common threat actor infrastructure
  • Registration clusters shortly before major attacks

Key Data to Extract (CPTS)

  • IANA ID β€” registrar identifier
  • Abuse Contacts β€” can identify technical support staff
  • Admin Email β€” domain management contact
  • DNS SEC status β€” unsigned = no DNSSEC protection
  • Name Servers β†’ use for next step: DNS zone transfer attempts

Always combine WHOIS with DNS enumeration, CT logs, and Shodan for a complete picture.


πŸ› οΈ Troubleshooting & Edge Cases

ProblemCauseFix
WHOIS returns privacy-protected dataGDPR/domain privacy service activeTry historical WHOIS via viewdns.info or SecurityTrails; check pre-GDPR records
whois command returns nothingWrong TLD handlerUse whois -h whois.iana.org [DOMAIN] to find correct server; or use web-based whois
Registrant data shows reseller not targetDomain registered through registrar resellerCheck Registrant Organization vs Admin Organization fields β€” often differ
WHOIS nameservers don’t match DNS resolversSplit-brain DNS or CDNPerform zone transfer against WHOIS nameservers, not just the live resolvers
Historical WHOIS shows different ownerDomain transferred/soldCheck if old owner infrastructure still referenced β€” could be subdomain takeover risk

πŸ“ Reporting Trigger

Finding Title: Domain Registration Data Enables Targeted Reconnaissance Impact: WHOIS data exposes registrant contact details, hosting provider, and DNS infrastructure that enables targeted spear-phishing, social engineering, and infrastructure-level attacks. Root Cause: Default domain registration settings expose registrant PII. No domain privacy service configured. Recommendation: Enable WHOIS privacy protection on all registered domains. Use a registrar email alias rather than personal/corporate email. Audit domain registrations for consistency across the organization.