{"id":3821,"date":"2014-11-05T23:08:25","date_gmt":"2014-11-05T15:08:25","guid":{"rendered":"https:\/\/www.darknet.org.uk\/?p=3821"},"modified":"2015-09-09T19:36:43","modified_gmt":"2015-09-09T11:36:43","slug":"brakeman-static-analysis-rails-security-scanner","status":"publish","type":"post","link":"https:\/\/www.darknet.org.uk\/2014\/11\/brakeman-static-analysis-rails-security-scanner\/","title":{"rendered":"Brakeman – Static Analysis Rails Security Scanner"},"content":{"rendered":"

Brakeman is a Rails security scanner – unlike many web security scanners, Brakeman looks at the source code of your application. This means you do not need to set up your whole application stack to use it. Once Brakeman scans the application code, it produces a report of all security issues it has found.<\/p>\n

It works with Rails 2.x, 3.x, and 4.x.<\/p>\n

\"Brakeman<\/p>\n

The only other Ruby-centric tool we’ve covered is:<\/p>\n

Codesake::Dawn \u2013 Static Code Analysis Security Scanner For Ruby<\/a><\/p>\n

If you are interested in more tools of this type you can find our complete list here (which covers various languages) – Code Auditing Tools<\/a>.<\/p>\n

Advantages<\/h2>\n

No Configuration Necessary<\/strong><\/p>\n

Brakeman requires zero setup or configuration once it is installed. Just run it.<\/p>\n

Run It Anytime<\/strong><\/p>\n

Because all Brakeman needs is source code, Brakeman can be run at any stage of development: you can generate a new application with rails new and immediately check it with Brakeman.<\/p>\n

Better Coverage<\/strong><\/p>\n

Since Brakeman does not rely on spidering sites to determine all their pages, it can provide more complete coverage of an application. This includes pages which may not be \u2018live\u2019 yet. In theory, Brakeman can find security vulnerabilities before they become exploitable.<\/p>\n