Vendor Audit

security.txt (RFC 9116)

A security.txt file at /.well-known/security.txt tells researchers how to report vulnerabilities they find on your site (RFC 9116). Without one, well-meaning researchers struggle to find a contact and may give up — the issue stays unreported and unfixed.

How security.txt works

security.txt (RFC 9116) is a small text file at /.well-known/security.txt that tells security researchers who to contact and how. It's the equivalent of robots.txt for vulnerability reporting — machine- and human-readable, with a small set of standardised fields. Researchers who find a bug in your site or systems can find a contact in seconds rather than rummaging through your website hoping to spot a security@ link.

Required fields are Contact: (an email address, phone number, or URL — multiple are allowed) and Expires: (an ISO 8601 timestamp after which the file should not be trusted). Optional fields include Encryption: (a PGP key URL for encrypted reports), Policy: (a URL to your coordinated-disclosure policy), Acknowledgments: (a hall-of-fame URL), and Canonical: (the URL of the file itself, useful when redirected).

Best practice: keep Expires: less than a year out and rotate it on a recurring basis (so a stale file doesn't go unnoticed indefinitely). Sign the file with PGP (the signature is inline, just the file contents wrapped in a PGP signature block). Place it at /.well-known/security.txt — the legacy /security.txt path still works but is deprecated.

Generator at https://securitytxt.org/ produces a syntactically valid file with sensible defaults. The whole effort is typically 10 minutes of work, including PGP signing, and meaningfully shortens the time-to-fix for issues researchers report.

How to fix it

Publish a security.txt file with at least Contact: and Expires: fields; see securitytxt.org for a generator.

The 3 security.txt checks Vendor Audit runs

Each check has a fixed set of results, and each result has one rating. These are the exact words the report uses.

security.txt

Standard: RFC 9116

security.txt location

Standard: RFC 9116 §3

What it checks. RFC 9116 requires web services to place security.txt at /.well-known/security.txt; /security.txt is allowed only as a legacy fallback.

Why it matters. Tools and researchers look in /.well-known/ first, and some look only there.

How to fix it. Serve the file at /.well-known/security.txt; the root copy can stay as a redirect.

security.txt Canonical

Standard: RFC 9116 §2.5.2

What it checks. The Canonical field names the URLs where the file is meant to be found.

Why it matters. When it does not list the URL the file was served from, readers can't tell whether the file is the owner's or a stale copy, and RFC 9116 says to treat its contents with caution.

How to fix it. Make Canonical list the file's real URL, for example https://example.com/.well-known/security.txt.

Related

Security headers