2ClickKit

RFC 9116 security.txt Generator

Files Never Leave Your Device

Create compliant vulnerability disclosure policies and machine-readable security.txt files with ISO 8601 timestamp verification and OpenPGP signing instructions.

RFC 9116 security.txt Generator & Linter

Standardize vulnerability disclosure contacts and PGP encryption keys for ethical hackers.

100% In-Browser · Private & Secure
RFC Required
Must start with mailto:, https://, or tel:.
Stale files invalidate vulnerability disclosure policies.
Enables researchers to encrypt vulnerability disclosures.
security.txt File Preview
RFC 9116 Compliance CheckRFC 9116 Compliant

How to PGP Clear-Sign (Optional but Recommended)

RFC 9116 recommends signing your security.txt with OpenPGP to prevent tampering:

gpg --clearsign -u <your-key-id> security.txt

Upload the output to: https://yourdomain.com/.well-known/security.txt

The Architecture and Rationale of RFC 9116 (security.txt)

When independent security researchers, academic penetration testers, or ethical bug bounty hunters discover zero-day vulnerabilities in public web applications, their initial challenge is rarely technical—it is organizational. For decades, security researchers attempting to responsibly disclose vulnerabilities were forced to tweet at corporate accounts, submit generic contact forms, or guess unmonitored aliases like [email protected] or [email protected]. In worst-case scenarios, sensitive reports containing remote code execution (RCE) or SQL injection exploits were forwarded to non-technical support staff, exposing the report to internal leaks or complete inaction.

In April 2022, the Internet Engineering Task Force (IETF) ratified RFC 9116: A File Format to Aid in Security Vulnerability Disclosure. Spearheaded by security researcher EdOverflow and Google security engineer Yakov Shafranovich, RFC 9116 establishes a standardized, machine-readable text file hosted at /.well-known/security.txt that clearly delineates who to contact, how to encrypt disclosures, and what legal protections (Safe Harbor) apply to ethical research.

Comprehensive RFC 9116 Directive Reference

The specification defines eight standardized directives. Each line consists of a case-insensitive field name followed by a colon (:) and whitespace-separated parameter value:

Directive Requirement Level Value Scheme Description & Purpose
Contact Mandatory (>= 1) mailto:, https://, tel: Primary address or web form for submitting vulnerability reports. Can appear multiple times.
Expires Mandatory (= 1) ISO 8601 UTC timestamp The exact point in time after which the data in the file must be considered invalid and stale.
Encryption Optional https://, openpgp4fpr: Link to the organization's public OpenPGP key to enable end-to-end encrypted vulnerability triage.
Acknowledgments Optional https:// Link to a public "Hall of Fame" recognizing security researchers who reported valid issues.
Canonical Optional https:// The authoritative canonical URI for the file, preventing MITM injection across secondary mirrors.
Policy Optional https:// Link to the Vulnerability Disclosure Policy (VDP) outlining safe harbor guidelines and scope.
Hiring Optional https:// Link to security career openings, targeting security talent reading your infrastructure files.
Preferred-Languages Optional Comma-separated RFC 5646 codes Languages in which the security team can review reports (e.g., en, de, fr, es).

The Mandatory 'Expires' Header: Combating Stale Contact Data

Unlike robots.txt, which remains valid indefinitely until updated, RFC 9116 enforces an explicit Expires directive. The security rationale is straightforward:

RFC 9116 Freshness and Key Revocation

Corporate restructurings, team turnover, and PGP key expirations frequently leave web contacts obsolete. If a security researcher encrypts an urgent remote zero-day using an expired PGP key whose private key was lost or rotated, the report becomes unrecoverable. Automated scanning tools and bounty platforms reject any security.txt whose Expires timestamp has passed.

RFC 9116 recommends that organizations automate their security.txt rotation in CI/CD pipelines, bumping the expiration timestamp dynamically while enforcing a validity window of less than 365 days.

Web Server Deployment and MIME Type Requirements

To conform with RFC 9116 §3, web server administrators must adhere to four strict infrastructure requirements:

  1. Mandatory Path: The primary authoritative file MUST be accessible at https://<domain>/.well-known/security.txt.
  2. Enforce HTTPS: The file MUST be served over TLS/HTTPS with a valid, trusted certificate. Cleartext HTTP requests must return an HTTP 301 or 308 redirect to the HTTPS endpoint.
  3. MIME Type: The web server must return the HTTP header Content-Type: text/plain; charset=utf-8. Returning text/html or application/octet-stream violates the standard.
  4. No Access Controls: The file must be publicly readable without requiring HTTP basic authentication, CAPTCHAs, cookie banners, or IP whitelists.

Web Server Configuration Snippets

1. Nginx Configuration (/etc/nginx/sites-available/default)

location = /.well-known/security.txt {
    default_type text/plain;
    charset utf-8;
    add_header Access-Control-Allow-Origin "*";
    alias /var/www/html/.well-known/security.txt;
}

2. Apache HTTP Server (.htaccess / httpd.conf)

<IfModule mod_mime.c>
    <Files "security.txt">
        ForceType text/plain
        Header set Access-Control-Allow-Origin "*"
    </Files>
</IfModule>

Cryptographic Integrity: Clear-Signing with OpenPGP

Because security.txt informs external researchers where to send vulnerability disclosures, an attacker who compromises your DNS, CDN cache, or HTTP server could replace your security email with a rogue address to intercept zero-day disclosures.

RFC 9116 §2.3 resolves this threat by supporting OpenPGP clear-text signatures (RFC 4880). Signing the file embeds an immutable cryptographic verification block:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Contact: mailto:[email protected]
Expires: 2027-11-01T15:00:00.000Z
Encryption: https://example.com/pgp-key.txt
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEE...
-----END PGP SIGNATURE-----

Client-Side Privacy Guarantee

Security contact information, private PGP key URLs, and internal vulnerability policies should never be exposed to third-party cloud generation services. 2ClickKit executes 100% inside your local browser memory. No email addresses, phone numbers, or domain URLs are ever uploaded to any server.

How to Use RFC 9116 security.txt Generator

  1. Provide Mandatory Contact Information

    Input your dedicated security team email (mailto:[email protected]) or vulnerability submission portal URL (https://).

  2. Set Expiration Timestamp (Mandatory)

    Set an ISO 8601 UTC expiration date (typically 12 months in the future) to comply with RFC 9116 freshness requirements.

  3. Attach OpenPGP Encryption Key

    Link to your public PGP key so researchers can encrypt vulnerability reports containing sensitive zero-day proof-of-concepts.

  4. Configure Policy & Acknowledgments

    Add optional links to your Vulnerability Disclosure Policy (Safe Harbor terms) and Hall of Fame acknowledgments page.

  5. Deploy to /.well-known/security.txt

    Save the generated file to your web server root at "https://yourdomain.com/.well-known/security.txt" served with Content-Type: text/plain.

RFC 9116 Compliant Declaration Example

Core Directives
Contact: mailto:[email protected]
Expires: 2027-11-01T15:00:00.000Z
Encryption: https://example.com/key.asc
Generated Manifest
Contact: mailto:[email protected]
Expires: 2027-11-01T15:00:00.000Z
Encryption: https://example.com/key.asc
Canonical: https://example.com/.well-known/security.txt

Validated against RFC 9116 mandatory field requirements.

Technical Specifications

  • Supported Inputs: RFC 9116 Security Disclosure Files, OpenPGP Clear-Signed Documents, ISO 8601 UTC Timestamps, RFC 5646 Language Codes
  • Input Limit: Unlimited (in-memory formatting)
  • Processing Engine: 100% In-Browser (ECMAScript RFC 9116 Rule Engine)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Vulnerability reporting contacts, encryption keys, and disclosure policies are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Frequently Asked Questions

What is RFC 9116 (security.txt) and why is it important?

RFC 9116 standardizes a machine-readable text file named 'security.txt' located at '/.well-known/security.txt'. When white-hat security researchers discover critical vulnerabilities in a company's web application, finding the appropriate security contact is notoriously difficult. By standardizing disclosure channels, organizations ensure vulnerabilities are reported securely to their security teams rather than leaking publicly or getting lost in general customer support inboxes.

What are the only two mandatory fields required by RFC 9116?

Under RFC 9116 §2.5, every valid security.txt file MUST include at least one 'Contact' directive (which must begin with mailto:, https://, or tel:) and exactly one 'Expires' directive formatted as an ISO 8601 UTC timestamp. If either field is omitted, the file is considered non-compliant and invalid.

Why does RFC 9116 require an 'Expires' directive?

Organizations change email addresses, decommission reporting portals, and rotate PGP keys. Requiring an explicit expiration date ensures that researchers do not submit sensitive security disclosures to abandoned email addresses or encrypt reports with compromised, outdated encryption keys. The RFC strongly recommends setting expiration timestamps no longer than one year in the future.

Where should the security.txt file be hosted?

The primary standard location defined by RFC 9116 is 'https://<domain>/.well-known/security.txt'. While hosting a secondary copy at 'https://<domain>/security.txt' is permitted for legacy fallback, the '.well-known' location is the authoritative standard. The file must always be served over HTTPS with a Content-Type of 'text/plain; charset=utf-8'.

Should I digitally sign my security.txt file with OpenPGP?

Yes, clear-signing your security.txt file with OpenPGP (using 'gpg --clearsign') is strongly recommended. Signing provides cryptographic proof that the security contact details and PGP key URLs have not been tampered with or replaced by an attacker who compromised your CDN or DNS cache.

Is any organization contact data sent to a backend server?

No. All RFC 9116 string formatting, ISO 8601 timestamp calculations, compliance rule checks, and text file exports run 100% inside your browser using client-side JavaScript. Your internal security email addresses and PGP URLs remain strictly confidential.