koffi
Supply chain provenance
Status for the latest visible version.
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
Keywords
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| install-scripts | install-script:install | AI (install-scripts): Install script invokes cnoke.js with --prebuild flag to select prebuilt native binaries. Standard pattern for native addon packages; stable across all koffi versions. | ai | |
| npm-metadata | bundled-binaries | AI (npm-metadata): Koffi ships prebuilt .node binaries for 18 platform/arch combinations as its documented distribution model. These are the legitimate FFI native addon artifacts. | ai | |
| semgrep | semgrep:eval-usage | AI (semgrep): eval('require')(filename) is a standard bundler-bypass pattern used to dynamically load platform-specific .node binaries at runtime. Not an arbitrary code execution risk in this context. | ai | |
| semgrep | semgrep:child-process-import | AI (semgrep): child_process is used in the cnoke build tool (builder.js) to invoke CMake/compiler toolchains. Expected and necessary for a native addon build system. | ai |
v3.0.0
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v2.16.2
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v2.16.1
3 findingsScript: node src/cnoke/cnoke.js -P . -D src/koffi --prebuild
Package contains compiled binaries that could be backdoors: • build/koffi/darwin_arm64/koffi.node • build/koffi/darwin_x64/koffi.node • build/koffi/freebsd_arm64/koffi.node • build/koffi/freebsd_ia32/koffi.node • build/koffi/freebsd_x64/koffi.node • build/koffi/linux_arm64/koffi.node • build/koffi/linux_armhf/koffi.node • build/koffi/linux_ia32/koffi.node • build/koffi/linux_loong64/koffi.node • build/koffi/linux_riscv64d/koffi.node ... and 8 more
Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.
v2.16.0
1 findingPackage was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.