Where the Sonar cryptography plugin stops and what you still need to do
The Sonar cryptography plugin is an open-source SonarQube plugin that detects cryptographic assets in source code and writes a CBOM. It is a code-level scanner, not a full cryptographic inventory. It reads the source your analyzers can parse, and it does not see the configuration files that set cipher suites, the certificates deployed on running services, or the libraries your systems load at runtime. A team that needs an inventory across code, configuration and running systems should treat this plugin as one input to that inventory and plan separate work for the rest. The sources listed on this page document a set of gaps that define that remaining work, and the sections below walk through them so you can plan each one.
Coverage differs by language, so the first check is whether each language in your codebase is covered at the level you need. The README lists Java as covered for the JCA and the BouncyCastle light-weight API, Python for pyca/cryptography, and Go for most of the standard library, with golang.org/x/crypto only partial. C# System.Security.Cryptography is listed as in development and marked "Not yet meant for production usage!" Two limits also affect precision: C# analysis does not resolve values across file boundaries, and values that depend on control flow are deliberately left unresolved rather than guessed. Confirm the coverage level for each language against the current sonar-cryptography README, then plan manual review or other tooling for the unresolved parts.
The output also has limits you should plan for. Only the Cryptographic Inventory rule writes cbom.json, and SonarQube sees one Inventory rule per language. The Behaviors setting is experimental, off by default, and uses a draft CycloneDX taxonomy that may change. The README does not name ML-KEM or ML-DSA, while the 1.5.1 release notes list added support for them, so confirm in the release notes and your own test scan which post-quantum algorithms your version reports. The README also notes that Go type-check errors may require rebuilding sonar-go-to-slang. Before you rely on any output, run a test scan on a representative repository and check the CBOM against code you know.
Which languages and tools the plugin documents coverage for
This table compares the language coverage the sonar-cryptography README documents for Java, Python, Go and C#, with the status it gives each, and the companion tools CBOMkit and CBOMkit-theia. Read the status column first, because a language marked partial or in development may report fewer cryptographic assets than the others. The README was dated 4 December 2026, and no price for the plugin is published.
| Language or tool | Documented coverage or scope | Status and caveat |
|---|---|---|
| Java | JCA 100%, BouncyCastle light-weight API 100% | Coverage for BouncyCastle is limited to the light-weight API only, per the README footnote |
| Python | pyca/cryptography 100% | Listed at 100% in the README dated 4 December 2026 |
| Go | Standard library crypto 100% except crypto/x509; golang.org/x/crypto partial | Partial for golang.org/x/crypto; undefined type-check errors may need a rebuild of sonar-go-to-slang |
| C# | System.Security.Cryptography | In development and marked "Not yet meant for production usage!" |
| C# known limitations | No resolution across file boundaries and no semantic type checker | Values depending on control flow, such as a ternary with differing branches, are left unresolved rather than guessed |
| CBOMkit | Does not build repositories before scanning | Java results can be less complete as a result, per the CBOMkit README |
| CBOMkit-theia | Does not scan source code | Its README directs users to sonar-cryptography for source scanning |
| Plugin price | No price is published | Confirm licensing and any commercial terms directly with the maintainers before adoption |
What the documentation says each language and rule covers
The README lists Java coverage as 100% for the Java Cryptography Architecture (JCA) and 100% for the BouncyCastle light-weight API, as of 4 December 2026. The BouncyCastle figure carries a footnote that limits the 100% to the light-weight API only, so the heavier BouncyCastle APIs should not be assumed covered. The sources do not give a full list of JCA classes or a rate for the release you run, so check the rule list against your own code.
- JCA coverage: the README reports 100% for the Java Cryptography Architecture.
- BouncyCastle scope: the 100% figure covers the light-weight API only, per the README footnote.
- Build dependency: CBOMkit does not build repositories before scanning, so Java results can be less complete, according to the CBOMkit README.
- Recent additions: the 1.5.1 release notes of 4 February 2026 list support for MLKEM and MLDSA and for HSS and LMS for JCA.
Before relying on Java results, confirm which BouncyCastle packages your code imports and whether your build output is available to the scanner.
The README lists Python coverage as 100% for pyca/cryptography, as of 4 December 2026. The architecture document says named method parameter matching is supported only for Python and C#, which matters if your rules rely on named arguments. The sources do not name other Python cryptography libraries, so the coverage claim should be read as limited to pyca/cryptography.
- pyca/cryptography: the README reports 100% coverage for this library.
- Named parameters: named method parameter matching is supported for Python, per the architecture document.
- Parser testing: the architecture document says only Sonar-published parsers have been tested.
- Other libraries: the sources do not name other Python cryptography libraries as covered.
Before adoption, list the Python cryptography packages your code uses and check each against the README table for your plugin version.
The README lists Go coverage in two parts: the standard library crypto packages are at 100% except crypto/x509, and golang.org/x/crypto is partial, as of 4 December 2026. A team whose code depends on golang.org/x/crypto should expect incomplete detection there. The README also warns that some "undefined" type-check errors may require rebuilding sonar-go-to-slang with added package export data.
- Standard library: crypto packages are at 100% except crypto/x509, per the README.
- Extended library: golang.org/x/crypto is listed as partial.
- Type-check errors: "undefined" errors may need a rebuild of sonar-go-to-slang with added package export data.
- Parser testing: only Sonar-published parsers have been tested, according to the architecture document.
If your services use crypto/x509 or golang.org/x/crypto, plan a separate check of those findings.
The README lists C# System.Security.Cryptography as in development and carries the warning "Not yet meant for production usage!", as of 4 December 2026. The README also documents known limitations: nothing is resolved across file boundaries, and there is no semantic type checker. Values that depend on control flow, such as a ternary with differing branches, are deliberately left unresolved rather than guessed.
- Maturity: the README marks C# as in development and not yet meant for production use.
- Cross-file resolution: nothing resolves across file boundaries.
- Type checking: there is no semantic type checker.
- Control flow: values that depend on branches, such as ternaries with differing outcomes, stay unresolved.
- Named parameters: named method parameter matching is supported for C#, per the architecture document.
Treat C# results as incomplete, and plan manual review of any cryptographic call that depends on values set in other files or branches.
The plugin writes a CycloneDX CBOM to cbom.json only when the "Cryptographic Inventory (CBOM) rule" is enabled, and the output file name is set with sonar.cryptoScanner.cbom, which defaults to cbom. SonarQube sees one Inventory rule per language, so the output is organized by language analyzer. The Behaviors setting is experimental, off by default, and uses a draft CycloneDX taxonomy that may change.
- Rule dependency: only the Cryptographic Inventory (CBOM) rule writes cbom.json.
- File name: sonar.cryptoScanner.cbom sets the output name, with a default of cbom.
- One rule per language: SonarQube sees one Inventory rule per language.
- Behaviors setting: experimental and off by default, using a draft CycloneDX taxonomy that may change.
- CBOMkit scope: CBOMkit-theia does not scan source code and directs users to sonar-cryptography for that.
Before building a pipeline around the output, confirm the rule is enabled, the file name matches your configuration, and the Behaviors setting is off unless you have accepted that its taxonomy may change.
Which situations the documented limits affect most
Each card names a situation where a gap in Sonar cryptography plugin's documented coverage changes what your inventory will show. The common thread is that a clean-looking scan can still miss cryptography in the code paths you care about most, so check these cases before trusting the output.
Go code using golang.org/x/crypto
The README lists golang.org/x/crypto coverage as partial, while the standard library crypto packages are covered at 100 percent except crypto/x509. A Go-heavy service that depends on golang.org/x/crypto for primitives may get an inventory that looks complete but omits algorithms from that module. Check which packages your services import, and compare the CBOM against a manual review of those imports.
Plugin READMEC# estates awaiting production readiness
The README lists System.Security.Cryptography support as in development and states it is not yet meant for production usage. A C# estate that relies on this namespace should not treat the plugin's output as a finished inventory. Plan to cover those call sites with another method until the project changes that status.
Plugin READMEJava projects beyond BouncyCastle light-weight
The 100 percent BouncyCastle coverage applies only to the light-weight API, according to a footnote in the README. A Java project that calls BouncyCastle's higher-level APIs will see gaps that the headline figure does not reveal. Confirm which BouncyCastle packages your code uses before you rely on the Java results.
Plugin READMETeams needing ML-KEM or ML-DSA detection
The README does not name ML-KEM or ML-DSA, although the 1.5.1 release notes from 4 February 2026 list support for both. A team that needs to find these post-quantum algorithms should confirm the release it runs includes that support and test detection on its own code. Do not assume a README silence means the algorithms are absent or present.
Release 1.5.1 notesBuilds that depend on cross-file resolution
The README lists nothing resolving across file boundaries as a known C# limitation, and values that depend on control flow are deliberately left unresolved. A build where algorithm choices are set in a shared file or chosen by a ternary may show fewer findings than the code actually uses. Check a sample of those call sites by hand to see what the scan leaves out.
Plugin READMENon-source assets and configuration files
The plugin reads source code, and CBOMkit-theia does not scan source at all, so the tool points to sonar-cryptography for that work. Certificates, keystores, configuration files and deployed binaries sit outside what the plugin covers. Assign those assets to a separate discovery step, since a source-only scan will not list them.
CBOMkit-theia READMEWhich language gaps the README records
The sonar-cryptography README records that coverage differs by language, and a buyer should read the table before counting on any single result. For Go, the standard library crypto is listed at 100% except crypto/x509, while golang.org/x/crypto is listed only as partial. The README also warns that Go "undefined" type-check errors may require rebuilding sonar-go-to-slang with added package export data. A team whose Go services depend heavily on golang.org/x/crypto should plan a test scan against its own code, check the analyzer output for those undefined-type errors, and assign someone to handle the rebuild if they appear.
For C#, the README lists System.Security.Cryptography as in development and carries an explicit warning that it is "Not yet meant for production usage!" The listed known limitations are that nothing resolves across file boundaries, there is no semantic type checker, and values that depend on control flow, such as a ternary with differing branches, are deliberately left unresolved rather than guessed. Teams with C# code should treat the output as incomplete and plan manual review of cryptographic calls that pass through helper methods or conditional logic.
The BouncyCastle entry needs a narrow reading. The README's 100% figure applies to the light-weight API only, so cryptography reached through other BouncyCastle APIs is not covered by that claim. Before relying on the Java result for a BouncyCastle-heavy codebase, the reader should confirm which APIs the code actually calls, and record the uncovered ones in the inventory as a separate task.
How to plan the rest of the inventory work
This sequence turns the plugin's documented limits into a written plan for covering the languages, repositories and asset types it cannot reach. Each step ends with a record a reviewer can check, so gaps are assigned to a named tool or manual step before the inventory is treated as complete.
List languages and repositories in your estate
Someone on the platform or security team lists every repository in scope and the programming languages each one uses, including build scripts and secondary languages that appear in shared code. Mark each language against the coverage the README documents as of 4 December 2026: Java and Python are listed at 100% for their main cryptography libraries, Go is partial for golang.org/x/crypto, and C# is marked in development and not yet meant for production. The step is done when every repository has a language list and a coverage mark beside each entry.
Test the plugin on a representative repository
An engineer runs the plugin against one repository per language group, with the Cryptographic Inventory (CBOM) rule enabled and the output name left at its default unless the team has a reason to change it. The engineer then opens the generated cbom.json and checks whether the expected algorithms and key uses appear, and whether anything that should be there is missing. The step is done when the team has a written note of what the output captured and what it did not.
Record each gap and the tool that covers it
The platform lead writes down every gap found so far, including languages marked partial or in development, the BouncyCastle footnote limiting full coverage to the light-weight API, and any values the plugin leaves unresolved. For each gap, the team names the other tool or the manual review step that will cover it, and the person responsible. The step is done when each gap has an owner and a covering method in one shared record.
Decide where non-source assets will be inventoried
The security architect decides how configuration files, TLS settings, certificates and running systems will be inventoried, since the plugin reads source code only. The CBOMkit documentation directs source scanning to this plugin and does not cover running systems, so the team needs another method for those assets. The step is done when a written decision names the inventory method for each asset type and the person who will run it.
Confirm the SonarQube version is supported
The platform engineer checks the SonarQube version in use against the README compatibility table, which lists plugin 1.3.7 and later as working with SonarQube 9.9 (LTS) and later. The engineer also notes that a Sonar Community reply dated 9 April 2026 said the plugin is not compatible with current SonarQube versions, so the conflict must be resolved by testing on the team's own instance. The step is done when the team has a recorded version pairing that a test run has confirmed on its own server.
Where source scanning sits next to other inventory work
The flow starts with a source repository that the Sonar cryptography plugin scans through SonarQube, which writes a CycloneDX CBOM to cbom.json only when the Cryptographic Inventory (CBOM) rule is enabled. Java repositories reach CBOMkit only after a build step, because CBOMkit does not build repositories before scanning, so Java results can be less complete. CBOMkit-theia covers non-source inventory and does not scan source code. Configuration files, running systems and languages with partial or missing coverage need manual review or other tools. Check each language's coverage status before you treat cbom.json as the full inventory.
Source scanning produces cbom.json, while other inventory paths cover what it does not.
What the license and published price information say
The sonar-cryptography repository does not use a single license for everything it ships. According to its README, the independently authored code in the repository is licensed under the Apache License 2.0. The packaged plugin also contains sonar-java, sonar-python and sonar-go, which are published under the Sonar Source-Available License v1.0. Those bundled components are subject to the license notices in their individual files, so a license reviewer should check the notice on each file that is actually distributed, not only the top-level license. Before adding the plugin to a software supply chain, confirm which license text governs each component in the JAR you will deploy, and record that in your third-party software inventory.
No price for the plugin is published in the sources listed on this page. The plugin is distributed through the public GitHub repository, so there is no license fee shown in those sources, but cost depends on the team running it. Your real costs will come from the SonarQube instance it runs on, the engineering time to install, upgrade and maintain it, and any outside support you buy. Ask any commercial provider for a written quote that separates one-time setup from recurring upkeep, and confirm the compatibility table for your SonarQube version before you budget for it.
Two checks follow from the license and cost picture. First, confirm that your SonarQube version is in the README compatibility table, since the table lists different plugin versions for different SonarQube ranges. Second, ask who will own upgrades, because the plugin is not developed or maintained by SonarSource, according to a Sonar community representative quoted in the sources. Plan for that ownership gap in your cost estimate rather than assuming vendor-level support is included.
Questions teams ask about the plugin's limits
Does the Sonar cryptography plugin inventory all cryptography in our codebase?
No. The plugin finds cryptographic usage in source code that its language analyzers can parse and resolve, so it gives a code-level view, not a complete inventory. The README's coverage figures apply to specific libraries and APIs. For Java, JCA is listed at 100% and the BouncyCastle light-weight API at 100%. For Python, pyca/cryptography is listed at 100%. For Go, the standard library is listed at 100% except crypto/x509, and golang.org/x/crypto is partial. For C#, System.Security.Cryptography is marked in development. Cryptography that comes from other libraries, configuration files, network endpoints, certificates or hardware is outside what the plugin is documented to find. Plan a separate discovery effort for those assets. Confirm the coverage you need against the README for the exact version you run.
Which languages does the plugin fully cover?
Based on the README as of 4 December 2026, the plugin lists full coverage only for the APIs it names as 100%: - Java: the JCA and the BouncyCastle light-weight API - Python: pyca/cryptography - Go: the standard library crypto packages, except crypto/x509 The README footnote limits BouncyCastle's 100% figure to the light-weight API, so other BouncyCastle APIs should not be assumed covered. Go's golang.org/x/crypto is listed as partial, and C# System.Security.Cryptography is listed as in development. The architecture document notes that only Sonar-published parsers have been tested. Ask your team to run the plugin against a sample of your real code in each language before you rely on the results.
Is the Sonar cryptography plugin production-ready for C#?
The README does not present it as production-ready for C#. It lists System.Security.Cryptography as in development and states "Not yet meant for production usage!" The README also lists known C# limitations: nothing is resolved across file boundaries, and there is no semantic type checker. Values that depend on control flow, such as a ternary with differing branches, are deliberately left unresolved rather than guessed. For a C# estate, treat the plugin as a discovery aid to trial, not as a source of record. Check the current README before any decision, because the status is documented and may change between releases.
Does the plugin detect ML-KEM and ML-DSA?
The README does not name ML-KEM or ML-DSA. The 1.5.1 release notes, dated 4 February 2026, list "Add support for MLKEM and MLDSA" along with "add support for HSS and LMS for JCA". That release note is the only documented source for these algorithms in the plugin. A release note records a change, not the completeness of detection. Before you rely on it, run the plugin against code that uses the post-quantum algorithms your teams deploy, and check whether the findings match what you expect. Confirm the behavior in the release you install, and confirm which library APIs are covered for each algorithm.
Why can Java results be less complete than other languages?
The CBOMkit README says CBOMkit does not build repositories before scanning, and that this can make Java results less complete. Java projects often depend on compiled classes, generated sources and dependencies that are resolved at build time. A scan that does not build the project can miss cryptographic calls that exist only after compilation. This limit is documented for CBOMkit, the companion toolset. Ask your team whether the scan of your Java repositories runs against a built state, and compare results before and after a build. Treat any gap you find as a known limitation to plan around, not a sign of a plugin defect.
Does the plugin scan non-source assets like configuration and certificates?
No. The plugin detects cryptographic assets in source code. The CBOMkit-theia README states that it does not scan source code and directs users to sonar-cryptography for that task. Those two projects do not cover the same ground. Certificates, TLS settings, key stores, container images, network endpoints and infrastructure configuration need other discovery methods. Make the list of non-source assets part of your inventory plan, and assign an owner to each category. The plugin will not produce a complete picture of these assets on its own.
Should we build the rest of the inventory in-house or get outside help?
The answer depends on your language mix, your non-source estate and the skills you have in-house. Costs usually come from engineering time to run scans, triage findings, maintain the SonarQube server, and handle gaps the plugin does not cover, and from any outside support you buy. The plugin's license and governance matter here too: the README describes Apache License 2.0 for the independent code and Sonar Source-Available License v1.0 for bundled components. Its repository is not in the SonarSource GitHub organization, and a Sonar community representative said on 9 April 2026 that SonarSource does not develop or maintain it. Ask any provider to state its scope, deliverables and timeline in writing before work begins. DeployOpen plans and implements these inventory and migration projects in your own environment, and its work is fixed-scope, agreed in writing. It does not publish prices, so ask for a quote based on your scope.
How DeployOpen works on this
The Sonar cryptography plugin finds cryptography in source code, but it does not resolve every call, cover every language equally, or inventory the wider estate. DeployOpen plans the remaining work around those gaps, with the plugin's limits written down before any scope is agreed. Engagements are fixed-scope, with deliverables and timelines agreed in writing first.
How we scope
- We list which languages in your codebase the README marks as partial or in development, such as Go and C#.
- We identify code paths the plugin leaves unresolved, including values that depend on control flow or cross file boundaries.
- We agree the written scope, deliverables and timeline with you before any work starts, as a fixed-scope engagement.
How we build
- We add the inventory work the plugin does not cover, such as scanning beyond source code and checking non-Sonar-tested parsers.
- We run the Cryptographic Inventory (CBOM) rule per language and check the cbom.json output against the codebase.
- We test results on your own projects, since the README notes Java scans can be incomplete without a build step.
How we hand over
- We document each known gap, the language or pattern it affects, and the manual or tool-based check that covers it.
- We record the plugin version, SonarQube version and CycloneDX output settings so your team can reproduce the scan.
- We confirm which findings still need human review, and we hand over the list with the rest of the inventory evidence.
How we support
- We offer ongoing support and continuous testing as a retainer, so checks keep pace with new plugin releases.
- We revisit the limits list when the plugin changes, such as the experimental Behaviors setting or new ML-KEM and ML-DSA support.
- We help you confirm compatibility with your SonarQube version before any upgrade, since the sources conflict on this point.

