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.
Watches (input)
Produces (output)
Options
| Option | Default | What it does |
|---|---|---|
| maxfetch | 300 | Stop fetching new assets to scan after this many (cached pages are free) |
| maxbytes | 1048576 | Only scan the first this-many bytes of any asset |
| entropy | 3.5 | Minimum Shannon entropy for a generic keyword=value secret to count |
| generic | true | Also 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-) |
| scanrepos | true | Also scan the files of public code repositories found during the scan |
| maxrepos | 10 | Scan at most this many repositories |
| maxrepofiles | 60 | Scan at most this many files per repository |
| api_key | your key | GitHub 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.
Fed by
- archive_urlsHistorical URLs and query parameters for the target domain from web archives (Wayback Machine and Common Crawl)
- code_host_reconCollect a username's public footprint on code hosts: profile, commit emails, SSH keys and repositories
- http_probeFetch each hostname over HTTPS/HTTP and record server headers, title and technology hints
- js_endpointsExtract URLs and API paths baked into a site's JavaScript to widen the mapped attack surface
- site_mapCrawl the target's own site: list its pages, forms, sign-in and upload pages, and parameters
- well_knownrobots.txt, sitemaps, security.txt and humans.txt on each web host
Feeds
Its results are end points; no other native module consumes them.