rails-security
Installation
SKILL.md
Rails Security
When to use
This skill is the Rails-specific layer on top of secure-coding. Convention over configuration covers a lot, but anyone going against the grain (string interpolation in .where, .html_safe on user input, CSRF off because "it was hard") gets vulnerabilities back.
Triggers on:
- A question like "review this Rails app", "Brakeman triage", "Devise hardening", "mass-assignment check", "is our CSP OK", "force SSL".
- Presence of
Gemfile,config/application.rb,config/environments/production.rb,config/routes.rb, Devise setup underconfig/initializers/devise.rb, Pundit/CanCanCan policies. - A PR that touches
html_safe,raw,.where("... #{x} ..."),skip_before_action :verify_authenticity_token, orskip_forgery_protection. - A Brakeman report that needs triaging.
- A handoff from
security-reviewwhere Rails is in the stack.