
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.
vawter.tech/eiter
go get vawter.tech/eiter
This package contains iterator types that support error reporting. They interoperates with the stdlib iter
package.
package main
import (
"errors"
"fmt"
"vawter.tech/eiter"
)
// Counter emits the requested number of values and then an error.
func Counter(ct int) eiter.Seq[int] {
return eiter.Of(func(yield func(int) bool) error {
for i := range ct {
if !yield(i) {
return nil
}
}
return errors.New("Error World!")
})
}
func main() {
var err error
for i := range Counter(3).Unwrap(&err) {
fmt.Println(i)
}
// This is similar to checking sql.Rows.Err()
if err != nil {
fmt.Println(err)
}
}
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.
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.