Works with the AI Agents you already use
Rails Config Security Audit
by CashonlyTian
Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report.
$7
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
| Check | Score | Status |
|---|---|---|
| SSL Enforcement | 0/15 | FAIL - force_ssl is missing or false |
| Secrets & Credentials | 5/15 | FAIL - Literal ENV.fetch fallback found in production.rb |
| Error Verbosity | 10/10 | PASS - Stack traces are suppressed |
| Session Cookies | 0/10 | FAIL - secure: true missing in session_store.rb |
| Host Authorization | 10/10 | PASS - config.hosts is populated |
| CORS Policy | 10/10 | PASS - No wildcard origins with credentials |
| Action Cable | 5/5 | PASS - Forgery protection enabled |
| Database Security | 10/10 | PASS - Credentials managed via ENV |
| Active Storage | 5/5 | PASS - Using S3 with private ACLs |
| Framework & Flags | 10/10 | PASS - 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
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
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