Maltego and OSINT Graphs
After collecting domains, subdomains, IPs, emails, people, and leaks, the challenge is to connect them: to see that this email belongs to this person, who uses this username, who registered this domain, which resolves to this IP, which is in this range. Maltego is the reference tool for building that relationship graph visually, automating collection and surfacing connections that would go unnoticed in a text list.
The model: entities and transforms
Section titled “The model: entities and transforms”- Entity: a node (a domain, an email, a person, an IP, a phone number).
- Transform: an automated query that, from an entity, discovers related ones (from a domain → its subdomains; from an email → which breaches it appears in; from a person → their accounts).
- Graph: the canvas where entities connect based on what the transforms discover.
Typical flow
Section titled “Typical flow”- You start with a seed entity (the target domain).
- You run transforms: domain → subdomains, DNS, emails, WHOIS.
- On the results, more transforms: email → person → accounts → breaches.
- The graph reveals relationships: “this domain and that one share a registrant.”
- You pivot on the most promising nodes.
Transforms and sources
Section titled “Transforms and sources”The built-in transforms and the community Transform Hub cover DNS/WHOIS, Shodan, VirusTotal, Have I Been Pwned, crt.sh, social networks, and PassiveTotal, among others. Many require API keys for those services. Maltego CE (Community Edition) is free with limits; the paid editions expand transforms and result counts.
Graph example (real pivoting)
Section titled “Graph example (real pivoting)”How a seed becomes attack surface by chaining transforms:
flowchart TD
A[domain: corp.com] -->|DNS / crt.sh| B[subdomains: vpn, dev, mail]
A -->|WHOIS| C["registrant: admin@corp.com (+3 domains)"]
A -->|theHarvester| D["emails: first.last@corp.com"]
D -->|HaveIBeenPwned| E["breach with first.last@corp.com"]
E -->|social networks| F[person: reused username]
C --> G[(Expanded surface)]
B --> G
F --> G
The graph’s value is seeing the non-obvious connection: that two domains share a registrant, or that an employee reuses the same username, jumps out on the canvas and is lost in a text list. From “one domain” you get to “an admin with potentially reused credentials and 3 sibling domains no one had inventoried.”
Alternatives and complements
Section titled “Alternatives and complements”- SpiderFoot — automates mass OSINT (200+ modules) with report and graph.
- recon-ng — modular CLI recon framework (a Metasploit for OSINT), scriptable.
- theHarvester — fast collection (emails/hosts) that feeds the graph.
- Maltego CaseFile — manual graphs without transforms, to organize what’s already collected.
SpiderFoot and recon-ng cover much of the same ground automatically; Maltego excels at visualization and interactive pivoting.
When to use a graph
Section titled “When to use a graph”- When recon accumulates so much information that you need to see the relationships (people ↔ emails ↔ domains ↔ infra).
- To present OSINT findings clearly in a report.
- To discover non-obvious connections (domains with the same registrant, shared infra, reused usernames).
From OSINT to vector
Section titled “From OSINT to vector”A well-built graph directly feeds the next phases:
- emails + format → lists for password spraying and phishing.
- sibling domains / shared infra → more surface to enumerate (ASN and IP Ranges, Subdomain Enumeration).
- breaches → credentials to try (credential stuffing) carefully and within scope (Reading the Scope & Rules).
- key people → pretext for social engineering (Pretexting & Target OSINT).
Common mistakes
Section titled “Common mistakes”- Running every transform “brute force”: you burn attributable API keys and generate noise.
- Hoarding personal data without need or legal basis for the test.
- Stopping at a pretty graph without pivoting: the point is to action the promising nodes.
- Not reviewing what each transform does: some touch the target (no longer passive).
Defensive note
Section titled “Defensive note”The same graph an attacker builds can be built by defense over its own organization to see its exposure surface: which domains, emails, leaks, and relationships are publicly visible, and reduce what shouldn’t be. It’s Attack Surface Management with a graph approach.
Testing checklist
Section titled “Testing checklist”- Understand entities, transforms, and the graph.
- Start from a seed (domain) and expand with transforms.
- Connect domains ↔ emails ↔ people ↔ infra.
- Integrate sources (Shodan, HIBP, crt.sh, WHOIS) via transforms.
- Pivot on the most promising nodes.
- Complement with SpiderFoot / recon-ng for automation.
- Export the graph for the report.
- Review the OPSEC of each transform before running it.