Skip to content

Instantly share code, notes, and snippets.

@rdlugosz
Last active July 14, 2017 00:48
Show Gist options
  • Save rdlugosz/498ba8b9c2794480ae63 to your computer and use it in GitHub Desktop.
Save rdlugosz/498ba8b9c2794480ae63 to your computer and use it in GitHub Desktop.
Rails Code and Security Tools

Security Tools

Here are some actions to take on a regular basis to ensure the various dependencies in the codebase are kept clean from a security standpoint. Even better would be to schedule these tasks to run automatically via cron.

Security Scanners

Brakeman

Bundle Audit

Code Quality Analysis

Ruby Critic

Rails Best Practices

  • Static code analysis that leverages the best practices tracked on their site
  • $ rails-best-practices
  • $ gem install rails_best_practices
  • http://rails-bestpractices.com/

Find Unused Routes

  • The traceroute gem adds a rake task that finds unreachable routes and actions.
  • $ rake traceroute
  • Add gem 'traceroute' in the development group of Gemfile to install
  • https://github.com/amatsuda/traceroute
@neurogenesis
Copy link

you might find a few additional tools here, like testing for component vulnerabilities (postgresql, etc.) or SQL injections...

https://hakiri.io/blog/ruby-security-tools-and-resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment