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/at15/go-solr
Solr client in golang
go get -u github.com/at15/go-solr/cmd/solrgo
, it can create core and index json documentpackage main
import (
"context"
"fmt"
"log"
"os"
"github.com/at15/go-solr/solr"
)
const coreName = "job"
func main() {
c := solr.Config{}
solrClient, err := solr.NewClient(c)
if err != nil {
log.Fatal(err)
return
}
if err := solrClient.IsUp(context.Background()); err != nil {
log.Fatalf("Solr is not up %v", err)
return
}
log.Println("Solr is up")
solrClient.UseCore(coreName)
if status, err := solrClient.DefaultCore.Status(context.Background(), false); err != nil {
log.Fatalf("Check core status failed %v", err)
return
} else {
log.Printf("Got status for core %s %v\n", coreName, status)
}
}
Not implemented
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.