
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.
github.com/256dpi/mgojq
A wrapper for mgo that turns MongoDB into a job queue.
// get jobs collection
coll := Wrap(db.C("jobs"))
// ensure indexes
err := coll.EnsureIndexes(7 * 24 * time.Hour)
if err != nil {
panic(err)
}
// create a worker pool
pool := NewPool(1, 100*time.Millisecond, 1*time.Hour)
// register worker
pool.Register("Adder", func(c *Collection, j *Job, q <-chan struct{}) error {
r := j.Params["a"].(int) + j.Params["b"].(int)
c.Complete(j.ID, bson.M{"r": r})
return nil
})
// start pool
pool.Start(coll)
defer pool.Close()
// add job
id, err := coll.Enqueue("Adder", bson.M{"a": 10, "b": 5}, 0)
if err != nil {
panic(err)
}
// wait some time
time.Sleep(200 * time.Millisecond)
// get job
job, err := coll.Fetch(id)
if err != nil {
panic(err)
}
fmt.Printf("%s: %d\n", job.Status, job.Result["r"].(int))
// Output:
// completed: 15
FAQs
Unknown package
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.