
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
sourcecrumbs
Advanced tools
Make npm provenance attestation a bit more code bound
The provenance attestation is established by publicly providing a link to a package's source code and build instructions from the build environment. This allows developers to verify where and how your package was built before they download it.
This allows, so let's try to implement a working draft. Suppose we have published a package with sourcemaps and provenance telemetry in its packument. We could try:
import {track} from '@qiwi/sourcecrumbs'
const result = await track({
name: 'toposource',
version: '1.1.4',
registry: 'https://registry.npmjs.org'
})
// →
result = {
meta: {
pkgRef: {
name: 'toposource',
version: '1.1.4',
registry: 'https://registry.npmjs.org'
},
repoRef: {
type: 'git',
url: 'git+https://github.com/semrel-extra/toposource.git',
hash: 'b4f56f4ce75460c670363457821c054ed4db8464',
}
},
tracks: {
'package.json': {
source: {
refs: ['package.json'],
coherence: 0.9995309568480301
},
sourcemap: null
},
'target/cjs/index.js': {
source: null,
sourcemap: {
refs: [
'src/main/ts/index.ts',
'src/main/ts/toposource.ts'
],
checks: {
valid: true
},
coherence: null
}
},
// ...
}
}
FAQs
Make npm provenance attestation a bit more code bound
The npm package sourcecrumbs receives a total of 2 weekly downloads. As such, sourcecrumbs popularity was classified as not popular.
We found that sourcecrumbs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.