security.txt validator: is your security.txt file valid under RFC 9116?
How does this check work, and what does the result tell you?
AdminKit's security.txt validator checks the text of a security.txt file you paste against RFC 9116, line by line: Contact and Expires, https-only URIs, fields that must not repeat, comments, line endings and OpenPGP signature framing. It runs entirely in your browser, sends nothing anywhere and does not fetch your site.
Part of the Security basics cluster — more tools, guides and terms on security basics.
Checked entirely in your browser — nothing you paste is sent to AdminKit or any other server, and this tool does not fetch your site, so it cannot see what your domain actually serves.
What the result means
This report covers only the text you pasted — it says nothing about what your site serves today. Errors make the file invalid under RFC 9116, warnings go against its advice, and notes are for information only. A signed file is reported as signed, but the signature is not verified here.
Next step
Fix every error, publish the file over HTTPS at /.well-known/security.txt on your domain as
text/plain, then fetch it once with curl -sI to see the status code and Content-Type
it really returns. To rebuild the file from a form, use AdminKit's
security.txt generator.
Keep this result
Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.
How it works and limits
Paste the full text of your security.txt file above and the report appears as you type, entirely in your browser — nothing you paste is sent to AdminKit or any other server, and we do not fetch your site. The tool checks the text you give it, not the file your web server serves today, so paste exactly what is live if you want to check that.
What does the validator check?
RFC 9116 defines security.txt as a short plain-text file of
Name: value fields, comments and blank lines. The validator reads every line and applies these rules:
- Contact — required, may repeat. Each value must be a URI:
mailto:for email,tel:for a phone number orhttps://for a web page, the three forms RFC 9116 names; this tool accepts only those. A bare address such assecurity@example.comis an error. - Expires — required, exactly once, as an RFC 3339 date-time. A date that has passed is an error; a date more than a year ahead is a warning, because RFC 9116 recommends less than a year.
- Web URIs — Acknowledgments, Canonical, Encryption, Hiring, Policy and CSAF values that are web addresses must
begin with
https://;http://is an error. - Encryption — a URI pointing to your key, never the key itself.
- Preferred-Languages — at most once, as comma-separated language tags such as
en, fr. - Canonical — a warning if a URL does not end in
/.well-known/security.txt. - Field names — case-insensitive, so
contact:counts as Contact. - Comments and blank lines — lines starting with
#are comments and blank lines are allowed anywhere. Any other line that is notName: valueis an error. - Line endings — RFC 9116 allows CRLF or LF at the end of every line, so both parse the same. A lone carriage return is an error and a missing final line ending is a warning.
Which fields does the tool know?
RFC 9116 defines eight fields: Acknowledgments, Canonical, Contact, Encryption, Expires, Hiring, Policy and
Preferred-Languages. New fields are added through the
IANA security.txt Fields registry, which today also lists
CSAF and Bug-Bounty. CSAF comes from OASIS: the
CSAF 2.0 standard says a CSAF provider’s
security.txt must contain at least one CSAF field pointing to its provider-metadata.json, and that a web URI there
must begin with https://. The registry says Bug-Bounty appears at most once with the value True or False.
Any other field name is reported as information only. RFC 9116 makes every registered field beyond Contact and Expires optional and tells researchers to ignore fields they do not support, so an extra field does not make a file invalid.
How does it handle a signed file?
RFC 9116 recommends signing the file with an OpenPGP cleartext signature. When the text starts with the signed
message header, the validator checks the framing (a Hash: header, a blank line, then a signature block at the end),
removes the - dash-escaping from signed lines and validates the signed text like any other file:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Canonical: https://example.com/.well-known/security.txt
Contact: mailto:security@example.com
Expires: 2027-11-21T00:00:00Z
-----BEGIN PGP SIGNATURE-----
...
-----END PGP SIGNATURE-----
The report then says signed, signature not verified here. Checking the signature needs your public key and OpenPGP software; this tool never asks for keys. A signed file without a Canonical field gets a warning, because RFC 9116 recommends Canonical alongside a signature so the signature also covers where the file lives.
Where must the file be served?
The validator only sees text, so the location is up to you. RFC 9116 requires the file over HTTPS under the
/.well-known/ path (the well-known URI prefix), served as plain text in UTF-8:
https://example.com/.well-known/security.txt
Content-Type: text/plain; charset=utf-8
The security.txt project site gives the same first step: create the file under the
.well-known directory of your site. OWASP’s
Vulnerability Disclosure Cheat Sheet
lists a security.txt file at that path as one of the places researchers look for security contact details. To see
what your server really returns, fetch it yourself:
curl -sI https://example.com/.well-known/security.txt
How to read the results
- Summary — valid or not, with the number of errors, warnings and notes, whether the file is signed, and the line-ending style found (LF, CRLF or mixed).
- File-level findings — problems that belong to no single line, such as a missing Contact or Expires.
- Line list — every line you pasted with its number, what it is (field, comment, blank line, signature framing or not recognised) and any finding for that line.
- Error (red) — the file breaks a rule it must follow; fix it before publishing.
- Warning (amber) — the file is still valid, but something goes against the RFC’s advice.
- Info (grey) — notes such as an unknown field, a file that is not signed or mixed line endings.
| Line you paste | Result |
|---|---|
Contact: security@example.com | Error: needs mailto: |
Policy: http://… | Error: use https:// |
Expires on two lines | Error on the second |
X-Team: Blue | Info: unknown field |
Limits
- It checks pasted text only. It never fetches your site and cannot tell whether a file is live, reachable, redirected or served with the right content type.
- It does not verify OpenPGP signatures and never asks for keys.
- It checks the syntax of each value, not whether a mailbox, phone number or page actually exists.
- The Expires checks use your device’s clock, so a wrong system date shifts the past and one-year results.
To build a new file from a form instead, use AdminKit’s security.txt generator; anything it builds passes this validator. This tool is part of AdminKit’s security basics cluster, next to the SSL certificate check and the HTTP security headers check.
Frequently asked questions
Does this tool fetch my security.txt file or send what I paste anywhere?
No. You paste the text and your browser checks it with plain JavaScript; nothing is sent to AdminKit or any other server, and the tool never fetches anything from your site. It therefore cannot see what your domain actually serves, which status code it returns or which Content-Type header it sends.
Which problems count as errors and which as warnings?
Errors are problems that make the file invalid: no Contact, no Expires or more than one, an Expires date that has passed, a Contact that is not a mailto:, tel: or https:// URI, an http:// web URI, a key pasted into Encryption, or Preferred-Languages repeated. Warnings cover advice such as an Expires date more than a year ahead or an email Contact with no Encryption key.
Can the tool verify the OpenPGP signature on my file?
No. It recognises the cleartext signature framing, validates the signed text inside it and reports the file as signed, signature not verified here. Checking the signature needs the signer's public key and OpenPGP software, and this tool never asks for keys. Verify it yourself with a key you trust.
Why is a field I use reported as unknown?
The tool knows the eight fields in RFC 9116 plus the two later added to the IANA security.txt Fields registry, CSAF and Bug-Bounty. Any other name is reported as information, not an error: RFC 9116 allows extra fields and tells readers to ignore fields they do not support.