verimu
v0.0.21
Published
CRA compliance automation - SBOM generation, CVE monitoring, and vulnerability reporting for the EU Cyber Resilience Act.
Downloads
1,194
Maintainers
Readme
verimu
The infrastructure layer that makes CRA compliance easier to manage in engineering workflows.
verimu helps teams automate SBOM generation, dependency intelligence, and vulnerability visibility across CI/CD pipelines.
Documentation and Website
- Website + documentation: https://verimu.com
- npm package: https://www.npmjs.com/package/verimu
App Platform
Supported CI / CD Platforms
The core scanning pipeline is CI-agnostic — it works in any environment with Node.js 20+.
Example CI configs are provided in the ci-examples/ directory.
- [x] GitHub Actions (
.github/workflows/ci.yml,.github/workflows/publish-npm.yml) - [x] GitLab CI (
ci-examples/gitlab-ci.yml) - [x] Bitbucket Pipelines (
ci-examples/bitbucket-pipelines.yml)
Supported Package Ecosystems
- [x] npm (package-lock.json)
- [x] yarn (yarn.lock)
- [x] pnpm (pnpm-lock.yaml)
- [x] NuGet (packages.lock.json)
- [x] pip (requirements.txt, Pipfile.lock)
- [x] Cargo (Cargo.lock)
- [x] Maven (pom.xml + dependency-tree.txt or
mvnon PATH) - [x] Go (go.sum)
- [x] Ruby (Gemfile.lock)
- [x] Composer (composer.lock)
Usage Context Analysis (Vulnerable Package Evidence)
When CVEs are found, verimu now runs a usage-context stage that scans source code and records where vulnerable packages appear (imports/requires and nearby call sites).
This stage is fail-open (non-fatal), and writes a machine-friendly artifact beside the SBOM:
*.usage-context.json
You can configure snippet context size with:
--context-lines <n>(default4, clamped to0..20)- Programmatic API:
numContextLines?: numberinscan()config
Analyzer Matrix (v0.0.19)
| Ecosystem in Verimu | Analyzer strategy | Evidence targets |
|---|---|---|
| npm / yarn / pnpm | Babel parse + traverse | imports/requires/exports + nearby calls |
| deno | Babel parse + traverse | imports + nearby calls |
| pip / poetry / uv | Python source pattern analyzer | import / from ... import ... + calls |
| maven | Java source pattern analyzer | import + method/static calls |
| nuget | C# source pattern analyzer | using + namespace/type calls |
| cargo | Rust source pattern analyzer | use / extern crate + ::/method calls |
| go | Go source pattern analyzer | import + selector/function calls |
| ruby | Ruby source pattern analyzer | require / include + constant/module calls |
| composer (PHP) | PHP source pattern analyzer | use / require + static/constructor calls |
All analyzers are fail-open (non-fatal): a parser/runtime issue only downgrades usage-context status for that ecosystem/package and never aborts SBOM/CVE scanning.
Development
To run the tests, use:
npm testReleasing to npm (Tag Pipelines)
verimu can publish from GitHub Actions, GitLab CI, and Bitbucket Pipelines when a semver tag is pushed.
Each pipeline validates:
- tag is semver (i.e.
1.2.3without avprefix) - tag version must match
package.jsonversion - tagged commit exists on
main
Publish credentials
- GitHub Actions (
.github/workflows/publish-npm.yml): uses npm Trusted Publishing (OIDC), so NONPM_TOKENsecret is required. - GitLab and Bitbucket pipelines in this repo still use
NPM_TOKEN(.gitlab-ci.yml,bitbucket-pipelines.yml).
Recommended release flow
- Bump version on
mainwith npm (this updatespackage.jsonandpackage-lock.json, then creates a git tag):
npm version patch- Push commit and tag:
git push origin main --follow-tags- Your CI provider runs the publish job on that tag and releases to npm.
Why this avoids version conflicts
The source of truth remains the version committed on main.
The tag is only a release trigger for that exact versioned commit.
You should not tag arbitrary commits with a new version string that is not already committed in package.json.
Maven Scanner Notes
The Maven scanner needs resolved dependencies. Since Maven has no lockfile, it uses two strategies:
- Pre-generated dependency tree (recommended for CI): Run
mvn dependency:list -DoutputFile=dependency-tree.txt -DappendOutput=truebefore scanning. - Auto-detect: If
mvnis on$PATH, the scanner runsmvn dependency:listautomatically.
Three CI / CD Pipelines as Self Check on the verimu package itself
There is a bitbucket-pipelines.yml and .gitlab-ci.yml in the root of the project, as well as a .github/workflows/ci.yml file, all of which run verimu against itself in each of the 3 frameworks we support (GitHub Actions, GitLab CI, Bitbucket Pipelines). The tests should pass in all 3 environments, confirming that verimu can successfully scan its own dependencies and produce a report.
Tag-based npm release automation in GitHub Actions is handled by .github/workflows/publish-npm.yml, so this repo remains a working cross-provider reference for both scanning and publishing.
