Cluster 10 · RFC 9116 · Disclosure · Expires <= 365d

RFC 9116 /.well-known/security.txt Specification & Expiration Linter Guide

Publish a compliant RFC 9116 security.txt file that passes automated security audits: required Contact and <=365-day ISO-8601 Expires fields, Canonical HTTPS URIs, and avoiding SPA HTML 404 traps.

Zero Telemetry · Strict CSP (connect-src 'none')

Domain Trust & Email-TLS Configuration

RFC 8461 · 8460 · 8659 · 9116

Paste-to-Lint Existing security.txt (RFC 9116)

PASS · Pass: 3 · Warn: 0 · Error: 0
RFC9116-CONTACT-OK: 1 valid Contact URI(s) present PASS
Satisfies RFC 9116 §2.5.3.
RFC9116-EXP-OK: Valid Expires timestamp (364 days remaining, <= 365d) PASS
Expires 2027-11-26T00:00:00.000Z satisfies RFC 9116 §2.5.5.
RFC9116-CANON-OK: Canonical HTTPS URL present PASS
https://example.com/.well-known/security.txt
Domain Trust Readiness Score
95 / 100 (A)
HARDENED — TRUST & TLS READY
MTA-STS & TLS-RPT 25/30
BIMI & DMARC Gate 25/25
DNS CAA (RFC 8659) 20/20
RFC 9116 security.txt 25/25

Generated RFC 9116 security.txt

text/plain; charset=utf-8
https://example.com/.well-known/security.txt
Contact: mailto:[email protected]
Expires: 2027-11-26T00:00:00.000Z
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security-policy
Encryption: https://example.com/.well-known/pgp-key.txt
Acknowledgments: https://example.com/security/acknowledgments
Preferred-Languages: en
Hiring: https://example.com/careers
RFC9116-CONTACT-OK: 1 valid Contact URI(s) present PASS
Satisfies RFC 9116 §2.5.3.
RFC9116-EXP-OK: Valid Expires timestamp (364 days remaining, <= 365d) PASS
Expires 2027-11-26T00:00:00.000Z satisfies RFC 9116 §2.5.5.
RFC9116-CANON-OK: Canonical HTTPS URL present PASS
https://example.com/.well-known/security.txt

Complete 4-in-1 Domain Trust Bundle

Markdown / TXT
domain-trust-bundle.md
# Domain Trust Sidecar & Email-TLS Bundle — example.com

- **Domain Trust Readiness Score:** 95 / 100 (Grade A — HARDENED — TRUST & TLS READY)
- **MTA-STS & TLS-RPT:** 25/30 · **BIMI:** 25/25 · **DNS CAA:** 20/20 · **security.txt:** 25/25

## 1. MTA-STS Policy File (`https://mta-sts.example.com/.well-known/mta-sts.txt`)
Serve over HTTPS (`200 OK`, `Content-Type: text/plain; charset=utf-8`, no redirects):
```text
version: STSv1
mode: testing
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
mx: smtp.google.com
mx: *.googlemail.com
max_age: 604800
```

### MTA-STS & TLS-RPT DNS TXT Records
- `_mta-sts.example.com` TXT: `v=STSv1; id=20261127000000Z`
- `_smtp._tls.example.com` TXT: `v=TLSRPTv1; rua=mailto:[email protected]`

## 2. BIMI DNS TXT Record
- `default._bimi.example.com` TXT: `v=BIMI1; l=https://example.com/.well-known/bimi-logo.svg; a=https://example.com/.well-known/bimi-vmc.pem`
- DMARC Prerequisite: `p=reject; pct=100` (READY)

## 3. DNS CAA Records (RFC 8659 BIND Zone)
```bind
example.com. 3600 IN CAA 0 issue "letsencrypt.org"
example.com. 3600 IN CAA 0 issue "pki.goog"
example.com. 3600 IN CAA 0 issuewild "letsencrypt.org"
example.com. 3600 IN CAA 0 issuewild "pki.goog"
example.com. 3600 IN CAA 0 iodef "mailto:[email protected]"
```

## 4. RFC 9116 `https://example.com/.well-known/security.txt`
```text
Contact: mailto:[email protected]
Expires: 2027-11-26T00:00:00.000Z
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security-policy
Encryption: https://example.com/.well-known/pgp-key.txt
Acknowledgments: https://example.com/security/acknowledgments
Preferred-Languages: en
Hiring: https://example.com/careers
```

## Live Verification & Automated Remediation
- Live DoH + Security Scan: https://audit.runglab.dev/?domain=example.com
- Tailored 9-File ReadyCheck Fix Pack ($49): https://www.creem.io/product/prod_6rX3ZZhMCJ5MGugvk75Ogo
- Remote MCP Server (dev.runglab/devtools): https://mcp-server.runglab.dev/
Live DoH + TLS Verification $49 9-File Fix Pack

Verify Live DNS Records or Deploy All 9 ReadyCheck Fixes Together

In our N=140 B2B SaaS Readiness Benchmark, 95.2% (60/63) missed _mta-sts and 79.4% lacked valid RFC 9116 security.txt. Scan your live domain on ReadyCheck (https://audit.runglab.dev), order the tailored $49 9-File Domain Fix Pack, or automate via remote MCP Server dev.runglab/devtools.

RFC Specifications & Provider Requirements

Field / Record Compliant Value Engineering & Rollout Rationale
Canonical Location https://<domain>/.well-known/security.txt RFC 9116 mandates /.well-known/security.txt (root /security.txt is legacy fallback)
Contact (Required) mailto:security@... or https://... Bare emails without mailto: and cleartext http:// URLs fail RFC 9116 §2.5.3
Expires (Required) ISO-8601 UTC, < 365 days ahead Must appear ONCE; expired or >1 year timestamps fail RFC 9116 §2.5.5
Content-Type Header text/plain; charset=utf-8 Never return HTML 200 SPA fallback pages for /.well-known/security.txt

Complete RFC 9116 /.well-known/security.txt Template

security.txt
Contact: mailto:[email protected]
Contact: https://example.com/security/report
Expires: 2027-11-26T00:00:00.000Z
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security-policy
Encryption: https://example.com/.well-known/pgp-key.txt
Acknowledgments: https://example.com/security/hall-of-fame
Preferred-Languages: en
Hiring: https://example.com/careers

Verify Content-Type, Status Code & Expires via curl

verify-security-txt.sh
curl -i https://example.com/.well-known/security.txt
# Confirm:
# 1) HTTP/2 200 (not 404 or SPA text/html)
# 2) content-type: text/plain; charset=utf-8
# 3) Expires timestamp is valid ISO-8601 UTC and < 365 days in the future

Step-by-Step Deployment & Key Insights

  1. Enter your security disclosure email (mailto:security@...) or HTTPS intake form in the Contact field.
  2. Keep the auto-generated +364-day UTC ISO-8601 Expires timestamp so it stays valid without exceeding RFC 9116's 1-year recommendation.
  3. Set Canonical: https://<domain>/.well-known/security.txt and link your Policy and PGP Encryption key if used.
  4. Deploy to /.well-known/security.txt as text/plain; charset=utf-8 and verify no SPA fallback intercepts the route.
  • In RungLab's N=140 B2B SaaS benchmark, 79.4% (50/63) of full-telemetry domains either returned 404 on /.well-known/security.txt (77.8%) or failed RFC 9116 validation by omitting Expires.
  • RFC 9116 §2.5.1 uses American English plural spelling: Acknowledgments (never Acknowledgement). Automated parsers flag British spellings as unknown fields.
  • Single-Page Applications (Vite, React, Next.js static exports) often serve index.html with HTTP 200 for unknown paths — place security.txt explicitly inside public/.well-known/security.txt.

Common Configuration Pitfalls to Avoid

  • Writing Contact: [email protected] without the mailto: URI scheme.
  • Setting Expires: 2099-12-31T00:00:00Z (exceeds 365 days) or forgetting to rotate an expired 2024/2025 timestamp.
  • Serving /.well-known/security.txt with Content-Type: text/html from an SPA catch-all route.

More Domain Trust & Email-TLS Guides

RFC 8461 · Cloudflare Workers + Pages

MTA-STS Setup on Cloudflare: Workers, Pages & DNS TXT Guide

Deploy RFC 8461 MTA-STS on Cloudflare in under 5 minutes without a separate origin server: host https://mta-sts.<domain>/.well-known/mta-sts.txt via Cloudflare Pages or a 12-line Worker plus _mta-sts TXT.

← Back to Domain Trust Sidecar Hub · Cluster 1A: SPF & DMARC Builder → · Cluster 4: Security Headers & CSP → · 2026 N=140 B2B Benchmark → · ReadyCheck Live Audit → · $49 9-File Fix Pack →

Frequently Asked Questions

Why does RFC 9116 require an Expires date under 365 days?

RFC 9116 §2.5.5 requires Expires so researchers know disclosure contacts are actively maintained; setting it <= 365 days in the future avoids stale, abandoned mailboxes.

Where do I put security.txt in Next.js, Cloudflare Pages, or Nginx?

Put it at public/.well-known/security.txt for Next.js/Vite/Cloudflare Pages, or configure a dedicated Nginx location = /.well-known/security.txt block returning text/plain.

Does /.well-known/security.txt count toward ReadyCheck and SOC 2 audits?

Yes — ReadyCheck awards +1 point on the Web Security pillar for a valid non-expired /.well-known/security.txt, and SOC 2 CC7.1 auditors cite it as documented external vulnerability intake.