Skip to content

security.txt validator

Free, no sign-up Runs in your browser

Paste a security.txt and validate it against RFC 9116: required fields, the Expires date and its format, https links, unknown fields and duplicates.

Paste the contents of /.well-known/security.txt.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the security.txt validator

  1. Open /.well-known/security.txt on your site and copy the contents.
  2. Paste the file.
  3. Fix each finding, starting with the ones marked invalid.
  4. Publish the corrected file and paste it again to confirm.

About this tool

A security.txt that does not parse, or that expired last year, fails at the one moment it is needed: when a stranger is trying to tell you about a vulnerability. This validator checks a pasted file against RFC 9116 and lists what is wrong, with the line number of each problem.

It checks that Contact and Expires are present, that Expires appears once, is a full date and time in the RFC 3339 format and lies in the future, and that every link uses https. Contact values must be URIs, so an email address needs mailto: in front and a phone number needs tel:. Preferred-Languages may appear only once. Field names that are not registered are reported, since a misspelled field is silently ignored by parsers.

The most common failures are a date without a time, an expired date, a bare email address and Acknowledgements spelled the British way; the registered name is Acknowledgments. A signed file is read through its OpenPGP wrapper, but the signature itself is not verified here. These are format rules: they cannot tell you whether anyone reads the mailbox.

Sources

Questions

What format must the Expires field have?

A full date and time in the Internet format of RFC 3339, with a time zone, for example 2027-01-31T00:00:00Z. A date alone, or a format such as 31/01/2027, is not valid. The field must appear exactly once.

What happens when a security.txt expires?

RFC 9116 says an expired file must not be used, because its details may be stale. Researchers and scanners then treat the site as having no security.txt. Renew the date before it passes; the RFC recommends keeping it under a year ahead.

Can I put a plain email address in Contact?

No. The value must be a URI, so an email address is written with mailto: in front of it. Web addresses must begin with https://, and phone numbers are written with tel: and the international format.

Are custom fields allowed in security.txt?

Parsers must ignore fields they do not know, so an extra field does not break the file. New official fields are added through an IANA registry. The validator lists unknown names because most of them turn out to be typos of real fields.

Related tools