
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Dependency injection.
npm install --save di-ioc
module.exports = require('di-ioc').create()
// Start defining a `random` service:
.define('random', function () {
var pseudoRandomBytes = require('crypto').pseudoRandomBytes;
// The `random` service has one function:
return {
base64: function () {
return pseudoRandomBytes(20).toString('base64');
}
};
});
module.exports = require('di-ioc').create()
// Greeting service which uses the random service: (arguments are detected)
.define('greet', function (random) {
return function (name) {
console.log('Hello ' + name + '! Here is a random string: ' + random.base64());
};
});
module.exports = require('di-ioc').create(require)
.use('./util')
.use('./app')
.init();
var randomService = module.exports.util.random;
// eQ/NZnl7qusVN9hB/3nCn3wFKfY=
console.log(randomService.base64());
// Hello World! Here is a random string: dfLGC20CpCJxAZSu+uFp57dlJl0=
module.exports.app.greet();
.init()
creates.require('di-ioc').create().transient('serviceName', ...);
.FAQs
Node.js dependency injection.
The npm package di-ioc receives a total of 1 weekly downloads. As such, di-ioc popularity was classified as not popular.
We found that di-ioc 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.