security.txt. security.txt is a small text file placed at /.well-known/security.txt on a website that tells security researchers how to report a vulnerability to you. It is defined in RFC 9116. The two required fields are Contact, which is an email address, web form or phone number, and Expires, a date after which the file should be treated as stale. Optional fields point to your disclosure policy, encryption key and preferred languages. Without one, a researcher who finds a weakness has to guess who to tell, and may give up or post it publicly. For a small business the file takes about five minutes to write and signals that someone is paying attention. It does not make the site more secure on its own, it only makes responsible reporting possible.
How it works
A security.txt file solves a small but real problem: someone notices a weakness in your website or systems and wants to tell you, but cannot find who to tell. RFC 9116 standardised a plain text file at /.well-known/security.txt that gives them a clear route. Because it sits at a fixed address, researchers and automated tools know exactly where to look.
Two fields are required. Contact gives a way to reach you, written as a mailto: link, a web form address or a tel: number. Expires gives a date and time, after which the file is considered out of date, so a stale file does not mislead anyone. Optional fields add useful detail: Policy links to your disclosure policy, Encryption points to a public key, Preferred-Languages lists the languages you can read, Canonical states the official address of the file, and Acknowledgments links to a thank-you page.
The file must be served over HTTPS. Many people also sign it with a PGP key, although that is optional. For a small business it is a five-minute job that costs nothing, and the habit of renewing the Expires date once a year is the only upkeep.
A complete minimal file
For the illustrative site example.com.au, the file contains two lines: Contact: mailto:security@example.com.au and Expires: 2027-11-30T00:00:00.000Z. Add a Canonical line with https://example.com.au/.well-known/security.txt if you want the address stated explicitly. Make sure the mailbox is monitored by someone who will reply.
What to do about it
- Create a security@ mailbox or alias that a real person reads.
- Write the file with Contact and Expires, plus Policy if you have one.
- Publish it at /.well-known/security.txt over HTTPS.
- Put a yearly reminder in the diary to move the Expires date forward.
Common mistakes
- Listing an address that nobody checks.
- Letting the Expires date lapse so the file reads as abandoned.
- Treating the file as a security control. It enables reporting and nothing more.
Related terms and tools
Related terms
- External attack surfaceAn external attack surface is everything about your business that a stranger can see and test from the internet: your domain names, DNS records, mail authentication settings, web servers, login pages, exposed services and the certificates that protect them.
- ACSCThe ACSC is the Australian Cyber Security Centre, the Australian Government's lead on cyber security for individuals, businesses and government.
- Eligible data breachAn eligible data breach is the trigger for a notification under the NDB scheme.
Tools, guides and articles
See where your own domain stands. Titanos runs a free external check from public records only, and nothing on your systems is touched.
Run the free domain checkThis page is general information for Australian small businesses, not legal, tax or financial advice. Check the linked primary source and ask a qualified adviser about your own situation.
Source
See this term in the full glossary (35 terms).
