rails_security_scan
Run Brakeman static security analysis on a Rails app to find vulnerabilities after code edits or before deployment, optionally filtering by files and confidence level.
Instructions
Run Brakeman static security analysis on Rails app. Use when: after editing controllers/models/views, reviewing code for vulnerabilities, or before deploying. Filter with files:["app/controllers/users_controller.rb"], set confidence:"high" to reduce noise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File paths relative to Rails root to filter results (e.g. ['app/controllers/users_controller.rb']). Omit to scan entire app. | |
| checks | No | Run only specific checks by Brakeman class name (e.g. ['CheckSQL', 'CheckCrossSiteScripting']). Omit to run all checks. | |
| detail | No | Detail level. summary: counts only. standard: warnings with file/line (default). full: warnings with code snippets and remediation links. | |
| confidence | No | Minimum confidence level for reported warnings. high: fewest results, most certain. weak: all warnings (default). |