spiderfoot kali linux install

How to Install and Use SpiderFoot on Kali Linux (2026 Guide)

Quick answer: SpiderFoot is in the official Kali Linux repositories. Run sudo apt update && sudo apt install spiderfoot, start the web UI with spiderfoot -l 127.0.0.1:5001, and open http://127.0.0.1:5001 in Firefox. That is all you need for a working install in 2026.

SpiderFoot is an open-source OSINT (open-source intelligence) automation framework. You give it a target such as a domain, IP address, email address or username, and it runs 200+ modules to collect public data about it: subdomains, DNS records, leaked credentials, social profiles, hosting details, threat-intel hits and much more. It then links everything together so you can see how each finding connects.

Kali Linux is the most popular home for SpiderFoot because the tool is packaged, tested and ready to go. This guide shows you three ways to install it on Kali, how to run your first scan, the most useful commands, how to add API keys, and how to fix common problems.

Key Takeaways

  • Easiest install: sudo apt install spiderfoot from the Kali repositories.
  • Latest code: clone the GitHub repo and install it in a Python virtual environment.
  • Isolated install: run SpiderFoot in Docker if you want no changes to your system Python.
  • Default web UI: port 5001. The Kali package also includes spiderfoot-cli for terminal use.
  • Start passive. Passive scans never touch the target directly and are the safest first step.

What Is SpiderFoot in Kali Linux?

SpiderFoot was created by Steve Micallef and is released under the MIT licence. The current open-source release is version 4.0. It is written in Python 3, stores results in a local SQLite database and gives you both a web interface and a command-line mode. A commercial cloud edition, SpiderFoot HX, was acquired by Intel 471 in 2022; this guide covers the free, open-source version that ships with Kali.

New to the tool? Read what SpiderFoot is and how it automates OSINT first, then come back here. For a full review with pros, cons and alternatives, see our SpiderFoot OSINT tool guide.

Main features

  • 200+ modules covering DNS, WHOIS, search engines, certificate transparency, breach data, dark web (via Tor), social media and threat intelligence.
  • Scan by use case: All, Footprint, Investigate and Passive profiles.
  • Correlation engine with 37 built-in YAML rules that highlight risky findings automatically.
  • Visual graph that maps relationships between data points.
  • Exports to CSV, JSON and GEXF (for Gephi).
  • Web UI and CLI, so it works on desktops, servers and headless boxes.

Before You Install: Requirements

ItemRecommendation
Kali versionLatest rolling release (update first)
PythonPython 3 (Kali’s default Python works with the apt package)
RAM4 GB minimum, 8 GB+ for large “All” scans
Disk1 GB for the tool plus space for scan databases
NetworkStable internet; many modules call external APIs
PermissionsWritten permission for any target you do not own

Method 1 – Install SpiderFoot from the Kali Repository (Recommended)

This is the fastest and most stable option. Kali maintains the package, so dependencies are handled for you.

Step 1: Update Kali

sudo apt update && sudo apt full-upgrade -y

Step 2: Install SpiderFoot

sudo apt install -y spiderfoot

Some Kali images (for example those using the larger tool metapackages) already include it. Check with which spiderfoot.

Step 3: Start the web interface

spiderfoot -l 127.0.0.1:5001

Open http://127.0.0.1:5001 in Firefox. You will see the SpiderFoot dashboard with New Scan, Scans and Settings tabs.

Tip: To reach the UI from another machine on your lab network, bind to all interfaces with spiderfoot -l 0.0.0.0:5001. Only do this on a trusted network, and add authentication (see the security section below).

Method 2 – Install the Latest Version from GitHub

Use this if you want the newest code from the official SpiderFoot GitHub repository. On current Kali, pip refuses to install packages system-wide (the externally-managed-environment error), so always use a virtual environment.

sudo apt install -y git python3-venv python3-dev build-essential libxml2-dev libxslt1-dev
git clone https://github.com/smicallef/spiderfoot.git
cd spiderfoot
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip wheel setuptools
pip install -r requirements.txt
python3 sf.py -l 127.0.0.1:5001

If pip fails to build an old pinned library on a very new Python version, the repo package from Method 1 or Docker from Method 3 is the quickest way around it. Our SpiderFoot errors and fixes guide covers these build problems in detail.

Method 3 – Run SpiderFoot with Docker on Kali

Docker keeps SpiderFoot and its Python libraries isolated from the rest of Kali.

sudo apt install -y docker.io
sudo systemctl enable --now docker
git clone https://github.com/smicallef/spiderfoot.git
cd spiderfoot
sudo docker build -t spiderfoot .
sudo docker run -d -p 5001:5001 --name spiderfoot spiderfoot

Now open http://127.0.0.1:5001. Stop it with sudo docker stop spiderfoot and start it again with sudo docker start spiderfoot. For Windows and macOS Docker setups, see our SpiderFoot install guide for every platform.

Which Install Method Should You Pick?

MethodBest forProsCons
Kali apt packageMost usersOne command, maintained by KaliMay lag behind GitHub
GitHub + venvLatest code, custom modulesNewest fixes, easy to edit modulesPossible dependency build errors
DockerClean, isolated labs and serversNo system changes, portableNeeds Docker, uses more disk

How to Use SpiderFoot on Kali: Your First Scan

  1. Go to New Scan.
  2. Enter a scan name and a target (domain, IP, subnet, ASN, email, phone number, username, person name or Bitcoin address).
  3. Choose By Use Case:
    • All – every module; slow and noisy.
    • Footprint – maps the target’s network perimeter and identity.
    • Investigate – looks for malicious indicators; good for threat checks.
    • Passive – no direct contact with the target; the safest start.
  4. Click Run Scan Now.
  5. Review results in the Summary, Browse, Correlations and Graph tabs, then export as CSV or JSON.

Not sure what to enter as a target? Our guide to the target types SpiderFoot can analyze explains each one with examples.

Essential SpiderFoot Kali Linux Commands

CommandWhat it does
spiderfoot -l 127.0.0.1:5001Start the web interface
spiderfoot -MList all available modules
spiderfoot -TList all data (event) types
spiderfoot -s example.com -u passiveRun a passive scan from the terminal
spiderfoot -s example.com -m sfp_dnsresolve,sfp_crtRun only selected modules
spiderfoot -s example.com -t EMAILADDRCollect only a specific data type
spiderfoot -s example.com -u footprint -o csv > out.csvSave results as CSV
spiderfoot -hShow all options
spiderfoot-cliInteractive shell that talks to a running SpiderFoot server

If you installed from GitHub, replace spiderfoot with python3 sf.py and spiderfoot-cli with python3 sfcli.py. For a deeper walkthrough with real examples, read Master SpiderFoot commands step by step.

Add API Keys for Better Results

Many modules work without keys, but free API keys add far more data. In the web UI, open Settings, pick a module, paste your key and click Save Changes. Good free-tier keys to start with:

  • VirusTotal – malware and domain reputation
  • Shodan – exposed services and open ports
  • Hunter.io – email addresses linked to a domain
  • SecurityTrails – historical DNS and subdomains
  • AbuseIPDB – IP abuse reports
  • Have I Been Pwned (paid key) – breach exposure

See the full list of SpiderFoot modules and data sources.

Troubleshooting SpiderFoot on Kali

ProblemFix
spiderfoot: command not foundRun sudo apt install spiderfoot, or use python3 sf.py from the GitHub folder
error: externally-managed-environmentInstall inside a venv (Method 2) or use the apt package
Address already in usePick another port: spiderfoot -l 127.0.0.1:5002, or stop the old process
Web page does not loadCheck the terminal is still running and you used http://, not https
Modules return nothingAdd API keys, check your internet, and confirm the module is enabled
Scan is very slowUse Passive or Footprint instead of All; lower the thread count in Settings

Secure Your SpiderFoot Instance

  • Keep the UI bound to 127.0.0.1 unless you really need remote access.
  • For remote access, put it behind an SSH tunnel or a reverse proxy with HTTPS. SpiderFoot also supports basic web authentication through a passwd file in its data folder.
  • Scan results may contain personal data. Store and delete them according to your client agreement and local law. Learn more in how secure SpiderFoot scan data is.

Where SpiderFoot Fits in a Kali Workflow

SpiderFoot is a reconnaissance tool. It is usually the first step before tools like Nmap, theHarvester, Amass or Burp Suite. Use it to build a map of the target’s public footprint, then move on to active testing only if you are authorised. Read our penetration testing methodology guide to see where OSINT fits, and how SpiderFoot helps both red teams and blue teams.

Frequently Asked Questions

Is SpiderFoot pre-installed on Kali Linux?

Not in every image. It is in the official Kali repositories and included in some larger tool metapackages. Run which spiderfoot to check, and install it with sudo apt install spiderfoot if it is missing.

How do I open SpiderFoot in Kali?

Run spiderfoot -l 127.0.0.1:5001 in a terminal, then open http://127.0.0.1:5001 in Firefox. Keep the terminal open while you use it.

What is the difference between spiderfoot and spiderfoot-cli?

spiderfoot starts the SpiderFoot server and web interface or runs a one-off scan with -s. spiderfoot-cli is an interactive shell that connects to a running SpiderFoot server so you can start and manage scans from the terminal.

Is SpiderFoot free on Kali Linux?

Yes. The open-source SpiderFoot is free under the MIT licence. Some third-party data sources need API keys, and many of those offer free tiers.

How long does a SpiderFoot scan take?

A passive scan of a small domain usually takes a few minutes to half an hour. An All scan with many API keys can run for hours, depending on the target size and rate limits.

Is it legal to use SpiderFoot?

Using SpiderFoot on your own assets or with written permission is legal in most places. Scanning others without authorisation, or misusing personal data you collect, may break computer misuse or privacy laws.

Conclusion

Getting SpiderFoot running on Kali Linux takes one command: sudo apt install spiderfoot. Use the GitHub method when you need the newest code, and Docker when you want a clean, isolated setup. Start with Passive scans, add a few free API keys, and let the correlation engine point you to the findings that matter.

Want to run it on your phone too? Follow our SpiderFoot Termux install guide, or start from the basics with our SpiderFoot tutorial for beginners.

3 thoughts on “How to Install and Use SpiderFoot on Kali Linux (2026 Guide)”

  1. Pingback: SpiderFoot Errors Fixed: 16 Common Problems & Fixes (2026)

  2. Pingback: How to Install SpiderFoot (2026): Windows, Mac, Linux, Docker

  3. Pingback: SpiderFoot Modules & Data Sources: 2026 List + API Keys

Leave a Comment

Your email address will not be published. Required fields are marked *