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
Expiresdate. 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 needsmailto:.- A page instead of a file. A catch-all route or a custom 404 that answers
200with HTML looks published to a scanner and tells a researcher nothing. - The content type, which must be
text/plainwithcharset=utf-8. Canonicalthat 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
ExpiresandPreferred-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.
More free tools
Domain Report
Every record for one domain at once, scored, with what to fix first.
Open tool →SPF Check & Generate
Trace includes and count DNS lookups, or generate a record and see its lookup cost first.
Open tool →DMARC & TLS Report Analyzer
Summarise up to 100 DMARC and TLS reports, read in your browser.
Open tool →Email Header Analyzer
What one message's authentication, alignment and encryption really were.
Open tool →DMARC Check & Generate
Validate policy and reporting, or generate a record for RFC 7489 and RFC 9989.
Open tool →DKIM Checker
Look up a selector or scan common ones, and measure the key size.
Open tool →BIMI Check & Generate
Validate your record, logo and certificate, or generate a new BIMI record.
Open tool →MTA-STS Check & Generate
Validate the DNS record and policy file, or generate both.
Open tool →TLS-RPT Check & Generate
Validate your _smtp._tls record, or generate one.
Open tool →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 AccessPrefer to talk? Call 0412 970 025