Guides · ← All guides
What Is security.txt? The Small File That Lets Researchers Reach You
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 6 min read
Run a free BreachHunter assessment on your site →
Every site eventually receives the email from a researcher who found something. Whether the next one reaches you at all depends on whether they can find the door. The security.txt standard (RFC 9116) exists because “security@” guessing and webmaster archaeology failed often enough that the industry standardized the file's location and format.
This guide covers what the audit's security.txt check looks for, the fields a valid file needs (Contact and Expires are the mandatory pair), and the operational side — a mailbox that is monitored, a response expectation, a disclosure posture — because publishing the file is a promise the organization behind it has to keep.
What goes in the file, and what does the check verify?
The format is deliberately plain: field lines in a text file. Contact: (required, repeatable — a mailto: or an https: reporting page) and Expires: (required, an ISO date in the future — files go stale and the standard says so) are the core. Optional fields add Policy (your disclosure terms), Acknowledgments, Preferred-Languages, and Canonical to state the authoritative location. The check requests the well-known path, parses what returns, and flags absence — and a good implementation also notes an expired Expires date, the most common way real files quietly become non-compliant.
Placement matters: /.well-known/security.txt is the standard location; the legacy /security.txt path is a courtesy redirect or duplicate. The file is served over HTTPS, as text/plain, unsigned or PGP-signed — signing is optional and mostly skipped by small teams without penalty. What reviewers look for is simpler than the full spec: can a stranger with a real finding reach a human who is expecting the message, this year, at the address printed?
The file is a promise: staff the mailbox
Publishing a contact creates an obligation with a clock. Researchers judge responsiveness, and the community's memory is long: an unmonitored security@ that auto-replies into a void is worse than a slower honest process, because the researcher's next step after silence is rarely patience. The minimal viable operation is small — a monitored alias routed to whoever would handle an incident anyway, an acknowledgement target of a few business days, and a triage habit: thank, verify, fix, credit if they want it.
It also pays defensively in a way owners feel: the assessment lists the missing file as a minor finding, but the first time a genuinely critical report arrives through it instead of through a public post, the file has repaid its five minutes of setup a thousandfold. Pair it with the rest of the web-audit hygiene in the headers guide — security.txt is the human-facing member of the same “small files, real signals” family, alongside robots.txt and your sitemap.
Worked example: beaconlegalaid.example
Beacon Legal Aid, a nonprofit whose site holds sensitive client intake forms, had never heard of security.txt when its scan noted the missing file. Two years earlier, a researcher had tried to report an exposed upload folder through the site's general contact form — the message was routed as a donation inquiry and answered three weeks later with a fundraising template.
GET /.well-known/security.txt -> 404 Finding: no security.txt published (disclosure contact absent)
Beacon published a four-line file — Contact: mailto with its ops alias, Expires set a year out with a calendar reminder at month ten, Policy linking a short disclosure page the director approved — and routed the alias to the same two people who would run any incident. The finding closed on retest. Six months later the file did its job for the first time: a misconfigured storage permission, reported quietly, fixed before it was anything else. The director's summary stands: “it cost an afternoon; the alternative cost us three weeks of not knowing, once already.”
The five actions to take
Publishing a security.txt that actually works:
- Decide the contact: a monitored alias (not an individual's inbox) routed to whoever handles incidents.
- Write the file with Contact and a future Expires (one year out), plus a Policy link if you have disclosure terms.
- Serve it at /.well-known/security.txt over HTTPS as text/plain; optionally mirror at /security.txt.
- Calendar the expiry renewal and test the alias quarterly by sending it a message.
- Re-scan to close the finding, and brief whoever monitors the alias on the acknowledge-verify-fix-credit flow.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Does publishing security.txt invite attacks?
Attackers do not need the invitation — they scan regardless. The file addresses the other population: good-faith researchers deciding where to send a finding. Sites with clear contacts get reports; sites without them get surprises.
Is security.txt legally required?
Not generally, though some sectors and government-adjacent contracts reference RFC 9116 as expected practice. Treat it as a maturity signal: assessors and enterprise reviewers read its presence (and currency) as evidence a disclosure process exists.
Our file expired. Is that worse than none?
An expired file signals a process that lapsed — and strict parsers treat it as invalid. It is a five-minute renewal and a calendar problem, and exactly the sort of small decay the quarterly alias test in the checklist exists to catch.
Should we offer a bug bounty in the file?
Only if one actually exists. The Policy field should describe what is true: scope, expectations, safe-harbor language if your counsel has approved it. A small, honest “we welcome reports and credit researchers” outperforms a bounty you do not run.
What about the humans.txt / contact page instead?
Keep them — they serve other purposes. security.txt is the location tools and researchers check programmatically, at a standardized path, in a parseable format. The standard's value is that nobody has to guess.
Sources
Where this guide's claims come from, in citable form:
- RFC 9116 (2022) — the security.txt specification itself.
- securitytxt.org (2026) — the project's generator and field reference.