Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Rails Config Security Audit

    by CashonlyTian

    1

    Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Rails Config Security Audit

    Rails Config Security Audit

    Example session with this skill installed

    Run a security audit on my Rails project located at ./my-app. The project name is "ShopifyClone" and I want the report in English.

    • Read your context and instructions
    • Compiled the rails config security
    • Generated the document

    I have completed the security audit for

    ShopifyClone. The scan analyzed your production environment, database configurations, and initializers.

    Results Summary:

    • Score: 65/100
    • Grade: C
    • Risk Level: Medium-High
    • Findings: 4 Critical, 2 Warning

    Rails Security Audit Report

    CheckScoreStatus
    SSL Enforcement0/15FAIL - force_ssl is missing or false
    Secrets & Credentials5/15FAIL - Literal ENV.fetch fallback found in production.rb
    Error Verbosity10/10PASS - Stack traces are suppressed
    Session Cookies0/10FAIL - secure: true missing in session_store.rb
    Host Authorization10/10PASS - config.hosts is populated
    CORS Policy10/10PASS - No wildcard origins with credentials
    Action Cable5/5PASS - Forgery protection enabled
    Database Security10/10PASS - Credentials managed via ENV
    Active Storage5/5PASS - Using S3 with private ACLs
    Framework & Flags10/10PASS - Rails 8.1.0 pinned; Eager load enabled

    Critical Fixes Required

    Enable SSL Enforcement: Set config.force_ssl = true in config/environments/production.rb. This is the single most important step to protect user traffic.
    2.

    Secure Session Cookies: Update config/initializers/session_store.rb to include secure: true. Without this, session IDs can be intercepted over non-HTTPS connections.
    3.

    Remove Literal Secret Fallbacks: Your production.rb contains a hardcoded fallback string for secret_key_base. Move this to credentials.yml.enc.

    Next steps

    • Review the full details in scan-report.md.
    • See the visual breakdown in scan-2023-10-27.png.
    • Apply the top 3 fixes and run the audit again to reach a Grade A status.

    scan-2023-10-27.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 Rails project's config files (config/environments/production.rb, config/application.rb, config/initializers/.rb, config/routes.rb, config/database.yml, config/storage.yml, Gemfile / Gemfile.lock, .env — all parsed as TEXT with regex, never imported or executed, no Ruby is ever run) BEFORE the app ships — config.force_ssl missing or false in production, HSTS disabled or expiring under 1 year, a literal secret_key_base or literal ENV.fetch fallback, a committed config/master.key, a missing config/credentials.yml.enc while secrets are inlined, full error reports in production (consider_all_requests_local, show_exceptions :all, log_level :debug), session cookies without secure / httponly / same_site / expire_after, an empty config.hosts allowlist, rack-cors origins '' with credentials, Action Cable allowed_request_origins ['*'] or forgery protection disabled, a literal database password / 0.0.0.0 host / sslmode disable / sqlite3 in production, local public Active Storage, and a rails gem below 8.1.0 or unpinned, plus production flags (eager_load, cache_classes, public_file_server). Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report. Use when a user wants to know whether a Rails config is safe to ship.

    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.

    Local static analysis only. Does not scan for gem CVEs or live runtime vulnerabilities. Limited to Rails-specific config files and common environment files like .env.

    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
    Environment Variables
    Listed2 days ago

    What's inside

    Frequently Asked Questions

    The skill performs static analysis (text-based regex parsing) on your configuration files. It never executes your Ruby code, ensuring your environment remains stable and your proprietary logic remains unrun.

    It is compatible with any AI agent that has local filesystem access. The skill scans standard Rails paths like config/environments/production.rb, config/database.yml, and the root Gemfile.

    No, this skill is specifically designed to identify misconfigurations in the Rails framework and your environment files. For dependency-specific vulnerabilities, we recommend pairing this with a specialized CVE scanner.

    You receive the full skill package including the 10-point scoring rubric, the regex-based auditing logic, and a structured reporting template that generates your security scorecard.

    Yes, the skill is designed to recognize security standards across various versions, though it is most effective for modern Rails applications (v5.2 through v7+) that utilize features like config.hosts and encrypted credentials.

    Simply point your agent to your Rails root directory and ask it to run the security audit. The agent will then parse your configuration files and deliver a prioritized risk report with a 0-100 security score.

    New in LLM Ops