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
- PASSSecurity contact published (security.txt, RFC 9116)
- Lowsecurity.txt has no Expires: field (required by RFC 9116) What it means. The Expires field says until when the file's contents may be relied on.Why it matters. RFC 9116 requires it in every security.txt. Without it, researchers can't tell whether the contact details are still current, and tools that check the file report it as invalid.How to fix it. Add an Expires line, for example Expires: 2027-11-30T23:59:59Z, less than a year ahead.
- Lowsecurity.txt has expired — RFC 9116 says its contents should no longer be used What it means. The Expires field says until when the file's contents may be relied on.Why it matters. RFC 9116 says that after that date the contents are considered stale and should not be used, so researchers may treat the site as having no security contact.How to fix it. Update the file and set Expires to a date less than a year ahead; renew it before it passes.
- Lowsecurity.txt not published (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.
- PASSsecurity.txt is at /.well-known/security.txt
- Lowsecurity.txt is only at the legacy /security.txt path — RFC 9116 requires /.well-known/
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.
- PASSsecurity.txt Canonical lists where the file was found
- Lowsecurity.txt Canonical does not list where the file was found