
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
sharedhashmap
Advanced tools
Run npm install sharedhashmap in your project
Require using
const SharedHashMap = require('sharedhashmap')
const map = new SharedHashMap()
await map.set('test', 'testvalue')
let x = await map.get('test') // x = 'testvalue'
let keys = await map.keys // keys = ['test']
let map2
// export hashmap
let exportedMap = map.export((syncData) => {
map2.sync(syncData)
})
//send that exportedMap to another thread/worker and re-create map object
map2 = new SharedHashMap(exportedMap, (syncData) => {
map.sync(syncData)
})
let y = await map2.get('test') // y = 'testvalue'
The sync functions are needed because the buffers are created dynamically. This is more memory efficient but requires you to implement the sync functions. You need to pass them when exporting the map and when creating the second map object.
No actual data is sent over this, just the SharedArrayBuffers which acts like a pointer.
When using workers you will want to send this using postMessage.
FAQs
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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.