
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
sqlite3-trans
Advanced tools
Proper transaction support for node-sqlite3.
Wraps node-sqlite3 database instances to provide proper transaction support — specifically when utilizing async operations. This module is a more modern port of the no longer maintained sqlite3-transactions.
Differences
Considering the following:
db.serialize( () => {
db.exec('BEGIN;');
// ...
fetchAndInsert(db, () => {
db.exec('COMMIT;');
});
});
We just created ourselves a bug! Other database operations in the code may try to do I/O with our DB while in the transaction including an attempt to create another transaction resulting in SQLITE_ERROR: cannot start a transaction within a transaction
:poop:.
yarn install node-sqlite3
yarn install sqlite3-trans
const sqlite3 = require('sqlite3');
const sqlite3Trans = require('sqlite3-trans');
const db = sqlite3Trans.wrap(new sqlite3.Database('lmftfy.db'));
FAQs
Proper transaction support for node-sqlite3
The npm package sqlite3-trans receives a total of 13 weekly downloads. As such, sqlite3-trans popularity was classified as not popular.
We found that sqlite3-trans 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.