Sam Tilston
Menu

Should every company publish a security.txt file?

By Sam Tilston, 26 November 2026

In my view, yes: any organisation with a public website should publish a security.txt file, because it gives outsiders a stated place to send a vulnerability report. It is not a legal requirement, and the specification behind it, RFC 9116, is informational rather than an Internet standard. In my check of 39 UK consumer brand domains, only 15 (38%) had one, and that figure is a lower bound.

Key points

  • RFC 9116, published in April 2022, defines security.txt as a machine-parsable format that helps organisations describe their vulnerability disclosure practices.
  • The file must contain a Contact field and an Expires field, and web services must place it at /.well-known/security.txt.
  • On 26 November 2026 I found a security.txt with a Contact line on 15 of 39 UK brand domains (38%), compared with 35 of 39 (90%) using a DMARC policy of p=reject.
  • Among ten heavily impersonated UK brands, 5 of 10 returned a security.txt with a Contact field.
  • The file covers vulnerability reports and is not meant for incident response, and it does not grant or deny anyone permission to test your systems.

What is a security.txt file?

It is a small text file that tells security researchers how to contact you about a vulnerability. RFC 9116 describes the problem it addresses: when researchers find a weakness, proper reporting channels are often lacking, so vulnerabilities may go unreported.

Before this format, the main convention was a security@ email address on the domain. The RFC notes that this gives only a single, email-based channel per domain and no way to publish information about disclosure practices. The security.txt file is meant to be richer and easier for software to read, and the RFC says it complements, without replacing, other public resources an organisation keeps on disclosure.

What does the file have to contain?

Two fields are mandatory. The Contact field says how researchers should report a vulnerability, for example by email, phone or web page. Web addresses in it must begin with https://, and email addresses should use mailto links. The Expires field says when the file should be treated as stale, and it can appear only once.

Other fields are optional. Encryption must point to a location where a key can be retrieved rather than containing the key itself. Acknowledgments links to a page recognising researchers, and Canonical lists where the file is meant to live. If Preferred-Languages is absent, researchers may assume English. The RFC recommends, but does not require, digitally signing the file.

On location, web services must place the file under /.well-known/, for example https://example.com/.well-known/security.txt. It must be served over HTTPS as text/plain with UTF-8 as the default character set. It applies only to the domain or IP address it was retrieved from, not to subdomains or parent domains, so a company that uses several domains needs to think about each one.

How many UK brands publish one?

On 26 November 2026 I looked at the main domains of 39 brands that people in the UK commonly receive email from. The sample covered banks, building societies, parcel carriers, retailers, telecoms, energy suppliers, GOV.UK, the NHS and TV Licensing. I used public DNS lookups and HTTPS requests. Of the 39, 15 (38%) served a security.txt with a Contact line at /.well-known/security.txt.

That is low next to other settings in the same sample, where 35 of 39 (90%) had a DMARC policy of p=reject. A security.txt file asks for no change to how mail flows, yet fewer than four in ten had published one.

I ran a separate check on the main domains of ten UK brands often impersonated in parcel, tax, retail and banking scams. 5 of 10 returned a security.txt with a Contact field. Nine of those ten publish DMARC p=reject and the tenth publishes p=quarantine, so a strong email posture and a missing security.txt can sit together. I do not say which brands fall on which side.

Both figures are lower bounds. Some sites block automated requests, so a brand may have a file that my checks could not retrieve. The check is also a single-day snapshot of main domains only.

What does a security.txt file not do?

It does not give anyone permission to test your systems. The RFC says researchers shouldn't assume the presence or absence of a file grants or denies permission for security testing. Nor does it replace an incident process. The mechanism is intended for vulnerability response, meaning reports about product vulnerabilities, and the RFC distinguishes that from reports of network intrusions and compromised websites. Using it for incidents brings additional security considerations. Incident planning is a separate piece of work, covered in my article on cyber incident reporting plans.

It also does not guard against its own misuse. The RFC tells researchers to check redirects, because they may lead to malicious resources or domains controlled by an attacker. If a file carries a Canonical field and the address it was fetched from is not listed there, the RFC says its contents should not be trusted. Researchers can also choose not to parse files larger than 32 KB, fields longer than 2,048 characters, or files with more than 1,000 lines.

Are there reasons not to publish one?

The main cost is upkeep. A file whose Expires date has passed is, by the RFC's wording, stale and should not be used, so an unmaintained file can be worse than none. Someone also has to own the mailbox or page named in the Contact field and act on what arrives, since a contact route with no process behind it does little good. If you run services on other domains, each needs its own file.

For a brand that is already a target of impersonation, my lookalike domain study found 332 of 860 candidate domains registered. A clear, official reporting route is one small way to make sure a researcher who finds a real weakness knows where to go. UK government services have an equivalent: the NCSC directs people who believe they have found a vulnerability in a UK government online service to the Government Vulnerability Reporting Service page.

Sources and method

This article draws on RFC 9116 (IETF, April 2022), the NCSC page on reporting vulnerabilities in UK government online services, and two of my own studies, both run on 26 November 2026. The first is the 39-domain email and website settings check, and the second is the ten-brand lookalike domain study with its DMARC and security.txt side check. Both used public data only and cost nothing to run.

The limits are single-day snapshots, main domains only, and security.txt counts that are lower bounds because some sites block automated requests. The material I used does not cover how long a file takes to set up, how often researchers use these files, or whether a file leads to more reports.

Related articles