security.txt checker and generator

Check that a published security.txt is valid and hasn't expired, or build one to tell security researchers how to reach you.

The generator runs entirely in your browser and nothing you enter is sent or stored. The checker asks poscha.com to fetch the file from the domain you name, because browsers can't read another site's files directly.

What security.txt is

When someone finds a security problem in your website or service, they need to know who to tell. security.txt (RFC 9116) is a small text file at a fixed address, https://yourdomain/.well-known/security.txt, that answers that question for people and for automated scanners:

Contact: mailto:security@example.com
Expires: 2027-04-23T23:59:59.000Z
Encryption: https://example.com/pgp-key.txt
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security-policy

Without one, reports go to a generic inbox, a social media account or nowhere at all.

The fields

  • Contact (required): an email address, phone number or web form. List more than one in order of preference.
  • Expires (required): when the file should be treated as stale. Keep it less than a year away and update it before it lapses.
  • Encryption: a link to your OpenPGP public key, so reports can be sent privately.
  • Policy: your vulnerability disclosure policy: what’s in scope, how quickly you’ll respond, and safe-harbour terms for good-faith research.
  • Preferred-Languages, Acknowledgments, Hiring and Canonical are optional, and CSAF points to machine-readable security advisories if you publish them.

What the checker looks for

Most published files parse fine and still fail in practice. The checker reads both the required location and the legacy top-level path, then reports:

  • An expired Expires date. The most common fault by far. RFC 9116 tells researchers that a file past its expiry is stale and shouldn’t be relied on, so an expired file can be worse than none.
  • The wrong location. The file must be at /.well-known/security.txt. A copy only at the top level is a legacy fallback, not a substitute, and two different copies will give researchers conflicting details.
  • http:// URLs, which every URI field is required to avoid, and values that aren’t URIs at all — a bare email address needs mailto:.
  • A page instead of a file. A catch-all route or a custom 404 that answers 200 with HTML looks published to a scanner and tells a researcher nothing.
  • The content type, which must be text/plain with charset=utf-8.
  • Canonical that doesn’t list the URL the file came from, which RFC 9116 treats as a reason not to trust it.
  • Fields that may only appear once, namely Expires and Preferred-Languages, plus syntax the grammar doesn’t allow: bare carriage returns, missing values and indented fields.
  • Redirects, which are permitted but worth knowing about, especially one that crosses to another host.

If the file carries an OpenPGP signature the fields are read from the signed text. We don’t verify the signature itself; whether the key is one you trust is a judgement only you can make.

Why it matters

A published way to report vulnerabilities is expected by the EU Cyber Resilience Act, ETSI EN 303 645 and NIS2’s coordinated vulnerability disclosure rules, and US federal agencies must publish a disclosure policy under CISA BOD 20-01. It’s also a small, visible sign that someone is looking after security, which supplier security questionnaires increasingly check for.

Turn the requirement into evidence

Poscha shows who sends as your domain, whether it's authenticated and whether it's encrypted in transit, without touching your mail flow.

Get Early Access