Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/yanatan16/golang-mtgox
An implementation of a Mt. Gox client in Go. It uses the websocket interface.
Note: This API mostly complete but untested in production.
Example below. API Documentation on Godoc.
func ExampleMtGoxApi() {
gox, err := NewFromConfig(os.ExpandEnv("$MTGOX_CONFIG"))
if err != nil {
panic(err)
}
c, err := gox.Subscribe("ticker", "depth")
if err != nil {
panic(err)
}
go func() {
for msg := range c {
fmt.Println("Got ticker or depth:", msg)
}
}()
orderchan, err := gox.SubmitOrder("bid", 100000000, 10000) // Both are in _int notation. Will add float later
if err != nil {
panic(err)
}
order := <- orderchan
if order.Success {
fmt.Println("Yay submitted an order!", order.Result)
} else {
fmt.Println("Boo. Failure!", order.Error)
}
}
MIT found in LICENSE file.
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.