Tools / security.txt

security.txt checker

Look for the vulnerability disclosure contact file at the RFC 9116 well-known location and review its key fields.

Fields reviewed

Contact, Expires, and Canonical are highlighted alongside Policy, Encryption, Acknowledgments, and preferred languages when present.

The checker tries /.well-known/security.txt first, then /security.txt. It checks presence and basic fields, not full RFC conformance.

What security.txt is for

Someone has found a flaw in your system and wants to tell you. Without a published contact they will try security@ and hope it exists, message whoever answers support, post on social media, or give up. None of those end well. A security.txt file is a plain text file at a fixed location that answers one question: where do I send this?

It is defined by RFC 9116, it takes ten minutes to publish, and it measurably shortens the time between someone finding a problem and your team hearing about it.

Where it has to live

The canonical location is /.well-known/security.txt, served over HTTPS as text/plain. The bare /security.txt was the original convention and is now a fallback only — keep it if you already publish it, ideally as a redirect, but the well-known path is the one automated checkers and researchers look for first.

One deployment trap worth naming: a site-wide rule that blocks or rewrites .txt requests will quietly swallow the file. Publish it, then fetch it from outside your network and confirm you get 200 and text/plain rather than an HTML error page or a redirect to your homepage.

The fields that matter

Publishing one that works

The file is only half of it. Before you publish, make sure someone owns the inbox and knows what to do with what arrives — a report that sits unread for three weeks tends to become a public disclosure. Decide in advance how you will acknowledge, who triages, and what you will commit to publicly on timelines.

Write the policy page too, even a short one. Researchers read it before they test, and the presence of a plainly worded scope and a safe-harbour statement is the difference between getting a careful report and getting nothing.

Reading your result

A 404 at both locations simply means no file is published. If the file is there, check Expires first: a lapsed date is the most common defect, because publishing is a one-off task and renewing is not. Missing Policy or Canonical is a recommendation rather than a failure. This is a presence and basic-field check, not a full RFC 9116 conformance test — it does not verify signatures or validate every field's grammar.

Related checks: robots.txt & sitemap validator and security headers analyzer. Setting up a disclosure process and want it tested before you advertise it? Talk to us.

Frequently asked questions

What does a minimal security.txt look like?

Two lines are required: Contact: mailto:security@example.com and Expires: 2027-06-30T00:00:00Z. Adding Policy: with a link to your disclosure policy and Preferred-Languages: is good practice.

Where do I put the file?

At /.well-known/security.txt, served over HTTPS as text/plain. A copy or redirect at /security.txt helps older tools find it.

How far ahead should the Expires date be?

RFC 9116 recommends less than a year, so the file is reviewed regularly and stale contacts do not linger. Set a reminder to update it before it expires.

Do I need a bug bounty programme to publish security.txt?

No. A contact address and a short disclosure policy are enough. See our own vulnerability disclosure policy as an example.