Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Database for bcoin.
const bdb = require('bdb');
const db = bdb.create({
location: './mydb'
});
await db.open();
const root = bdb.key('r');
const rec = bdb.key('t', ['hash160', 'uint32']);
const bucket = db.bucket(root.build());
const batch = bucket.batch();
const hash = Buffer.alloc(20, 0x11);
// Write `foo` to `rt[1111111111111111111111111111111111111111][00000000]`.
batch.put(rec.build(hash, 0), Buffer.from('foo'));
await batch.write();
// Iterate:
// From: `rt[0000000000000000000000000000000000000000][00000000]`
// To: `rt[ffffffffffffffffffffffffffffffffffffffff][ffffffff]`
const iter = bucket.iterator({
gte: rec.min(),
lte: rec.max(),
values: true
});
await iter.each((key, value) => {
// Parse each key.
const [hash, uint] = rec.parse(key);
console.log('Hash: %s', hash);
console.log('Uint: %d', uint);
console.log('Value: %s', value.toString('ascii'));
});
await db.close();
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. </legalese>
See LICENSE for more info.
FAQs
Database for bcoin
The npm package bdb receives a total of 264 weekly downloads. As such, bdb popularity was classified as not popular.
We found that bdb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.