A security.txt file helps a researcher find the right vulnerability-reporting contact. It does not grant permission to test a system.
RFC 9116 defines the file format and explicitly warns that researchers should not treat the file’s presence or absence as permission granted or denied. Testing authorization belongs in an applicable vulnerability-disclosure policy, written scope, or other controlling authority.
What the standard requires
For a web service, RFC 9116 places the file at /.well-known/security.txt over HTTPS. A Contact field and an Expires field are required. The standard also supports fields such as Canonical, Policy, Encryption, and Preferred-Languages.
The six-step owner-controlled build
- Assign a human owner. Name who receives, triages, and escalates reports. A file without a monitored route creates false confidence.
- Define authority separately. If testing is allowed, publish the exact systems, methods, data boundaries, time limits, prohibited actions, safe-harbor language, and stop conditions through qualified review. Do not infer scope from the contact file.
- Create the file. Include at least one valid contact URI and a future expiration date. Add canonical and policy links when they are controlled and accurate.
- Protect intake. Treat submitted reports, URLs, attachments, logs, credentials, customer data, and reproduced evidence as potentially sensitive or hostile. Do not paste them into public AI tools.
- Test the route safely. From a fresh context, retrieve the exact HTTPS path, confirm content type and current fields, then send only a synthetic non-vulnerability message through the authorized reporting route.
- Repair and retest. Record receipt, triage owner, status, fix, rollback point, and authorized retest. Never ask a reporter to repeat uncertain destructive steps.
Minimal example
Contact: mailto:security@example.org
Expires: 2027-05-01T00:00:00Z
Canonical: https://example.org/.well-known/security.txt
Policy: https://example.org/security-policy
Replace every example value with a real controlled route. A stale expiration date, unmonitored inbox, wrong canonical host, broken policy link, or inaccessible encryption key is a release failure—not a cosmetic issue.
Authorization stop card
| Question | Stop if unknown |
|---|---|
| Who owns the target system? | Do not test without verified ownership or explicit authorization. |
| What exact assets and actions are in scope? | A contact address is not scope. |
| What data may be accessed or retained? | Use synthetic data and the least invasive proof. |
| Who handles an urgent report? | Escalate to a responsible human; do not publish sensitive detail. |
Primary sources
- IETF RFC 9116 — A File Format to Aid in Security Vulnerability Disclosure
- OWASP Cheat Sheet Series — Vulnerability Disclosure
Discover more from Louisville Institute of Technology (LIT) - Louisville, KY
Subscribe to get the latest posts sent to your email.