Brakeman.
Review Rails security warnings
Analyze Rails controllers, models and views for unsafe data flow. Triage warnings by confidence and link each accepted exception to a review decision.
Ruby
Community rubric · v1
The evidence
One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.
Latest evidence review ·
Definition
VerifiedThe Rails warning guide identifies interpolation of request data into a SQL condition as a specific unsafe data flow.
Measurement
VerifiedThe worked example shows a source expression, its SQL injection warning and the associated confidence. This checks a particular class of security finding.
Conformance
UnknownNo reviewed evidence is recorded for this dimension.
What would demonstrate a violation? Contribute evidence ↗
CI enforcement
VerifiedBrakeman returns a failure status for security warnings and scanner errors by default. A CI job running the scanner can therefore reject warnings.
Getting started
VerifiedThe quick start installs Brakeman, runs it on a Rails application and walks through a report. The report groups findings and identifies the confidence level to inspect first.
Real-world adoption
VerifiedThe Rails getting-started guide includes Brakeman in generated applications and documents running bin/brakeman as part of the application's security checks.
Agent guidance
VerifiedFor the illustrated Active Record query, locate the interpolated request value in the finding, replace interpolation with bound parameters, and recheck the same query for that warning.
Agent portability
UnknownNo reviewed evidence is recorded for this dimension.
Does the practice work in two agent harnesses? Contribute evidence ↗
Use this standard
Run the check with the tool installed and configured for your project.
bundle exec brakeman
Agent prompt
Use Brakeman in this repository to meet this standard: Review Rails security warnings. Analyze Rails controllers, models and views for unsafe data flow. Triage warnings by confidence and link each accepted exception to a review decision. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.