Skip to content
Pwnversity
RECON-MALTEGOintermediate · 5 min · upd. 2026-10

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.

  • 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.
  1. You start with a seed entity (the target domain).
  2. You run transforms: domain → subdomains, DNS, emails, WHOIS.
  3. On the results, more transforms: email → person → accounts → breaches.
  4. The graph reveals relationships: “this domain and that one share a registrant.”
  5. You pivot on the most promising nodes.

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.

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.”

  • 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 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).

A well-built graph directly feeds the next phases:

  • 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).

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.

  • 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.