Exposed files and Git metadata scanner

Misconfigured reverse proxies often expose environment files, Git metadata, or backup descriptors. Because Single-Page Applications return HTTP 200 with index.html for unknown routes, naive scanners trigger constant false alarms.

Signature-verified exposure rules

Instead of flagging every HTTP 200 response, the exposure module checks content signatures and rejects HTML shells:

Path probedRule IDVerification method
/.git/HEAD, /.git/configEXP-GIT-EXPOSED, EXP-GIT-CONFIGMatches Git ref prefixes (ref: refs/) or [core] INI sections.
/.env and variantsEXP-ENV-*Requires key=value dotenv assignments and rejects HTML/SPA shells.
/docker-compose.yml, /.DS_StoreEXP-DOCKER-COMPOSE, EXP-DS-STOREMatches YAML service keys or binary Bud1 file signatures.
/package.json, /composer.jsonEXP-PACKAGE-JSON, EXP-COMPOSER-JSONValidates JSON manifest keys instead of trusting content type alone.
/phpinfo.php, /server-statusEXP-PHPINFO, EXP-SERVER-STATUSLooks for PHP configuration tables and Apache scoreboard output.
/swagger-ui, OpenAPI, listingsEXP-SWAGGER-UI, EXP-OPENAPI-PUBLIC, EXP-DIR-LISTING-*Checks directory index headings and public API documentation routes.
/.well-known/security.txt, /robots.txtEXP-SECURITY-TXT-OK, EXP-NO-SECURITY-TXT, EXP-ROBOTS-SENSITIVE-HINTSAudits security contact files and flags sensitive admin path hints inside robots.txt.

Block hidden files in Nginx and re-test

web-vuln-scanner https://example.com --fix-config nginx
# Nginx rule printed when exposed dotfiles are detected
location ~ /\. { deny all; return 404; }

Frequently asked questions

How do I skip path probing during a narrow header-only scan?

Pass --skip-paths on the CLI to omit /.git, /.env, and backup path probes and run headers, TLS, and HTML checks faster.

Can I add internal diagnostic routes like Spring Actuator?

Yes. Define custom path_signature rules with ignore_html: true in a JSON file and pass --rules rules.example.json.

Related guides

Nginx, Caddy, and Apache fixes

Generate deny rules for dotfiles alongside header hardening.

CLI reference and custom rules

Write custom path_signature rules in JSON without rebuilding.

Frontend secret leak detector

Catch credentials that leak directly inside HTML or JS payloads.