security.txt
One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.
What audibot checks
A GET of /.well-known/security.txt (following up to three redirects). The existing response is parsed for valid Contact URIs, one ISO 8601 Expires timestamp, HTTPS, text/plain, optional fields, Canonical matching and PGP signature presence; no new request is made.
- Pass
Valid contacts and expiry, served over HTTPS as text/plain, with no renewal warnings.
- Fail
Contact or Expires is missing or invalid, expiry has passed, or the file is not served over HTTPS.
- Warning
The file is unavailable or truncated, has the wrong content type or a mismatched Canonical, or expires within 30 days, before next January or more than a year away.
Why it matters
Someone who finds a vulnerability needs to know who to tell. security.txt (RFC 9116) is the standard place to look; without it, reports go to a general inbox, a social media account, or nowhere.
How do I add a security.txt file?
Publish a plain-text file at /.well-known/security.txt. RFC 9116 requires Contact: and Expires:; set Expires less than a year ahead and renew it.
/.well-known/security.txt
Contact: mailto:security@example.com
Expires: 2027-06-30T00:00:00.000Z
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txtnginx (if the file lives outside the web root)
location = /.well-known/security.txt {
alias /etc/nginx/security.txt;
default_type text/plain;
}Related tools
- security.txt checker — Check vulnerability reporting contacts and the expiry of a security.txt file.
- security.txt generator — Generate a security.txt file with contact details and a renewal date.
Other checks in Security headers
- Strict-Transport-Security (HSTS) header
- Content-Security-Policy header
- X-Content-Type-Options: nosniff
- Clickjacking protection (frame-ancestors / X-Frame-Options)
- Referrer-Policy header
- Permissions-Policy header
- Software versions in response headers
- Cookie flags: Secure, SameSite and HttpOnly
Security headers in the methodology ·All guides
This check is one step of the website launch checklist.
Check your site
audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.