Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Brakeman

brakemanscanner.org

  • Free plan
  • Linux
  • Self-hosted

What Brakeman is

Brakeman is a static analysis scanner for Ruby on Rails application source code. It examines Rails code for potential security vulnerabilities, using knowledge of Rails conventions, patterns, and common weakness patterns. Documented warning categories include SQL injection, cross-site scripting, command injection, cross-site request forgery, path traversal, and unsafe deserialization. You can install it as a Ruby gem, through Bundler, or with Docker. Brakeman produces text, HTML, JSON, JUnit XML, and Markdown reports, with JSON recommended for automation. Each warning includes a High, Medium, or Weak confidence estimate, although false positives can occur because the scanner must infer application meaning. It supports automated runs and integrations such as Ruby LSP, Guard, Vim ALE, GitHub Actions, and Jenkins. Brakeman can also run as a Ruby library. The project says it works with Rails 2.3.x through 8.x and requires Ruby 3.2.0 or later.

Who it suits

Brakeman suits Rails developers and security teams reviewing application source code, especially those running scans in automated or CI/CD workflows. Its Rails-specific analysis and multiple report formats also fit teams that need repeatable security checks.

Good to know, and what to watch

  • Rails-specific vulnerability analysis
  • Multiple report formats, including JSON
  • Docker, Bundler, and Ruby gem installation
  • Automation and CI integrations
  • High, Medium, and Weak confidence ratings
  • False positives are possible
  • Faster option may miss vulnerabilities
  • Requires Ruby 3.2.0 or later
  • Linux and self-hosted platforms listed

Brakeman

Free

The verdict

Brakeman focuses narrowly on security analysis for Ruby on Rails code. Its Rails awareness, automation options, and report formats make it suitable for teams incorporating source scanning into development workflows, provided they review possible false positives.

What the maker publishes

Automation
Brakeman is designed for automated runs and documents integrations including Ruby LSP, Guard, Vim ALE, and Jenkins. source
CI integrations
The project README also points to GitHub Actions and a Jenkins/Hudson plugin for continuous integration. source
Compatibility
The project README says Brakeman should work with Rails 2.3.x through 8.x and requires Ruby 3.2.0 or later to run. source
Confidence ratings
Warnings have High, Medium, or Weak confidence levels, which estimate how likely a warning is to represent a problem. source
Detection coverage
The documented warning types include SQL injection, cross-site scripting, command injection, cross-site request forgery, path traversal, and unsafe deserialization. source
False positives
The documentation cautions that Brakeman can produce false positives because it can only guess at the meaning of application code. source
Install options
Brakeman can be installed as a Ruby gem, through Bundler, or using Docker. source
Latest release
The homepage lists Brakeman 8.1.0, dated September 2026, with updates to SonarQube reporting and validation regex warnings. source
Library use
Although designed as a command-line application, Brakeman can also be run as a Ruby library with Brakeman.run. source
Performance option
The --faster option disables some features and may cause Brakeman to miss vulnerabilities. source
Purpose
Brakeman is a static analysis scanner that checks Ruby on Rails application code for potential security vulnerabilities. source
Rails focus
It is built specifically for Rails and understands Rails patterns, conventions, and common vulnerability patterns. source
Reports
It can output text, HTML, JSON, JUnit XML, and Markdown reports; JSON is recommended for automation. source
Support
The project links users to GitHub Discussions and Issues for community questions and bug reports. source

Checked against the maker's pages on 9 Oct 2026.