Monitor types

Security scan monitors

A daily scan of your verified domains for exposed .env files, .git folders, database dumps and backups, plus a grade for your HTTP security headers.

Last updated: 2 min read

API type
security
You enter
Verified domain
Runs at most every
1 day
Needs
Security exposure scans add-on, Domain verification

Requirements

Security scans need the Security exposure scans add-on ($6 a month) and can only target domains your organisation has verified with a DNS TXT record. Verification proves that you are allowed to scan the domain: see Verify a domain with a DNS TXT record. Security scan monitors cannot be created through the API.

How it works

Once a day, FastPing requests a list of well-known sensitive paths over HTTPS on the domain, without following redirects. A path only counts as exposed when it answers with status 200 and its content looks like the real file (for example KEY=value lines for .env, or ref: refs/ for .git/HEAD), so sites that answer every URL with their home page do not produce false findings.

PathSeverityWhat it exposes
/.envCriticalEnvironment file with secrets
/.git/HEAD, /.git/configCriticalGit repository: the source code can often be downloaded
/.svn/entriesHighSubversion metadata
/.DS_StoreMediummacOS folder index that lists file names
/.aws/credentialsCriticalAWS access keys
/.npmrcCriticalnpm authentication token
/docker-compose.ymlMediumDocker Compose file (service layout, sometimes passwords)
/wp-config.php.bak, /config.php.bakCritical / HighBackups of configuration files with database passwords
/backup.sql, /dump.sqlCriticalDatabase dumps
/backup.zipHighBackup archive
/phpinfo.phpMediumphpinfo() page with server internals
/server-statusMediumApache server-status page with live requests
/.htpasswdCriticalPassword hashes

The same scan grades the HTTP security headers of the home page (Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options or CSP frame-ancestors, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy), version numbers leaked in Server or X-Powered-By, cookie flags and whether plain HTTP redirects to HTTPS.

The monitor is down when any path is exposed (Exposed: /.env, /.git/HEAD), in warning when the header score is below 60 out of 100, and up otherwise (No exposures, headers grade B).

If something is exposed

  1. Remove the file from the web root or block the path in your web server immediately.
  2. Treat every secret in it as compromised: rotate database passwords, API keys and tokens, even if you believe nobody downloaded the file.
  3. Check your access logs for earlier requests to the path.
  4. Fix the cause, typically a deployment that copies the whole project folder, so the file does not come back with the next release.

Grade your headers now

The free Security headers checker grades any public URL's security headers. The exposure scan itself only runs on verified domains.

Still need help?

Write to us and a person will answer, usually within one business day.