Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Mastodon Config Security Audit

    by CashonlyTian

    1

    Scores 10 checks 0-100 with grade and score-card PNG.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Mastodon Config Security Audit

    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

    MetricValue
    Security Score0/100
    GradeF
    Risk LevelCRITICAL
    Findings54
    Checks passed0/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_BASE is weak and OTP_SECRET is 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.production is 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: No backups/ directory detected in the path. Points: 0/10.

    Next steps

    • Run rails secret to generate new, cryptographically strong keys for your .env file.
    • Modify the ports section in docker-compose.yml to 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

    MetricValue
    Security Score100/100
    GradeA
    Risk LevelLOW
    Findings0
    Checks passed10/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

    MetricValue
    Security Score100/100
    GradeA
    Findings0

    An empty directory has nothing to audit and passes cleanly.

    Report saved to: scan.md
    Card generated: scan.png

    scan.png

    PDF · document

    Generated

    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_BASE and OTP_SECRET for 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.production files and insecure directory modes.
    • Retention & Backup Checks validates IP and session retention periods and that backups are configured.

    How it works

    1. Target Selection — point the tool at your local Mastodon install directory containing .env.production and docker-compose.yml.
    2. Local Analysis — the scanner parses configuration files as text, with no network access and no services started.
    3. Score Generation — produces a 0-100 score, letter grade, and a prioritized list of specific configuration fixes across 10 checks.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed2 days ago

    What's inside

    Frequently Asked Questions

    The skill requires access to your local Mastodon install directory containing your `.env.production` and `docker-compose.yml` files. It performs a static text analysis of these files without needing to execute code or connect to your live database.

    No, this skill is designed for 'Pre-Flight' or local audits and scans configuration files specifically. It cannot perform remote network penetration tests on a live, publicly reachable URL.

    The skill is compatible with any AI agent that has file-system access or the ability to read uploaded text documents. It works best with agents that support Markdown rendering for the detailed security report and PNG display for the scorecard.

    The CVE matching table is updated regularly to include the latest Mastodon-specific vulnerabilities, such as account takeover exploits and media-leak bugs. Your purchase includes access to the most current threat signatures available at the time of use.

    Beyond identifying vulnerabilities, the skill provides a prioritized list of specific configuration fixes and a 0-100 security score. You will receive a detailed Markdown report for your technical team and a PNG scorecard for quick reference.

    New in LLM Ops