OSINT Techniques: Chapter 8 - Email Addresses
An exhaustive breakdown of Chapter 8 of Michael Bazzell's 'Open Source Intelligence Techniques', analyzing direct SMTP mailbox verification, Gravatar MD5 hashing, Holehe registration enumeration, and breach database intelligence.
Welcome to our eighth chapter analysis covering “Open Source Intelligence Techniques: Resources for Searching and Analyzing Online Information” (Sixth Edition) by Michael Bazzell.
Of all online identifiers, the email address is the ultimate master key of digital identity. Every online service—from banking portals and government registries to social media profiles and gaming forums—requires a verified email address for account creation and password recovery.
In Chapter 8: Email Addresses, Bazzell exposes the mechanics of email reconnaissance. Finding an email address is only the first step; the true investigative power lies in mailbox verification, hashing deconstruction, automated registration enumeration across hundreds of platforms, and breach database correlation. In this comprehensive guide, we dissect raw SMTP socket handshakes, Gravatar MD5 exploitation, Holehe multi-platform enumeration, and breach intelligence tradecraft.
Key Takeaways
- The SMTP Socket Handshake: Before sending an email, an investigator can verify if a target mailbox exists on an enterprise mail server by initiating a direct TCP connection to port 25 and analyzing the server’s
RCPT TOresponse code. - Gravatar MD5 Reversal & Profile Exposure: Automattic’s Gravatar service generates profile image hashes using standard MD5 hashing of lowercase email addresses. Querying the public Gravatar API exposes user names, locations, and linked social accounts.
- Service Enumeration via Holehe: When registering an account on a web service, the site indicates whether an email address is already in use. Tools like Holehe exploit these password-reset and registration endpoints across 120+ platforms simultaneously without triggering user notifications.
- Breach Database Correlation: Querying compromised credential databases (DeHashed, LeakCheck, HaveIBeenPwned) links email addresses to cleartext passwords, password hashes, physical addresses, and IP logs from historic leaks.
Architectural & Investigative Workflow
The following flowchart outlines the end-to-end email reconnaissance and de-anonymization lifecycle:
flowchart TD
subgraph Seed_Email["Phase 1: Seed Email & Validation"]
Email["Target Email Address (e.g. jdoe@example.com)"] --> MX["Resolve Target MX Records (dig / dnsutils)"]
MX --> SMTP["Direct SMTP Socket Handshake (HELO -> MAIL FROM -> RCPT TO)"]
SMTP --> Validated{"Mailbox Validated?"}
Validated -- Yes --> Gravatar["Gravatar MD5 Hash Computation (md5(email))"]
Validated -- Catch-All / No --> AltPermutations["Generate Corporate Email Permutations"]
end
subgraph Platform_Enumeration["Phase 2: Multi-Platform Registration Discovery"]
Gravatar --> HoleheScan["Holehe Automated Scan (120+ Web Services)"]
HoleheScan --> ActivePlatforms["Identify Registered Accounts (Amazon, Spotify, Twitter, Adobe, etc.)"]
end
subgraph Breach_Correlation["Phase 3: Breach Intelligence & Password Pivots"]
Email --> BreachQuery["Query Breach Databases (DeHashed / LeakCheck)"]
BreachQuery --> Passwords["Extract Historic Passwords, IP Addresses, Hashes"]
Passwords --> PasswordPivot["Pivot on Unique Passwords to Uncover Secondary Accounts"]
end
subgraph Target_De_Anonymization["Phase 4: Synthesis"]
ActivePlatforms --> Identity["Complete Digital Profile & Physical Attribution"]
PasswordPivot --> Identity
end
Technical Breakdown & Investigative Mechanics
1. Direct SMTP Mailbox Verification: The RCPT TO Handshake
Rather than relying on third-party commercial verification websites that sell or log queries, an analyst can query the target’s Mail Exchanger (MX) server directly via command line:
1
2
3
4
# Step 1: Discover Mail Exchanger (MX) records for the target domain
dig +short mx target-company.com
# Example output: 10 mail.target-company.com
Executing the SMTP Handshake via Netcat / Telnet:
1
2
3
4
5
6
7
8
$ nc mail.target-company.com 25
220 mail.target-company.com ESMTP Postfix
HELO mail.investigation-gateway.org
250 mail.target-company.com
MAIL FROM:<probe@investigation-gateway.org>
250 2.1.0 Ok
RCPT TO:<john.smith@target-company.com>
250 2.1.5 Ok recipient john.smith@target-company.com
Interpreting Server Response Codes:
250 2.1.5 Ok: The mailbox exists and is actively receiving mail.550 5.1.1 User unknown: The mailbox does not exist on this server.Catch-All Server: If the server returns250 Okfor a random string likenonexistent98721389@target-company.com, the domain is configured as a Catch-All, rendering SMTP validation inconclusive.
2. Gravatar MD5 Exploitation
Gravatar (Globally Recognized Avatar) powers profile pictures for millions of websites, WordPress blogs, and comment platforms. Gravatar links profiles to the MD5 hash of the user’s lowercase email:
1
2
3
4
5
6
# Generating the MD5 hash of a target email
echo -n "target.user@gmail.com" | tr '[:upper:]' '[:lower:]' | md5sum | awk '{print $1}'
# Output: e4c0e793a74136e2f18379c94b7c1a84
# Querying the Gravatar REST API for user profile JSON data
curl -s "https://www.gravatar.com/e4c0e793a74136e2f18379c94b7c1a84.json" | jq .
What the Gravatar JSON Object Returns:
- Full real name and display names
- Verified personal website URLs and blogs
- Linked cryptocurrency wallet addresses (Bitcoin, Ethereum)
- Phone numbers and physical home city locations
- High-resolution uncompressed profile photos
3. Automated Registration Discovery via Holehe
Holehe is one of the premier open-source tools for email intelligence. It checks if an email is attached to an account on over 120 services (including Amazon, Twitter, Instagram, GitHub, Deliveroo, Pornhub, Discord, and Adobe) by inspecting password-recovery error hints:
1
2
3
4
5
# Installing Holehe via Pipx
pipx install holehe
# Running an exhaustive check against a target email
holehe target.user@gmail.com
Advantages of Holehe:
- Silent Enumeration: Does not send a password reset email or alert the target on 95% of tested platforms.
- Account De-Anonymization: Discovering that an anonymous enterprise email is registered on Deliveroo or Duolingo confirms personal consumer usage, providing strong pivots for residential location analysis.
4. Breach Database Pivoting & Password Intelligence
When commercial databases suffer breaches, user credentials leak onto underground breach forums. Intelligence platforms like DeHashed and LeakCheck index billions of breached records.
The Password Pivot Technique:
- Query target email in breach records:
1 2
Email: target_investigator@protonmail.com Discovered Password: Winter2022!#SecretPass
- Pivot by searching for the discovered password string:
1
Password: Winter2022!#SecretPass
- The query returns secondary email addresses, usernames, and real names used by the target on other platforms where they reused that identical password.
Real-World Case Scenario
Case Study: Unmasking a State-Sponsored Phishing Operator
An adversary launched a spear-phishing campaign against a diplomatic agency using a spoofed Gmail address:
press-office-update@gmail.com.
- An analyst calculated the MD5 hash of the email address and queried Gravatar: no profile was found.
- The analyst ran the email through Holehe: the scan returned positive registrations on GitHub, Chess.com, and Adobe Creative Cloud.
- Inspecting the public Chess.com account associated with the email revealed the profile handle:
vlad_tactics88.- Searching for
vlad_tactics88on GitHub uncovered a personal repository containing Python network scanning tools. The Git commit log contained the developer’s real name and secondary institutional university email in Moscow, completely de-anonymizing the threat actor.
Defensive Countermeasures & OpSec Recommendations
For privacy-conscious individuals and enterprise security teams:
- Deploy Email Aliasing Services: Use services like SimpleLogin, AnonAddy, or Apple Hide My Email to generate unique, disposable email forwarding aliases for every online service.
- Never Reuse Passwords Across Accounts: Enforce enterprise-wide password managers (1Password, Bitwarden) with unique 20+ character random passphrases to prevent credential-stuffing and breach correlation pivots.
- Audit Gravatar Exposure: Check personal and corporate email addresses at
gravatar.comand disable public profile indexing or delete unused accounts.
Conclusion & Next Steps
Chapter 8 proves that an email address is far more than a messaging endpoint—it is the central connecting node of an individual’s digital presence. By leveraging SMTP socket checks, Gravatar MD5 reversing, and Holehe multi-platform probing, an analyst can map an entire digital footprint from a single string.
In Chapter 9: Usernames, we expand our reconnaissance to pseudonyms, mastering cross-platform handle enumeration, false-positive elimination, and automated profile clustering.
Practical Email Intelligence & Infrastructure Verification Cheat-Sheet
| Intelligence Phase | Tool / Command Example | Actionable Output |
|---|---|---|
| Account Registration Probe | holehe target@domain.com |
Probes 120+ web services in parallel to confirm if target email is registered |
| Google Workspace Recon | ghunt email target@gmail.com |
Dumps Google ID, associated Google Maps reviews, photos, and calendar schedule |
| SMTP Mailbox Validation | swaks --to target@domain.com --from test@org.com --server mail.domain.com |
Executes VRFY / RCPT TO handshakes to confirm if the mailbox physically exists |
| Breach History Query | curl -s 'https://haveibeenpwned.com/api/v3/breachedaccount/<email>' -H 'hibp-api-key: <KEY>' |
Returns historical data breaches containing target credentials and account details |
| DNS Mail Routing Triage | dig +short domain.com MX && dig +short domain.com TXT |
Enumerates mail gateway hosts, SPF authorized IP ranges, and DMARC enforcement |
Authoritative References & Verified Investigative Sources
- Michael Bazzell, IntelTechniques: Email Search Techniques and Reverse Lookup Engines. https://inteltechniques.com/book1.html.
- Holehe Project: Email Account Registration Discovery Engine. https://github.com/megadose/holehe.
- GHunt Project: Google Account OSINT Suite Documentation. https://github.com/mxrch/GHunt.
- Have I Been Pwned: Troy Hunt Breach Database & API Architecture. https://haveibeenpwned.com/API/v3.
- IETF RFC 5321: Simple Mail Transfer Protocol (SMTP) Specifications. https://datatracker.ietf.org/doc/html/rfc5321.
Author: Abdulrahman M. Fathi (0x3bdo) • Cyber Security Engineer & Penetration Tester