Skip to content
Spiderfootplus

Type to search. Press / or Ctrl K from any page.

Module · Crawling and Scanning

secret_scan

Find exposed credentials in a site's web assets and in the public code repositories linked to it.

FootprintInvestigateNo API key

Run it

# Run only this module on one input$ spiderfootplus try secret_scan LINKED_URL_INTERNAL https://www.example.com/ # Run it as part of the web profile$ spiderfootplus scan example.com -p web # Change an option for one scan$ spiderfootplus scan example.com -p web --set secret_scan.maxfetch=300

-mreplaces a profile's module list and does not add the modules that feed this one, so a profile is the simplest way to get its inputs. Only scan targets you are authorised to assess.

Options

OptionDefaultWhat it does
maxfetch300Stop fetching new assets to scan after this many (cached pages are free)
maxbytes1048576Only scan the first this-many bytes of any asset
entropy3.5Minimum Shannon entropy for a generic keyword=value secret to count
generictrueAlso flag high-entropy key/secret/token assignments, not just known key formats
publickeys—Extra value prefixes to treat as public/publishable keys and NOT flag (comma list, e.g. mykey_,site-)
scanrepostrueAlso scan the files of public code repositories found during the scan
maxrepos10Scan at most this many repositories
maxrepofiles60Scan at most this many files per repository
api_keyyour keyGitHub token — lifts the repo listing rate limit (spiderfootplus keys set secret_scan)

Set the key with spiderfootplus keys set secret_scan or the SPIDERFOOTPLUS_API_KEY_SECRET_SCAN environment variable. See configuration.

Correlation rules that use its results