# SonarQube

Checks code quality and security on every pull request; finds bugs, insecure code, leaked secrets and IaC mistakes, with dependency scanning as an add-on.

- Vendor: Sonar (SonarSource) (Switzerland)
- Price: Low cost. Community Build free; Cloud free up to 50k lines; Team from about $34/month; Advanced Security extra.
- Free tier: yes · Open source: yes · Can be run for you: no
- Website: https://www.sonarsource.com/products/sonarqube/
- Page: https://securitystackcompare.com/en/tools/sonarqube

## Why teams pick it
- Free, open-source Community Build you can host yourself.
- Supports 30+ languages and plugs into GitHub, GitLab, Azure DevOps and Bitbucket.
- Cloud Team plan is priced by lines of code, not per user.

## Watch out for
- Dependency scanning (SCA) needs the paid Advanced Security add-on, offered on Enterprise plans.
- Much of what it flags is code quality, not security; teams must set which rules block merges.

## Coverage of the 15 security building blocks
| Building block | Coverage |
|---|---|
| Updates & vulnerability scanning | Basic |
| Cloud setup security | Basic |
| App & code security | Core strength |
| AI & LLM security | Basic |

## Certification fit
- ISO 27001: 11%
- SOC 2: 11%
- NIS2: 8%
- GDPR: 4%
- DORA: 10%
- HIPAA: 6%
- PCI DSS: 11%
- Cyber Essentials: 10%
- CMMC: 5%
- NIST CSF: 8%
- CIS Controls: 8%
- CRA: 23%
- AI Act: 11%
- ISO 42001: 11%

## Competitors
- [Snyk](https://securitystackcompare.com/en/tools/snyk): A developer security platform best known for finding vulnerable open-source dependencies, plus code, container and IaC scanning.
- [Socket](https://securitystackcompare.com/en/tools/socket): Checks the open-source packages your developers install and blocks malware and risky behaviour before it reaches your code.
- [Trivy](https://securitystackcompare.com/en/tools/trivy): A free, open-source scanner for container images, dependencies, infrastructure as code and secrets.
- [Aikido Security](https://securitystackcompare.com/en/tools/aikido): A developer-friendly all-in-one application security platform: code, dependencies, secrets, containers, cloud and runtime in one place.
- [GitHub Advanced Security](https://securitystackcompare.com/en/tools/github-advanced-security): Code scanning, secret protection and dependency review built directly into GitHub.

---
Security Stack Compare scores declared capabilities (0–3 per building block, assuming each feature works as described). Published by Shielda, which is also listed. Methodology: https://securitystackcompare.com/en/about
