Researchers who find a security flaw need a trustworthy way to report it. A security.txt file provides a machine-readable path to an organization's disclosure contact and policy. It is not an authorization to test systems, a substitute for a vulnerability disclosure program, or a promise that every report will receive a bounty. The file should point to a real process that someone owns and monitors.
RFC 9116 defines the file format and its location for web-based services. The canonical location is https://example.com/.well-known/security.txt. The file must be plain text in UTF-8, include a Contact field and exactly one Expires field, and should have current information. A stale or misleading contact can leave a serious report unattended, so publication is an operational commitment rather than a one-time SEO task.
Before publishing contact details, designate an accountable security mailbox or reporting portal, the people who monitor it, a backup route, and a response-time target. Avoid listing a personal mailbox that may be abandoned or whose owner cannot safely triage reports. Ensure the mailbox can receive encrypted messages if an encryption key is published, and document how that key is verified and rotated.
Write a separate disclosure policy that states in plain language which products and hosts are in scope, which testing methods are prohibited, how to send reproduction steps, what data researchers must avoid accessing, how the organization will acknowledge a report, and how coordinated disclosure is handled. Make clear that the file itself does not grant permission to test systems. If safe harbor or legal protections are offered, have the organization review the language rather than copying another company's policy.
The U.S. federal vulnerability disclosure policy template and NIST guidance provide program-level context. They are not a substitute for tailoring scope and response commitments to a private organization's actual systems, legal jurisdiction, and staffing. Do not promise a bounty, public recognition, or response deadline unless the organization has approved and can deliver it.
A minimal example is:
Contact: mailto:security@example.com
Policy: https://example.com/security
Preferred-Languages: en
Expires: 2027-10-31T23:59:00Z
Canonical: https://example.com/.well-known/security.txt
Replace the example values with controlled, working resources. The expiration must be a future RFC 3339 timestamp and should generally be less than a year away, as RFC 9116 recommends. Canonical should identify the HTTPS location of this file. Keep the Policy page aligned with the real disclosure process, and test that every referenced URL or mailbox works without requiring a user account that a researcher cannot obtain.
Do not put secrets, internal network details, private personal information, or an unmonitored phone number in the file. If providing an OpenPGP encryption key, link to the public key only and include a trustworthy way to validate its fingerprint. A Contact address becomes public and may receive spam; plan filtering and triage capacity without rejecting legitimate reports solely because they look automated.
Deploy the file at the origin's /.well-known/security.txt path with HTTPS and a text/plain; charset=utf-8 response. Check the actual production response, not only the source file. Verify that a CDN, framework fallback, or single-page-app rewrite does not return HTML for the requested path. If a legacy root-level /security.txt is also served, have it redirect to the well-known location and avoid maintaining conflicting copies.
Test with a request such as:
curl -i https://example.com/.well-known/security.txt
Confirm a successful status, correct content type, UTF-8 text, one Contact, one Expires, and a date still in the future. Validate each linked resource and confirm the canonical URL matches the retrieved location. Monitor the file after deployments so a build or redirect change does not silently replace it with an application page.
Route reports into a tracked queue with restricted access. Acknowledge receipt, ask for missing details without demanding unnecessary personal information, and avoid asking researchers to send live secrets or other people's data. Triage reports for scope, impact, reproducibility, and safe remediation. Keep incident reports such as active compromise separate from product vulnerability disclosures so urgent events are not left in a routine queue.
Set a calendar reminder well before expiration and assign it to an owner with a backup. Revalidate the address, policy, key, and contact staffing whenever the security team or domain changes. If the organization cannot currently monitor a mailbox, update the file to a channel that is supported or remove stale details; do not let an expired security.txt create false confidence.
Review disclosure statistics without publishing sensitive report details. Useful operational measures include acknowledgement time, time to triage, time to remediation, out-of-scope volume, and recurring product causes. Use findings to improve secure development and incident response. Do not publish researcher identity or vulnerability details before coordinated disclosure is complete unless the parties have agreed.
Publishing security.txt does not authorize testing. Researchers should follow the linked policy and obtain permission for activity outside its scope. Organizations should keep contacts and expiration dates current and protect the reporting mailbox from unauthorized access. Last updated: 2026-11-09. Change log: Initial publication; required file behavior checked against RFC 9116.