
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.
hyperdb-mesh
Advanced tools
Automatically authorise HyperDB peers to create a mesh, this code was extracted from the fantasic Cabal cabal-core on Github.
HyperDB allows peers to be authorised to replicate and using discovery-channel, peers are automatically authorised to form the mesh network.
As such you need to keep your discovery channel secret or run this in a controlled environment. I am trying to figure out a way to provide some authorisation process to run in untrusted places but I need to think about that.
npm install hyperdb-mesh
var mesh = Mesh('./demo.db', null, { id: 'mesh1' })
var db = mesh1.db
mesh.on('ready', function () {
console.log('peer A key ', db.key)
// bec87d64bfdc33b6b02779666e46a3f01f0aa07f721c2177a44d64c4a6b50afd
db.put('/hello', 'world', function (e) {
if (e) throw e
})
})
Peer B running in a different computer or folder.
var key = 'bec87d64bfdc33b6b02779666e46a3f01f0aa07f721c2177a44d64c4a6b50afd'
var mesh = Mesh('./demo.db', key, { id: 'mesh2' })
var db = mesh1.db
mesh.on('ready', function () {
console.log('peer A key ', db.key)
db.get('/hello', function (e, d) {
if (!e) console.log('winning ', d[0].value)
})
})
mesh.on('ready', function () {
console.log('underlying hyperDB is ready')
})
The underlying HyperDB instance is accessible from .db
console.log(mesh.db.key.toString('hex'))
Pass in HyperDB options like so:
var mesh = Mesh('./json_api.db', key, { id: 'api', options: { valueEncoding: 'json' } })
FAQs
Automatically authorise HyperDB peers to create a mesh
We found that hyperdb-mesh 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.

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.