Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/jcbhmr/go-anstyle/anstyle
🦀 Rust anstyle crate ported to Go
|
go get github.com/jcbhmr/go-anstyle/anstyle
style := anstyle.NewStyle().
Bold().
Underline().
Foreground(anstyle.ANSIColorRed)
fmt.Printf("%vHello world!%v\n", style, style.RenderReset())
To get started after cloning this repository you can run the example:
go run ./examples/dump-style.go
This project tries to bring some of the Rust-isms from the anstyle crate to Go. That means things like Option<T>
are represented as *T
or (T, bool)
and Result<T, E>
is (T, error)
. I don't really know if that's the best way to represent these things in Go, but it's what I'm doing for now. If you have better ideas or suggestions, please tell me! ❤️
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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.