
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.
Lets you spy on a chain
$ npm install chain-spy
import { create } from 'chain-spy'
function select(db) {
return db
.select('id', 'name', 'age')
.where('name', 'Daenerys')
.sort('age')
.someFunction(5)
}
const dbProxy = create({ someFunction: n => n })
const result = select(dbProxy)
console.log(result)
// 5
console.log(dbProxy.__execution_log__)
// [ { type: 'get', name: 'select' },
// { type: 'apply', args: [ 'id', 'name', 'age' ] },
// { type: 'get', name: 'where' },
// { type: 'apply', args: [ 'name', 'Daenerys' ] },
// { type: 'get', name: 'sort' },
// { type: 'apply', args: [ 'age' ] } ]
// { type: 'get', name: 'someFunction' },
// { type: 'apply', args: [ 5 ] } ]
// Can be used with snapshot testing, eg.
expect(dbProxy.__execution_log__).toMatchSnapshot() // jest
t.snapshot(dbProxy.__execution_log__); // ava
Type: object
Can overwrite the return value of a property. eg.
const proxy = create({ hello: 'world', cat: n => n + 1 })
proxy.hello // world
proxy.something.hello // world
proxy.something('else').hello // world
proxy.cat(1) // 2
Can also access the proxy inside a overwrite function:
const proxy = create({ hello: function(n) {
return n === 5 ? 7 : this
}})
proxy.hello(1).hello(2).hello(5) // 7
MIT
FAQs
Lets you spy on a chain
The npm package chain-spy receives a total of 273 weekly downloads. As such, chain-spy popularity was classified as not popular.
We found that chain-spy 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.