Skip to content

security.txt generator

Free, no sign-up Runs in your browser

Create a valid security.txt so researchers know how to report a vulnerability. Contact, Expires, Policy and the other RFC 9116 fields, checked as you type.

Required

Where to report a vulnerability. One per line, most preferred first: a URL that starts with https://, or a mailto: or tel: link.

The file will say Expires: 2027-05-25T15:53:48Z. Put a reminder in your calendar to renew it before then.

Optional

A link to your public key, not the key itself.

A page that credits the people who reported issues.

Language tags, separated by commas.

The address this file is served at.

Your vulnerability disclosure policy.

Security jobs at your organization.

Your security.txt

security.txt
Add a contact to see the file.

Serve the file over HTTPS at /.well-known/security.txt, as text/plain. A copy or a redirect at /security.txt is allowed for older tools.

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the security.txt generator

  1. Enter at least one contact: a URL, a mailto: link or a tel: link.
  2. Choose how long the file stays valid.
  3. Add the optional links you have, such as your disclosure policy.
  4. Copy the file and serve it at /.well-known/security.txt over HTTPS.
  5. Check the live file with the security.txt validator.

About this tool

A security.txt file tells someone who has found a vulnerability in your site how to report it. Without one, researchers guess at addresses, post in public, or give up, and a report that could have reached you in a day does not arrive at all. RFC 9116 defines the format: a plain text file with a few named fields, served at /.well-known/security.txt.

Two fields are required. Contact is where reports go: a web form, a mailto: link or a tel: number, written as a URI. Expires is the date after which the file should not be trusted, which forces someone to look at it at least once a year; the RFC recommends a date less than a year ahead. The optional fields point to your disclosure policy, your encryption key, a page of acknowledgments, the languages you read, and security job openings.

The usual mistake is publishing the file and forgetting it. An expired file is treated as absent, and a contact that nobody reads is worse than none. Point Contact at something monitored, set a reminder before the Expires date, and consider signing the file with OpenPGP so readers can tell it is yours.

Sources

Questions

Where do I put the security.txt file?

At /.well-known/security.txt on the domain it describes, served over HTTPS as text/plain. RFC 9116 also allows /security.txt at the top level for older tools, ideally as a redirect to the .well-known path.

Which fields are required in security.txt?

Contact and Expires. Contact may appear several times, in order of preference. Expires must appear exactly once and be a full date and time such as 2027-01-31T00:00:00Z.

Do I need a bug bounty to have a security.txt?

No. The file only says how to reach you. A short policy page that says what you welcome, what is out of scope and that you will not take legal action against good-faith reports is enough, and paying rewards is a separate decision.

Should I sign my security.txt?

RFC 9116 recommends an OpenPGP cleartext signature, together with a Canonical field, so a reader can verify the file was not altered or copied from elsewhere. It is optional. An unsigned file served over HTTPS from your own domain is still valid.

Related tools