Software supply chain security
SonarQube is the code verification layer for your entire software supply chain. It checks the code you write, the dependencies you import, and the images you ship, so you know which risks are exploitable and stop them before they ship.

How SonarQube secures your software supply chain
SonarQube secures your supply chain with one verification layer for your code, dependencies, container images, and credentials. Quality gates and CI checks stop risky changes before they merge or ship.
Third-party dependencies
SCA finds known vulnerabilities (CVEs) and malicious packages in the open source libraries you use, enforces license policies, and exports SBOMs in CycloneDX and SPDX formats.
Reachability analysis
Not every CVE in your dependency tree is exploitable. Reachability analysis shows which vulnerable functions your code actually calls, so you fix real risk first. It is available for Java/Kotlin, Python, and C#/VB.NET.
Container images - Open Beta
Container scanning checks the images you ship for known vulnerabilities and malicious packages in operating system packages, language runtimes, and libraries. Run it locally or in CI, and fail the build at the severity you set. Now in open beta on SonarQube Cloud.
Secrets and credentials
Automated detection catches hardcoded secrets, tokens, and passwords in the IDE or with the SonarQube secrets CLI, before they reach your Git history.
Third-party libraries
Advanced SAST traces how your code interacts with open source libraries, so it finds complex injection vulnerabilities that sit at the boundary between your code and its dependencies.
Secure pipeline workflows
SonarQube detects misconfigured GitHub Actions and Azure Pipelines. It flags unpinned actions and script injections early, so attackers cannot exploit your workflows before a breach starts.
Supported programming languages and ecosystems
SonarQube protects your supply chain across the following languages and packages:
Reachability analysis supports:
Java/Kotlin, Python, and C#/VB.NET. Deeper taint analysis (Advanced SAST) supports Java and C#.
Supported container base images (open beta)
Red Hat Enterprise Linux, Debian 11 and higher, Rocky Linux, AlmaLinux, Ubuntu, Alpine.
Images built on these, such as official Node.js images based on Debian or Alpine, are also covered. Container scanning runs on images available locally, on a machine or in CI.
What makes SonarQube's supply chain security unique in the industry?
Dependency-aware analysis
Unlike standalone SCA tools, Sonar traces data flows from your code into third-party libraries to uncover hidden security risks that traditional scanners miss.
Prevention-first secrets detection
Stop secrets at the source with the Sonar secret CLI and SonarQube for IDE, eliminating the need for costly credential rotation and Git history rewrites.
Unified governance
Consolidate quality and security into a single workflow with centralized quality gates, providing a single source of truth for platform engineering and security teams.
Reachability, not just a list
A list of every CVE in your dependencies hides the few that matter. SonarQube shows which vulnerabilities your code can reach and flags them for prioritization in the interface and in reports, so you start with exploitable risk.
Code, dependencies, and images in one workflow
Risks in your code, your dependencies, and your container images land in the same SonarQube workflow. You reconcile one set of findings instead of several, and you apply the same quality gates and CI checks to each layer.
Note: the container image part applies to SonarQube Cloud while container scanning is in open beta.
Additional supply chain security resources
Why your supply chain attack surface is expanding
Read more
Stop malicious packages in your CI/CD pipeline
Read more
Software Supply Chain Security
Learn more
SonarQube Advanced Security vs. other SCA solutions
Learn more
Securing the software supply chain
Download
Developer-first SCA across your workflow with SonarQube
Download
SonarQube container scanning is now in open beta
Read the announcement
Container scanning in SonarQube Cloud
Read the docs
What is software supply chain security and why does it matter?
Supply chain security involves securing everything that goes into your software, including first-party code, third-party libraries, and configuration files. It is critical because attackers increasingly target the "weak links" in open-source dependencies or exposed secrets to gain unauthorized access to enterprise systems.
What are the most common types of software supply chain attacks?
Common software supply chain attacks include compromising popular open source packages, inserting malicious code into build scripts or CI/CD pipelines, tampering with artifacts in registries, and abusing unverified third‑party services.
In dependency‑focused attacks, adversaries may publish malicious updates to widely used libraries or exploit known vulnerabilities like Log4Shell, instantly impacting thousands of applications that transitively rely on the affected component.
Other attack patterns focus on the development and delivery process itself—abusing compromised developer credentials, manipulating build environments, or poisoning artifacts so that every downstream consumer inherits the compromise.
Because these attacks exploit existing trust relationships, they can remain undetected for long periods and are often discovered only after widespread damage has occurred, making prevention and early detection critical.
What are best practices to improve software supply chain security?
Strong software supply chain security starts with comprehensive inventory and governance: maintain an up‑to‑date view of all software components, enforce clear policies for third‑party usage, and conduct regular vulnerability scanning across your environment.
Complement this with proactive vendor and OSS evaluation, continuous monitoring and threat intelligence, and a well‑defined incident response plan so you can react quickly when high‑profile vulnerabilities or breaches emerge.
At the development level, integrate security into the SDLC with code review, automated testing, and developer training that emphasizes code quality and secure use of dependencies.
Adopting frameworks like SLSA or related industry standards helps structure your efforts, while focusing on new code quality—sometimes described as quality at the source or a focus on new code—lets you enforce strong gates on every change without being blocked by legacy issues.
How does SonarQube differ from traditional SCA tools?
Most SCA tools return a list of the vulnerabilities in your dependencies. SonarQube adds reachability analysis, which shows whether your code calls the vulnerable function, and Advanced SAST, which traces data flow from your code into third-party libraries. Together they cut noise and show which fixes reduce risk. SonarQube also extends the same workflow to the container images you ship.
What is reachability analysis?
Reachability analysis checks whether your code calls the vulnerable function in a dependency. A CVE in a library you import is not always exploitable in your application, so SonarQube flags the reachable ones for prioritization in the interface and in reports. You fix the vulnerabilities your code can reach before the ones it cannot. Reachability analysis is available for Java/Kotlin, Python, and C#/VB.NET.
Does SonarQube scan container images?
Yes, in open beta. Container scanning checks the images you build and ship for known vulnerabilities and malicious packages, including operating system packages, language runtimes, and libraries that never appear in your repository. You run the scanner locally or in CI, and results appear under Container images in SonarQube Cloud next to your code and dependency risks. The scanner can fail a build at a severity you set. Container scanning is included with SonarQube Advanced Security at no additional cost.
Is container scanning available on SonarQube Server?
Not yet. Container scanning is in open beta on SonarQube Cloud, for the Team and Enterprise plans with SonarQube Advanced Security. Support for SonarQube Server is planned.