Works with the AI Agents you already use
Mastodon Config Security Audit
by CashonlyTian
Scores 10 checks 0-100 with grade and score-card PNG.
$7
Mastodon Config Security Audit
Example session with this skill installed
Audit my Mastodon setup in ./acme-mastodon-demo (project "Acme Mastodon Demo"). The version is v4.7.4 and I'm using the default docker-compose.yml from the repo.
- Read your context and instructions
- Compiled the mastodon config security
- Generated the document
The security audit for project
Acme Mastodon Demo is complete. The configuration contains critical exposures that must be resolved before deployment.
Mastodon Security Audit Results
| Metric | Value |
|---|---|
| Security Score | 0/100 |
| Grade | F |
| Risk Level | CRITICAL |
| Findings | 54 |
| Checks passed | 0/10 — all 10 checks fail |
Top 3 Required Fixes
Upgrade Version: Current version v4.7.4 is vulnerable to CVE-2026-136631 (Token Auth Bypass), CVE-2026-25540 (Cache Poisoning) and CVE-2026-22246 (Severed-Relationship Leak). Update to v4.7.6.
2.
Close Database Ports: docker-compose.yml publishes Postgres 5432, Redis 6379 and Elasticsearch 9200 to 0.0.0.0. Restrict to 127.0.0.1 or remove the host bindings.
3.
Strengthen Secrets: SECRET_KEY_BASE in .env.production is weak / below the 64-character minimum. Run rails secret to generate new, cryptographically strong keys.
Detailed Finding Report
- [CRITICAL]
version: v4.7.4 is affected by CVE-2026-136631, CVE-2026-25540 and CVE-2026-22246. Points: 0/10. - [CRITICAL]
secrets:SECRET_KEY_BASEis weak andOTP_SECRETis too short (<32 chars). Points: 0/10. - [CRITICAL]
database_exposure: Postgres port 5432 is published globally. Points: 0/10.
[CRITICAL] redis_and_search_exposure: Redis is published on 6379 and Elasticsearch on 9200 without authentication. Points: 0/10.
- [HIGH]
file_permissions:.env.productionis set to 0644 (world-readable). Points: 0/10. - [HIGH]
tls: No TLS configured for media / web endpoints. Points: 0/10. - [HIGH]
smtp: SMTP is unencrypted. Points: 0/10. - [HIGH]
trust_auth: Trust-auth mode is enabled. Points: 0/10. - [HIGH]
retention: IP and session retention periods are not set. Points: 0/10. - [LOW]
retention_and_backups: Nobackups/directory detected in the path. Points: 0/10.
Next steps
- Run
rails secretto generate new, cryptographically strong keys for your.envfile. - Modify the
portssection indocker-compose.ymlto bind services to the loopback interface. - Enable TLS and encrypted SMTP, disable trust auth, and configure backups.
- Re-run this audit after applying changes to verify the new score.
Clean re-run — Mastodon 4.7.6
| Metric | Value |
|---|---|
| Security Score | 100/100 |
| Grade | A |
| Risk Level | LOW |
| Findings | 0 |
| Checks passed | 10/10 |
After upgrading to Mastodon 4.7.6 and fixing every finding above, the re-run passes all 10 checks with 0 findings.
Empty-directory sanity check
| Metric | Value |
|---|---|
| Security Score | 100/100 |
| Grade | A |
| Findings | 0 |
An empty directory has nothing to audit and passes cleanly.
Report saved to: scan.md
Card generated: scan.png
scan.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Audit a Mastodon install — 4.7.4 vs the Nov 2026 flaws (CVE-2026-136631 token auth bypass, CVE-2026-25540 cache poisoning, CVE-2026-22246 severed-relationship leak), weak SECRET_KEY_BASE, trust auth, published 5432/6379/9200, no TLS, no backups. Scores 10 checks 0-100 with grade and score-card PNG.
Your Mastodon instance is a liability if the configuration is insecure. Default setups and copied boilerplates often leave databases exposed or use weak secrets that allow full takeover. This skill audits your Mastodon install directory before you go live to ensure you are not an easy target. It is local-only: pure Python and Pillow, no network access. It parses .env.production and docker-compose.yml as text, without executing any code or starting services.
What it does
- CVE Matching compares your version against a verified table of critical bypass and leak vulnerabilities, including the November 2026 flaws CVE-2026-136631, CVE-2026-25540 and CVE-2026-22246.
- Secret Analysis checks
SECRET_KEY_BASEandOTP_SECRETfor minimum length and uniqueness. - Exposure Scanning identifies if Postgres (5432), Redis (6379) or Elasticsearch (9200) ports are published to the internet.
- Protocol Verification flags unencrypted SMTP mail, non-TLS media endpoints, and insecure federation / trust-auth modes.
- Permission Audits detects world-readable
.env.productionfiles and insecure directory modes. - Retention & Backup Checks validates IP and session retention periods and that backups are configured.
How it works
- Target Selection — point the tool at your local Mastodon install directory containing
.env.productionanddocker-compose.yml. - Local Analysis — the scanner parses configuration files as text, with no network access and no services started.
- Score Generation — produces a 0-100 score, letter grade, and a prioritized list of specific configuration fixes across 10 checks.
- Visual Reporting — outputs a shareable PNG score-card and a detailed Markdown report with severity-ranked findings.
Frameworks & tools
The skill audits files specific to the Mastodon ActivityPub server, including Ruby on Rails configurations, Docker Compose manifests, and environment files. It specifically looks for Postgres, Redis, and Elasticsearch service definitions. It runs on pure Python with Pillow only.
Why this beats prompting it yourself
Generic LLM prompts often miss the specific version-to-CVE mappings or the exact length requirements for Mastodon's encryption keys. This skill uses a structured 10-check rubric to ensure no critical infrastructure exposure is overlooked.
Use cases
- Audit a new install directory before the first
docker-compose up. - Verify a version upgrade successfully mitigates known token bypass vulnerabilities.
- Check if a configuration copied from a tutorial has left default passwords active.
- Generate a security scorecard for a client or community-run instance.
Known limitations
This tool scans local configuration files only. It cannot audit a running live instance over the network or detect application-level logic flaws outside of the provided config files.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Scans local config files only. No network-based probing. Skips files over 2MB. Only checks verified CVEs listed in the skill logic.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3Pillow