Extending
Legacy modules
Spiderfootplus can run the large set of legacy Python modules (sfp_*) in
addition to its native Rust modules. They cover many extra data sources —
threat-intelligence feeds, social-account discovery, breach and reputation
lookups, and more.
How it works
A small bridge embeds a Python interpreter and loads each sfp_*.py as an
ordinary module: it watches and produces the same event types as a native
module, so a scan mixes native and legacy modules freely. The bridge is
behind a build feature, so the default binary carries no Python dependency
at all.
Enabling them
-
Build (or install) with the
legacyfeature:cargo install --path crates/spiderfootplus-cli --features legacy --force -
Point a scan at the module directory, with
--legacyor thelegacy_modules_dirconfig key:spiderfootplus --legacy modules/legacy modules # list them ([py] marker) spiderfootplus --legacy modules/legacy scan example.com -m sfp_abusechIn
spiderfootplus.yaml:legacy_modules_dir: modules/legacy
spiderfootplus modules marks legacy modules [py], and [key] when they need an
API key.
API keys
Many legacy modules call a third-party API and need a key. Set it by the
module's name (without the sfp_ prefix) under api_keys:
api_keys:
abuseipdb: "..."
shodan: "..."
A key can also come from the environment, e.g. SPIDERFOOTPLUS_API_KEY_SHODAN.
Modules with no key configured skip themselves at the start of a scan.
Notes
- 204 of the bundled modules load as-is.
sfp_filemetaadditionally needs thePyPDF2Python package (pip install PyPDF2) to read PDF metadata. - Legacy modules reach the network directly, so they obey the configured
proxybut run under Python's own HTTP stack rather than the native client. - Native modules are preferred where one exists (they are faster and need no Python); the legacy set fills in the many sources that have no native module yet.