# security txt builder and checker

> Free: build a valid RFC 9116 security.txt so researchers can report vulnerabilities to you, lint existing files, and get server snippets.

security txt builder and checker is a paid AI agent skill on Agensi by Big t, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Uses: 2
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-10-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/security-txt-builder-and-checker
- Tags: security, legal, web-design, security-txt, rfc-9116, vulnerability-disclosure, bug-bounty, web-security

## About this skill

**Give security researchers a way to reach you, in one command. Free.**

`security.txt` is a short text file at `https://yourdomain/.well-known/security.txt` that tells people who find a vulnerability how to report it. Without one, reports end up in sales inboxes, social media, or nowhere. This free skill gives your AI agent a builder and checker for the official format (RFC 9116), so your file is valid on the first try and stays valid.

### What it does
- **Build:** a valid file from a few answers: contact (email, phone or web page, in order of preference), expiry (default 180 days), disclosure policy, encryption key URL, acknowledgments, hiring and preferred languages. Plain email addresses get `mailto:` added. The output is self-checked before it's written.
- **Check:** lints an existing file against every MUST in RFC 9116: Contact present, exactly one Expires in RFC 3339 format, not expired (with warnings over a year out or within 30 days), https-only web links, mailto/tel URIs, no keys pasted inline, one field per line, valid language tags, PGP-signed layout, Canonical matching the served URL, and IANA-registered field names. It also spots an HTML page saved by mistake, which usually means the file isn't published.
- **Serve:** copy-paste snippets for nginx, Apache, Caddy and static hosts (Netlify, Cloudflare Pages, GitHub Pages, Vercel) to publish at `/.well-known/` with `text/plain; charset=utf-8`, plus a curl command to confirm it.

### Who it's for
Website owners, small businesses, startups, developers and MSPs who want a simple, standard way to receive vulnerability reports, and anyone whose security scanner flagged "security.txt missing".

### Going further: paid skills from the same creator
- **phishing email analyzer:** triage suspicious emails offline with SPF/DKIM/DMARC, look-alike domain detection, defanged IOCs and a risk score.
- **server log threat hunter:** hunt nginx/Apache and SSH logs for attacks and break-ins, with ATT&CK mapping, an incident timeline, IOCs and a reviewable blocklist.
- **small business security audit:** a broader security checkup for a small business.

### What's included
- `SKILL.md`: what to ask, build/check/serve commands, how to explain each finding, and how to publish
- `scripts/securitytxt.py`: `build`, `check` and `serve` commands
- `references/rfc9116-rules.md`: every rule with its RFC 9116 section, the IANA field registry, and server-doc sources
- `examples/`: a valid file and a deliberately broken one

Standard-library Python only. No API keys, no network calls, no installs.

## Requires

- Python

## Known limitations

- Doesn't fetch live files. Save the file first, then check it.
- Checks the PGP-signed layout but doesn't verify signatures.
- Validates format and RFC rules, not whether the mailbox or contact page is actually monitored.
- Doesn't write the disclosure policy itself. It links to yours.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the security txt builder and checker skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Is it really free?

Yes. Build, check and serve are all included with no limits.

### Where does the file go?

At `https://yourdomain/.well-known/security.txt`, served over https as `text/plain; charset=utf-8`. Each domain or subdomain needs its own file. The `serve` command prints config for nginx, Apache, Caddy and static hosts.

### How often do I update it?

Before the Expires date. RFC 9116 recommends an expiry less than a year out. The builder defaults to 180 days and the checker warns when expiry is within 30 days.

### My scanner says the file is invalid. Can this tell me why?

Yes. `check` lists each error with its line number and the exact fix, such as "write mailto:security@..." or "Expires must be an RFC 3339 date-time like 2027-04-01T00:00:00Z".

### Do I need PGP?

No. Signing and an encryption key are recommended but optional. The checker reports them as suggestions, not errors.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
