designwithfocus

Development tools & DevOps

Best Static Code Analysis Tools for Security Reviews

By Design With Focus Team 10 min read
Source file on a review screen with security findings marked in the margin

Short answer

A security review needs a scanner that reads source code before the program runs. Semgrep, GitHub CodeQL, and SonarQube are the first pages to open. Snyk Code, Checkmarx, Bearer, and SpotBugs cover paid platforms and a free Java checker. Choose by language, private-repo rules, and whether a free tier is enough.

Last verified against the sources listed below.

Key takeaways

  • Semgrep's Free Edition is $0 for up to 10 contributors. Teams starts at $30 per contributor per month for Code.
  • CodeQL is free for research and open source. GitHub Code Security is $30 per active committer per month.
  • SonarQube Cloud Team starts at $34 per month for up to 100k lines of private code, with a free tier to 50k.
  • Snyk's Free plan is $0. The Team plan starts at $25 per month and raises the Snyk Code test cap.
  • Checkmarx publishes no list price. SpotBugs is free under the LGPL and looks for bugs in Java.
  • Bearer still offers a free open SAST command-line engine. Its site says Cycode has acquired Bearer.

The best static code analysis tools for security reviews read source code and flag risky patterns before the program runs. A small team usually starts on a free tier, then pays when private repositories, more languages, or a support contract show up.

Semgrep, CodeQL, and SonarQube are the three product pages to open first. Snyk Code, Checkmarx, Bearer, and SpotBugs cover a broader app-security suite, a quote-only platform, an open scanner, and a Java bug finder. Figures below are copied from the vendor pages opened for this guide.

Quick comparison

Tool Best for Starting price Free plan or trial Standout feature
Semgrep App teams who want SAST with a free cap $0, Teams from $30 per contributor/month Free Edition, up to 10 contributors Code, Supply Chain, and Secrets as separate products
CodeQL GitHub repos and open source research Free for open source; Code Security $30 per committer/month Code scanning on public GitHub repos Query language for variant analysis
SonarQube Teams billed by private lines of code Team from $34/month for up to 100k LOC Free tier to 50k LOC, 14-day trial Cloud plan plus an open source Community Build
Snyk Code Developers who also scan dependencies Team from $25/month Free plan at $0 SAST test caps listed next to the plan
Checkmarx Enterprises that buy a package Custom pricing, see vendor Demo, no self-serve free trial SAST and supply chain in one quote
Bearer A free command-line SAST engine Free open engine, cloud price not listed Free CLI Site says Cycode acquired Bearer
SpotBugs Java bug finding without a subscription Free, no paid plan listed Free under the LGPL Successor of FindBugs for Java

Semgrep

Semgrep is an application security platform whose pricing page sells Code (SAST), Supply Chain, and Secrets. The Free Edition is the hosted scanner with a hard cap on contributors and repositories.

Best for a team that wants a free SAST start and a per-contributor upgrade.

  • Free Edition includes Code and Supply Chain at $0 per contributor.
  • The free cap is 10 contributors and 10 repositories.
  • Teams sells Code at $30 per contributor per month and Secrets at $15.
  • Enterprise adds custom CI options and is quoted, not listed.

As of December 2026, Semgrep’s pricing page lists Teams starting at $30 per month per contributor. Enterprise is custom pricing.

  • Pro: The free edition is a real product, not a time-limited sample of Code and Supply Chain.
  • Pro: You can buy Code without buying Secrets.
  • Con: Cost scales with contributors once you leave the free cap.
  • Con: Enterprise has no public dollar price.

CodeQL

CodeQL’s own docs call it a language and toolchain for code analysis, built so a researcher can look for variants of one bug across many codebases. GitHub’s code scanning docs call CodeQL the analysis engine behind those alerts.

Best for open source on GitHub, and for companies that already pay for GitHub Code Security.

  • The CodeQL site says the engine is free for research and open source.
  • Code scanning is available on public repositories on GitHub.com.
  • Organization-owned private repos need GitHub Code Security on Team or Enterprise plans.
  • You can write custom queries, which is a separate skill from clicking a toggle.

As of December 2026, GitHub’s Code Security page lists GitHub Code Security at $30 USD per active committer per month. Secret Protection is a different product at $19 USD per active committer per month.

  • Pro: Public repositories can use code scanning without that Code Security line item.
  • Pro: The query model is aimed at finding variants, not only one hard-coded pattern.
  • Con: Private organization code needs the paid Code Security product.
  • Con: Learning the query language is part of the tool, not an optional extra.

SonarQube

SonarQube Cloud is Sonar’s hosted static analysis product. The pricing page also points at SonarQube Server for teams that host the scanner themselves, and at a Community Build it calls open source.

Best for a group that wants a line-of-code price instead of a per-seat security suite.

  • Team is the self-serve paid cloud plan.
  • A free tier covers private projects up to 50k lines of code.
  • The page says the Team plan includes a 14-day trial and no credit card to start.
  • Server editions (Developer, Enterprise, Data Center) are priced per instance per year. This page does not print those dollar amounts.

As of December 2026, Sonar’s pricing page says SonarQube plan pricing starts at $34 monthly for analysis of up to 100k lines of code. Enterprise cloud pricing is arranged with sales.

  • Pro: The free private-code tier and the open source Community Build are both stated on the pricing page.
  • Pro: Only private lines count toward the paid cap.
  • Con: A larger private codebase moves the monthly price, and the page says other line-of-code steps exist.
  • Con: Enterprise and the self-hosted commercial editions are not a single public checkout price.

Snyk Code

Snyk Code is Snyk’s SAST product. The plans page sells Free and Team across Snyk Code, Open Source, Infrastructure as Code, and Container, then points enterprise features at a demo.

Best for a developer who wants SAST and dependency checks on one bill.

  • Free is $0 per month and includes SAST, SCA, IaC, and container scanning.
  • Team starts at $25 per month, billed monthly, for teams of up to 10 developers.
  • Free Snyk Code is listed at 100 tests per month. Team is listed at 1,000 tests per month.
  • The free plan’s written limits are Open Source 200 tests, Code 100, IaC 300, and Container 100.

As of December 2026, Snyk’s plans page shows Free at $0 and Team starting at $25 per month. Evo features such as AI pentesting are not on Free or Team. They need an enterprise subscription.

  • Pro: The test caps are printed next to the plan, so the free limit is visible before you scan.
  • Pro: Public open source commits are excluded from the developer count.
  • Con: One hundred code tests a month is a small free allowance.
  • Con: The newer enterprise capabilities are demo-only, not a self-serve upgrade.

Checkmarx

Checkmarx One is Checkmarx’s application security platform. The pricing page sells packages rather than a public monthly rate, and it says coverage depends on modules and how you deploy.

Best for a security team that expects a custom quote and a guided demo.

  • Packages on the page include Start with SAST, Start with Supply Chain, Essentials, Professional, and Enterprise.
  • The page says there is no one-size list price.
  • Credits can be applied across detection, prioritization, and remediation.
  • A quote starts from a form, and the page says a specialist follows up.

As of December 2026, Checkmarx’s pricing page shows custom pricing, see vendor. It also says there is no self-serve free trial, and that a demo is the way to see the product.

  • Pro: You can start the quote from SAST instead of buying every module.
  • Pro: The page explains why the price is custom, instead of hiding a number behind a login wall only.
  • Con: You cannot read a dollar amount before you talk to sales.
  • Con: There is no self-serve trial on that pricing page.

Bearer

Bearer’s homepage describes a developer-first SAST product and a free, open command-line engine. The same page says Bearer has been acquired by Cycode. The pricing URL redirects to that homepage and does not print a dollar amount.

Best for someone who wants an open SAST engine and accepts that the company now points at Cycode.

  • Bearer CLI is labeled a free and open SAST engine.
  • Bearer Cloud is described as code security at scale.
  • The page offers “start for free” and “book a demo.”
  • No seat price or scan price appears on the homepage.

As of December 2026, Bearer’s site does not list a numeric price. Treat the CLI as the free plan the page states, and treat Bearer Cloud as custom pricing, see vendor.

  • Pro: The command-line engine is explicitly free and open.
  • Pro: The acquisition notice is on the homepage, so you are not guessing the company’s status.
  • Con: Cloud pricing is not printed.
  • Con: A buyer has to sort Bearer Cloud from the Cycode product the banner names.

SpotBugs

SpotBugs is a static analysis tool for Java. The project site presents the tool, and the GitHub README says it is FindBugs’ successor, licensed under the GNU Lesser General Public License.

Best for a Java repo that needs a free bug finder with no subscription.

  • It looks for bugs in Java code.
  • The license on the README is the LGPL.
  • The site and the README do not list a paid tier.
  • You build or download it and run it yourself. Gradle is the build tool the README names.

As of December 2026, SpotBugs publishes no price because it does not sell a plan. The cost is your time to run it.

  • Pro: No per-seat or per-line fee on the project site.
  • Pro: The license is named in the README, so redistribution terms are not a mystery.
  • Con: The documented target is Java, not a multi-language security suite.
  • Con: There is no hosted dashboard or support plan on the pages opened here.

How to choose a static analysis tool

Match the scanner to where the code already lives. If the repo is on GitHub and public, code scanning is available without the Code Security add-on. Private organization repos are a different checkout.

Count the unit the vendor bills: Semgrep and Snyk talk about contributors or developers, Sonar talks about private lines of code, and Checkmarx talks about a package. A tool that looks cheap per seat can cost more on a large codebase, and the reverse is also true.

Read the free cap before you pick a free plan: Semgrep stops at 10 contributors, Snyk stops free Code at 100 tests a month, and Sonar’s free private tier stops at 50k lines. Those caps are the real comparison.

Separate a bug finder from an app-security suite. SpotBugs and the Bearer CLI are tools you run. Checkmarx and Snyk also sell a platform around the findings. A security review might need both a scanner and a place to track fixes.

A scanner does not replace the rest of website security, such as transport, accounts, and updates.

If the scanner itself runs in a hosted CI account, the cloud computing primer is the backdrop for where that job sits.

When the review page includes an icon, minify the SVG before you ship it.

How we picked these tools

The list came from public docs, pricing pages, and product pages opened for this guide. Each product had to be a live static-analysis or SAST offering, with either a printed price, a stated free license, or an explicit custom quote.

Semgrep, Sonar, Snyk, Checkmarx, and GitHub Code Security all had a pricing or product page with a plan name. CodeQL’s docs page supplied the engine description, and the code scanning doc supplied where it runs. Bearer stayed because the homepage still describes the CLI and states the Cycode acquisition. SpotBugs stayed because the project site and README still describe a maintained Java analyzer under the LGPL.

Nothing here is a lab score. There is no vulnerability count, speed ranking, or user total in this comparison, because those figures were not taken from a page we are willing to treat as a price or a spec.

Frequently asked questions

Does a static scan replace a penetration test?

No. Static analysis reads the source you give it and reports patterns in that code. It does not click through a running site, guess passwords, or watch live traffic. GitHub's code scanning docs treat the scan as a check you can show on pull requests. A human still has to decide which findings to fix, and a running app can fail in ways the source text never names.

Can CodeQL run on a private repository without GitHub Code Security?

GitHub's code scanning page says public repositories on GitHub.com can use code scanning. Organization-owned repositories on GitHub Team, GitHub Enterprise Cloud, or GitHub Enterprise Server need GitHub Code Security enabled. The CodeQL site separately allows the engine for research and for code under an OSI-approved open source license. A private company repo is the case that hits the paid product.

What does Sonar count as a line of code?

Sonar's pricing FAQ says lines of code are summed from each project analyzed, using the most recent analysis. Only private projects count toward the cap. If a project has branches, Sonar counts the lines in the largest branch. How often you scan does not multiply the bill. A 6,000-line private project scanned many times still counts as 6,000 lines.

How does Snyk decide who is a developer on the bill?

Snyk's pricing page says a contributing developer is someone who committed to a private repo that Snyk monitors, during the last 90 days. Commits to public open source repos are not counted. The count shows on Snyk's usage page. Free and Team plans also cap tests per product, and those test caps are separate from the developer count.

Is SpotBugs the same project as FindBugs?

The SpotBugs README calls SpotBugs the spiritual successor of FindBugs and says it carries on from where FindBugs left off. The license named there is the GNU Lesser General Public License. The project site does not list a paid plan, a seat price, or a cloud subscription. You download the tool and run it on Java code.

Sources