PANDORASEARCH

Blog · Domain and IP recon

How to use SpiderFoot: installation, web UI and CLI commands

SpiderFoot is an open-source tool that automates open-source intelligence gathering. You give it a target (a domain, an IP, an email address, a username, a phone number or a name, among others) and it runs more than 200 modules that feed each other: what one finds, such as a subdomain, becomes the starting point for others. You drive it from a web interface that runs on your machine, or entirely from the command line.

This guide follows the README of the official repository, the code of its web interface and the package page on Kali Linux, with the help output of its two commands, as we read them on 18 November 2026. It covers how to install it, how to run a first scan from the web UI and from the command line, how to stick to passive modules and what to do with the results. At the end we cover which part of that work Pandora, the tool we build, does in the browser.

The short answer

  • What it is. An OSINT automation tool written in Python, MIT-licensed, with more than 200 modules, most of which do not require API keys according to its README.
  • How to install it. On Kali, sudo apt install spiderfoot. On any other system, download the release from GitHub and install its dependencies with pip.
  • How to use it. spiderfoot -l 127.0.0.1:5001 starts the web UI, and in the browser you create a scan with a target and a use case. From the command line, spiderfoot -s <target> -u passive.
  • Passive or active. It depends on the modules you choose. The Passive use case is the one that does not touch the target.
  • Its status. The latest release is 4.0, from April 2022, and the latest change on the main branch is from November 2023.

Before you start: the state of the project

Worth knowing before you install it. The latest release on GitHub is 4.0, from 7 April 2022, and the latest change on the repository's main branch is from 5 November 2023. The README points to spiderfoot.net for documentation, but that address now redirects to Intel 471's website, and the documentation page it leads to does not exist. The README also presents SpiderFoot HX, a commercial cloud version; if you are interested, ask directly what is on offer today.

In practice, you can still install and use SpiderFoot, and its help output (-h) and README are enough to get started. What you do not have is anyone guaranteeing fixes: external sources change their APIs over time, and a module nobody updates can stop returning data. Check each scan's log to see which modules fail.

Passive or active: the use cases

This is the most important thing to understand about SpiderFoot, because not all of its modules just query sources that already hold the data: some crawl the target's website, and others call external tools such as Nmap, DNSTwist, WhatWeb or CMSeeK, which you install separately (dnstwist also works on its own: see how to use dnstwist). When you create a scan you can pick modules one by one, by the type of data you want, or by use case. According to the web interface, there are four use cases:

  • All. "Anything and everything about the target": it enables every module, and the interface warns that it is slow.
  • Footprint. To understand what the target exposes to the internet, its network perimeter and associated identities, with a lot of web crawling and search engine use.
  • Investigate. For when you suspect the target is malicious: some basic footprinting plus queries to blacklists and other reputation sources.
  • Passive. For when you do not want the target to suspect anything: only modules that do not touch the target or its affiliates are enabled.

The rule of thumb: Passive to learn what is published about someone else's domain; Footprint, Investigate or All only on your own infrastructure or within an engagement with written permission. The README frames it the same way: offensively, for reconnaissance in a red team exercise or penetration test, and defensively, to find out what you or your organisation might have exposed on the internet.

How to install it

On Kali Linux. The package is called spiderfoot, is at version 4.0 and installs with sudo apt install spiderfoot. It brings two commands: spiderfoot, which starts the web server or runs scans from the command line, and spiderfoot-cli, a command-line client that connects to that server. Kali's page does not say whether it comes preinstalled.

From GitHub, the release. The README asks for Python 3.7 or later and recommends the packaged release over the main branch, which may carry modules that are not fully tested:

wget https://github.com/smicallef/spiderfoot/archive/v4.0.tar.gz
tar zxvf v4.0.tar.gz
cd spiderfoot-4.0
pip3 install -r requirements.txt
python3 ./sf.py -l 127.0.0.1:5001

On recent versions of Debian and Ubuntu, pip refuses to install packages into the system Python. Create a virtual environment inside the folder first, with python3 -m venv venv and . venv/bin/activate, and then run the pip3 install.

With Docker. The repository includes a Dockerfile, but the README does not give the commands to use it.

On Windows or Termux. The README mentions neither, and gives no instructions of its own for them.

Your first scan, from the web UI

  1. Start the server. On Kali, spiderfoot -l 127.0.0.1:5001; from source, python3 ./sf.py -l 127.0.0.1:5001. You choose the address and port.
  2. Open your browser at http://127.0.0.1:5001.
  3. Create a scan with New Scan. It asks for a scan name and the target: a domain, a hostname, an IP, a subnet, an ASN, an email address, a phone number, a username, a person's name or a Bitcoin address.
  4. Choose the modules. There are three tabs: by use case (By Use Case), by the data you want (By Required Data) or module by module (By Module). To start on someone else's domain, choose Passive.
  5. Run it and wait. The scan page has six tabs: Summary, Correlations, Browse (results by data type), Graph, Scan Settings and Log.

Scans are stored in an SQLite database, spiderfoot.db, in the ~/.spiderfoot/ folder of your user, unless you change it with the SPIDERFOOT_DATA environment variable. API keys for the modules that need them are set in the interface's Settings page, which has buttons to export and import them.

A note on access. The interface only asks for a username and password if the file ~/.spiderfoot/passwd exists, with one username:password line per user. Without it, anyone who can reach the address it listens on can use it. That is why the examples listen on 127.0.0.1, which is only reachable from your own machine.

From the command line

The same command runs scans without the web UI. On Kali it is spiderfoot; from source, python3 ./sf.py, with the same options:

spiderfoot -M
spiderfoot -T
spiderfoot -s example.com -u passive -o csv > example-passive.csv
spiderfoot -s example.com -m sfp_crt -o csv
spiderfoot -s example.com -t EMAILADDR -x -o csv

The first two list the available modules and data types. The third runs a passive scan on the domain and saves the output as CSV. The fourth uses a single module, the one that queries crt.sh certificates. The fifth asks for one data type, email addresses (EMAILADDR), in strict mode (-x): only modules that can read the target directly and return that type are enabled.

Three details worth knowing, because they change what runs:

  • No modules means all modules. If you give a target with -s but choose no modules (-m), types (-t) or use case (-u), SpiderFoot warns that it will enable every module, including those that touch the target.
  • -u adds, it does not filter. The use case modules are added to the ones you pick with -m or -t. -u passive -t EMAILADDR does not give you "only the passive modules that return emails", but the passive modules plus every module that returns emails.
  • -x has its own rules. Strict mode only works with -t, cannot be combined with -m and drops any modules you chose with -u.

The output options, in a table:

OptionWhat it does
-o tab, csv or jsonThe output format; tab-separated by default
-rIncludes the source data of each finding in tab or CSV output
-F <types>Shows only the data types you list
-fFilters out the types you did not request with -t
-HDrops the field headers
-qTurns off logging; the help warns that it also hides errors
-max-threads <n>How many modules run at once
-C <scanID>Runs the correlation rules against a finished scan

The command-line client. spiderfoot-cli is something else: an interactive shell that connects to the web server, by default at http://127.0.0.1:5001, and keeps its command history in ~/.spiderfoot_history. If the server has a password, its help recommends passing it in a file with -P so it does not end up in your shell history.

What to do with the results

Export them. From the scan page you can export to CSV or Excel; from the command line, with -o csv or -o json. The README also mentions export to GEXF, the graph format Gephi opens. If you want to continue the analysis in Maltego, its import wizard reads the CSV: we cover that in Maltego vs SpiderFoot.

Look at the correlations. The README describes a YAML-configurable correlation engine with 37 predefined rules that flags patterns in the results. It is a good place to start reading a large scan.

Query the database. Since everything sits in SQLite, you can run your own queries against spiderfoot.db.

Check them. Each finding is what its module's source says, and that is not always current: a subdomain in a certificate may no longer exist, and an email address published years ago may be gone. Before you assert anything, corroborate it with another independent source. The method is in our guide to domain and IP reconnaissance, and if you want to know who is behind the domain, in how to find who owns a domain. For collecting a domain's emails and subdomains, another command-line tool with passive and active sources kept apart is theHarvester: we explain it in how to use theHarvester, and compare it with SpiderFoot and recon-ng in SpiderFoot vs theHarvester vs recon-ng.

The chain of sources, in the browser: Pandora

Pandora is the tool we build: an OSINT link analysis search engine that runs in the browser, with nothing to install. It takes SpiderFoot's idea of an automatic chain of sources, and includes some of its modules, adapted under its MIT licence, as we note in the site's credits.

How it works. You enter a data point (a domain, an IP, a URL, an email address, a username, a phone number, a name or a Discord ID) or upload a photo or a document, and choose the depth: quick runs the automatic sources on that data point, and deep takes another pass over the usernames, emails, domains and IPs that turn up. What it finds is drawn on a graph that grows live; double-click an entity to run its automatic transforms, or right-click to choose any of them.

A case in Pandora: from the seed email come the username, the accounts, a shared SSH key, a breach and the domain's infrastructure, each link with its source. Example data. Try it with your own data

Passive by design. There is no use case to choose, because Pandora does not scan anything: it reads what other sources have already observed. Open ports come from what Shodan already publishes in InternetDB, no query alerts the subject of the investigation, and anti-bot protections and access controls are never bypassed. If you need to scan your own attack surface, SpiderFoot is the tool, with authorisation.

With the source of every finding. Each data point keeps the transform and the source that produced it, every query goes into the audit log, and the same case reads in five views: graph, map, timeline, dossier and table. It exports to JSON, CSV, GraphML, a PNG image of the graph and a printable report.

What it costs. Each transform uses credits and plans renew them every period; prices are on the pricing page. A free account comes with one trial search, with the findings masked: you see what kind of findings turn up and how many, but not which ones, until you choose a plan. If you are looking for other tools like SpiderFoot, we compare them in our SpiderFoot alternatives, and the closest console framework, module by module, in how to use recon-ng.

SpiderFoot is legal, and what decides it is what you point it at. Modules that contact the target, and especially those that call scanners such as Nmap, are only for your own infrastructure or with written permission: scanning other people's systems without authorisation can be a criminal offence. And even if the scan is passive, the email addresses, usernames and names of people it collects are personal data: you need a legitimate purpose and a lawful basis under the GDPR or its local equivalent, and you keep no more than the engagement needs. Our article on OSINT and the GDPR covers this in detail.

This article is not legal advice.

Frequently asked questions

How do you use SpiderFoot?

Start its web server with spiderfoot -l 127.0.0.1:5001 (on Kali) or python3 ./sf.py -l 127.0.0.1:5001 (from source), open that address in your browser and create a scan with a name, a target and the modules, which you can pick by use case. It also runs entirely from the command line, with -s for the target and -u, -t or -m for the modules.

How do you open SpiderFoot in Kali Linux?

Install it with sudo apt install spiderfoot, which brings version 4.0 and two commands: spiderfoot, which starts the web server or runs scans from the command line, and spiderfoot-cli, a command-line client that connects to the server. Run spiderfoot -l 127.0.0.1:5001 and point your browser at that address to get the web UI.

Is SpiderFoot passive?

It depends on the modules. The Passive use case enables only the modules that, according to SpiderFoot, do not touch the target. The Footprint, Investigate and All use cases, and a command-line scan with no modules chosen, also enable modules that do contact it, such as crawling its website.

Is SpiderFoot still maintained?

The latest release is 4.0, from April 2022, and the latest change on its repository's main branch is from November 2023. You can still install and use it, but if an external source changes its API, nobody guarantees the module will be updated. spiderfoot.net, where its README points for documentation, now redirects to Intel 471's website.

Is there a SpiderFoot online?

The README presents SpiderFoot HX, a commercial, cloud-hosted version. The open-source version runs on your own machine or server. Pandora is another route in the browser, with passive sources.

Is it legal to use SpiderFoot?

The tool is legal; what matters is what you point it at. Modules that contact the target, and especially those that call tools such as Nmap, are only for your own infrastructure or with written permission. And if you collect data about people, you need a legitimate purpose and a lawful basis under the GDPR or its local equivalent.

Tags:toolsSpiderFootreconnaissanceguide