security.txt checker

Short answer

What is security.txt?

security.txt is a text file at https://company.com/.well-known/security.txt that tells security researchers where to report vulnerabilities, described in RFC 9116. The file must have Contact, for example Contact: mailto:security@company.com, and Expires with a date less than a year ahead. Create the file, put it on the website and check it here.

Enter the domain.

What the file must contain

  • Contact: email or web address (required).
  • Expires: the date the file is valid until, at most one year ahead (required).
  • Optional: Encryption, Policy, Preferred-Languages and Canonical.

Example

  • Contact: mailto:security@company.com
  • Expires: 2027-11-01T00:00:00.000Z
  • Preferred-Languages: no, en
  • Canonical: https://company.com/.well-known/security.txt
  • Policy: https://company.com/security

Common mistakes

  • Expires is missing or has passed. An expired file should not be used, so set a reminder to renew it.
  • The file is only at /security.txt. The right place is /.well-known/security.txt.
  • The file is served as HTML, for example because the website shows an error page with status 200. It should be plain text (text/plain).
  • The contact address is a person who has left. Use a shared address.

Questions and answers

Where should the file be?

At https://domain/.well-known/security.txt.

Must I have security.txt?

It is not required by law, but it is an easy way to hear about security issues before they are abused. Without the file researchers do not know where to report.

Should the file be signed?

RFC 9116 recommends signing the file with OpenPGP, so the reader can trust the content. It is optional.

Does the file apply to subdomains?

No, each host has its own. Put the file on the main websites, or let them redirect to the main file.

Which address should be in Contact?

A shared address that is read every day, like security@company.com, or a web page with a form. If you have an IT provider, it can be their address for security incidents.