Static application security testing (SAST) tools
Which static application security testing tools are there?
Static application security testing tools scan source code for vulnerabilities before it runs. Free options include Semgrep's open-source engine, CodeQL on public repositories, Bandit for Python, Brakeman for Rails and gosec for Go. Commercial suites include Checkmarx, Snyk Code and Veracode. The tools differ in the languages they cover, how deep their data flow analysis goes, how noisy they are, and where results show up.
The tools, alphabetically
- Bandit: a security linter for Python from the Python Code Quality Authority; it checks each file's syntax tree against a set of plugins.
- Brakeman: static analysis for Ruby on Rails applications.
- Checkmarx: a commercial application security platform whose SAST engine covers many languages.
- CodeQL: GitHub's engine, which turns code into a database you query. It powers GitHub code scanning and is free on public repositories.
- Find Security Bugs: a SpotBugs plugin for security audits of Java web applications.
- gosec: security checks for Go source code.
- pokayoke: a GitHub App that reviews every push and pull request. It runs exploits against your code and against a hardened copy to prove what it can, and marks each finding proven or not; on paid plans it sends the fix privately. The Free plan covers three repositories.
- Semgrep: a rule-based scanner whose rules look like the code they match. The engine is open source; the commercial platform adds analysis across files.
- Snyk Code: Snyk's SAST product, with results in the editor and in pull requests; it has a free plan and paid tiers.
- SonarQube: Sonar's code quality and security platform, with a free community build and paid editions.
- Veracode: a commercial platform whose static analysis scans source code, compiled binaries, or both together.
This list is not a ranking. Each description sticks to what the project says about itself, and pokayoke is made by the company that publishes this page.
How to compare them on your own code
- Pick a repository with a vulnerability you already know about, or a deliberately vulnerable app in your language, such as OWASP Juice Shop for Node.js.
- Run each candidate and count what it finds, what it misses and its false positives.
- Time how long a developer needs to confirm one finding.
- Check where results appear: pull request comments, a dashboard or a CI log.
- Price it at your team size, including what happens past the plan limits.