Search tools

security.txt Generator

Tell security researchers how to reach you, in the standard file they look for first.

security.txt Generator tool

    Upload it to /.well-known/security.txt on your domain, served as plain text over HTTPS. Set a reminder to renew it before it expires, as an out-of-date file tells researchers the contact may no longer work.

    Processing runs in your browser.

    If someone finds a security hole in your website, you want them to tell you, not post it publicly or ignore it. Many well-meaning researchers give up when they can’t find who to contact. A security.txt file solves that with one predictable address: https://yourdomain.com/.well-known/security.txt.

    What a basic file looks like

    Contact: mailto:[email protected]
    Expires: 2027-10-21T23:59:59.000Z
    Preferred-Languages: en
    Canonical: https://example.com/.well-known/security.txt

    That is enough to be valid. The contact can be an email, a web form or a phone number, and you can list several in order of preference.

    Optional fields worth adding

    • Policy links to your vulnerability disclosure policy: what may be tested, how quickly you reply, and whether you offer rewards.
    • Encryption links to a PGP key, so reports about serious issues can be sent privately.
    • Acknowledgments links to a page thanking people who reported issues. It is a free way to encourage good reports.
    • Hiring links to security job openings.

    Practical tips

    Use a shared mailbox like security@ rather than one person’s address, so reports aren’t lost when people change roles. Serve the file over HTTPS as plain text. Many sites also put a copy at /security.txt in the root for older tools. Finally, set a reminder before the expiry date: an expired file tells researchers the contact details may be out of date.

    How to use the security.txt Generator

    1. Enter at least one contact: an email address, an https:// form URL or a phone number.
    2. Set the Expires date. The default is 11 months from today.
    3. Add your disclosure policy, PGP key and acknowledgments page if you have them.
    4. Download the file and upload it to /.well-known/security.txt.

    Features

    • Follows RFC 9116: Contact, Expires, Encryption, Acknowledgments, Preferred-Languages, Canonical, Policy and Hiring.
    • Adds mailto: to plain email addresses automatically.
    • Writes Expires as an ISO 8601 timestamp and warns if it is past or more than a year away.
    • Checks that every URL uses https://.
    • Downloads as a plain-text file, ready to upload.

    Frequently asked questions

    What is security.txt?

    It is a small text file, defined in RFC 9116, that tells people who find a security problem on your site how to report it. Researchers and automated scanners check /.well-known/security.txt first.

    Is security.txt required?

    It isn’t required by law in most places, but it is recommended by government cyber security agencies such as the UK’s NCSC and the US CISA, and it is part of many security checklists.

    Why does the file need an expiry date?

    So researchers don’t rely on an outdated contact. RFC 9116 makes Expires mandatory and recommends a date less than a year away. Put a reminder in your calendar to update it.

    Should I sign the file?

    Signing it with PGP (cleartext signature) is optional but lets researchers confirm it came from you. If you sign it, include the Canonical field so the signature can’t be reused on another site.

    Written by