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/vole/btsync-api
Golang client for the Bittorrent Sync API.
package main
import (
btsync "btsync-api"
"fmt"
"log"
)
func main() {
// Create an instance of the client. Needs the configured
// login, password, and port of the Sync API. The last
// argument is to enable debug logging.
api := btsync.New("login", "password", 8080, true)
// Get a list of Sync folders. All API methods return
// a response and an error object.
folders, err := api.GetFolders()
if err != nil {
log.Fatalf("Error! %s", err)
}
// Response objects map directly to the documented JSON
// responses. However they are Golang style (caps/camelcase).
for _, folder := range *folders {
fmt.Printf("Sync folder %s has %d files\n", folder.Dir, folder.Files)
}
// Get Sync's current upload/download speed.
speed, _ := api.GetSpeed()
fmt.Printf("Speed: upload=%d, download=%d", speed.Upload, speed.Download)
}
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.