GS/BS
← Standards directory
Security

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

Evidence coverage6 / 8
6 supported · 2 unresolved

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

    Verified

    The Rails warning guide identifies interpolation of request data into a SQL condition as a specific unsafe data flow.

    Cited source ↗
  • Measurement

    Verified

    The worked example shows a source expression, its SQL injection warning and the associated confidence. This checks a particular class of security finding.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Verified

    Brakeman returns a failure status for security warnings and scanner errors by default. A CI job running the scanner can therefore reject warnings.

    Cited source ↗
  • Getting started

    Verified

    The 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.

    Cited source ↗
  • Real-world adoption

    Verified

    The Rails getting-started guide includes Brakeman in generated applications and documents running bin/brakeman as part of the application's security checks.

    Cited source ↗
  • Agent guidance

    Verified

    For 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.

    Cited source ↗
  • Agent portability

    Unknown

    No 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.
Read the agent skill ↗

Primary source

Brakeman documentation ↗