Maltego, SpiderFoot, recon-ng and theHarvester compared
Four well-known OSINT frameworks do different jobs. What Maltego, SpiderFoot, recon-ng and theHarvester each collect, how they work, what they cost in set-up and API keys, where they mislead, and how to choose one for the question in front of you.
· 8 min read

Every introduction to OSINT lists the same four frameworks, usually without saying what distinguishes them. They are not interchangeable. One is a visual analysis tool, one is a broad automated scanner, one is a modular command-line workbench and one is a quick collector of emails and host names.
This guide compares them by what they are for, so you can pick the right one, and explains the limits they share. None of them replaces the judgement about what a result means. If you came looking for the website that maps tools by data type, that is the OSINT Framework directory, a different thing.
At a glance
Maltego | SpiderFoot | recon-ng | theHarvester | |
|---|---|---|---|---|
Type | Graph-based link analysis | Automated scanner with a web interface | Modular command-line framework | Single-purpose command-line collector |
Best at | Visualising and exploring relationships | Broad, hands-off collection on one target | Controlled, repeatable collection step by step | Fast first look at a domain's emails and hosts |
Interface | Desktop application | Browser | Interactive console | Command line |
Licence | Commercial, with a limited free edition | Open source | Open source | Open source |
Learning curve | Moderate | Low | Moderate | Low |
Output | Interactive graph, exports | Tables, graph, CSV and JSON | Local database, reports | Text, JSON, XML |
Typical starting point | Any entity: person, domain, company, alias | Domain, IP, email, name, username | Domain, company, contact | Domain |
All four rely on outside data sources. With no API keys configured, each still works, at reduced depth.
Maltego
Maltego is an analysis environment. You place an entity on a canvas, such as a domain, a person, an email address or a company, and run transforms on it. Each transform queries a data source and adds the results as new entities linked to the first. You then run further transforms on those, and a graph grows.
What it is good for:
Seeing structure. Which domains share a name server, which accounts share an email address, which companies share a director. Patterns that are invisible in a spreadsheet show up as clusters on a graph.
Exploring interactively. You decide at each step what to expand, which keeps the graph relevant.
Combining sources. Many data vendors publish transform sets, alongside free ones for DNS, certificates and similar public data.
Presenting findings. A clear graph communicates a network to a reader faster than prose.
Manual link charting. You can add entities and links by hand, which makes it useful as a drawing tool for evidence you gathered elsewhere.
What to know:
It is a commercial product. The free edition has limits on results per transform and on which data sources are available, and the licensing terms have changed over the years. Check the current editions before planning around it.
Graphs grow out of control. Running every transform on every entity produces thousands of nodes and no insight. Expand selectively.
A line is not a fact. A link on the canvas means a source returned a result. Its meaning and reliability are yours to assess.
Transforms send your queries to third parties, including the vendor's servers in many cases.
SpiderFoot
SpiderFoot automates breadth. You give it a target, choose a scan profile, and it runs through a large library of modules, more than two hundred, feeding each module's output into the others. A domain yields host names, which yield IP addresses, which yield other domains on those addresses, and so on.
git clone https://github.com/smicallef/spiderfoot.git
cd spiderfoot
pip install -r requirements.txt
python3 sf.py -l 127.0.0.1:5001Then open the address in a browser, start a new scan and pick a use case. The "Passive" profile restricts the scan to modules that do not touch the target.
What it is good for:
A broad sweep with little effort. Start it and return to categorised results.
Finding things you did not think to look for. Leaked addresses, lookalike domains, exposed files, related names.
Attack surface review of your own organisation.
Correlation rules that flag notable combinations in the results.
What to know:
Scans sprawl. By following every lead, a scan drifts from your target to its hosting provider's other customers. Much of the output is unrelated.
Volume is not relevance. Thousands of rows need triage.
Check the scan profile. The fuller profiles include modules that actively probe the target. Use the passive profile unless you have authority to test.
Many modules need API keys to return anything.
Development of the open-source edition has slowed since the hosted version was acquired by a commercial firm, so some modules may be out of date.
recon-ng
recon-ng is a console framework modelled on penetration-testing tools. Nothing happens until you load a module, set its input and run it. Results go into a local database, organised in workspaces, and later modules read from that database.
recon-ng
[recon-ng][default] > marketplace install recon/domains-hosts/hackertarget
[recon-ng][default] > workspaces create example
[recon-ng][example] > modules load recon/domains-hosts/hackertarget
[recon-ng][example][hackertarget] > options set SOURCE example.com
[recon-ng][example][hackertarget] > run
[recon-ng][example][hackertarget] > show hostsModule names describe what they convert: domains-hosts takes domains and returns hosts, hosts-hosts enriches hosts, companies-contacts takes a company and returns people.
What it is good for:
Control. You know exactly which sources were queried, in what order.
Repeatability. Commands can be scripted, and a workspace is a self-contained record of one investigation.
Building a structured data set of hosts, contacts, credentials and locations that grows as you work.
Reporting modules that export the workspace.
What to know:
It does nothing automatically. That is the point, and it means you need to know which modules to chain.
Module quality varies. Modules depend on outside services that change, and some stop working.
API keys are needed for most of the richer modules, and are managed inside the tool.
theHarvester
theHarvester does one thing: given a domain, it asks a list of public sources for email addresses, host names and related details.
theHarvester -d example.com -b crtsh,duckduckgo,rapiddns -l 200 -f results-b chooses the sources, -l limits results from each, and -f writes output files. The list of available sources changes between versions, so run theHarvester -h to see the current ones.
What it is good for:
A first look. In a minute you have a list of subdomains and whatever email addresses are publicly indexed.
Seeing an organisation's email format, from a handful of real addresses.
A quick check of your own organisation's exposure.
Feeding other tools. Its output is a starting list for deeper work.
What to know:
It is shallow by design. Dedicated tools find more subdomains. See subdomain enumeration.
Search engine sources are fragile, because search engines block automated queries.
Some options are active, such as DNS brute forcing. Leave them off without authority.
Email results include junk: addresses from documents, examples and unrelated domains.
Which one?
If you need to | Use |
|---|---|
Understand and show how entities connect | Maltego |
Sweep widely around one target and see what turns up | SpiderFoot, passive profile |
Run a defined set of lookups you can repeat and audit | recon-ng |
Get a quick list of emails and hosts for a domain | theHarvester |
Enumerate subdomains thoroughly | Dedicated tools. See subdomain enumeration |
Check a username across sites | Dedicated tools. See username OSINT |
Do something specific, many times | A short script. See automating OSINT with Python |
They also combine. A common pattern is a quick collection with theHarvester or SpiderFoot, verification of what matters by hand, then Maltego to chart the confirmed links.
For a wider list of tools by task, see our guide to free OSINT tools.
Limits they all share
Tool output is not a source
A framework reports what some service returned. The reliability of a result is the reliability of that underlying service and the logic that linked it to your target. In a report, cite the source and record the tool as the method. See our OSINT report template.
They produce false links
Automated pivoting follows any connection: two domains on the same shared hosting address, a common username, an email address that merely appears on the same page. Frameworks cannot tell a meaningful link from a coincidence. See OSINT pivoting for how to grade links.
Your queries go somewhere
Every module sends your target's identifiers to a third party, and often to several. Before a sensitive investigation, check which services a tool will contact. See OPSEC for OSINT.
Passive and active are mixed together
All of these include options that touch the target directly: port scans, DNS brute forcing, web crawling. Know which mode you are in. Active techniques need the owner's permission. See our overview of whether OSINT is legal.
API keys shape the results
Two analysts running the same tool with different keys get different answers. Record which sources were enabled.
They age quickly
Sources shut down, change their terms and break modules. Test a tool on a target where you know the answer before trusting an empty result.
They collect more than you need
A broad scan gathers personal data about staff and unrelated third parties. Keep what answers the question, and delete the rest.
Do you need a framework at all?
Often not. For a single question, such as who registered a domain or whether a username exists elsewhere, a direct lookup is faster and clearer. Frameworks earn their place when there are many entities, when the same collection will be repeated, or when relationships need to be seen and shown.
People learning the field are better served by doing the lookups by hand first. Once you understand what a certificate log or a registration record contains, you can judge what a tool is doing with it, and notice when it is wrong. Our roadmap for learning OSINT puts tools in that order.
Frequently asked questions
Is Maltego free?
There is a free edition with restrictions on result volume and available data sources. Full use requires a paid licence. Editions and terms change, so check the vendor's current offering.
What is the best OSINT framework for beginners?
SpiderFoot is the easiest to start with, because it runs from a browser and needs little configuration. theHarvester is the simplest command-line tool.
What is the difference between Maltego and SpiderFoot?
Maltego is an interactive analysis tool in which you choose each step and view results as a graph. SpiderFoot runs a large set of lookups automatically and presents the collected results.
Do these tools need API keys?
They run without them, using open sources, but many modules return little or nothing until keys for the underlying services are added. Many of those services have free tiers.
Are OSINT frameworks legal to use?
Using them for passive collection from public sources is lawful. Options that scan or probe a target's systems need the owner's permission, and personal data collected is subject to data protection law.





