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/Laisky/graphql
Fully compatible with https://github.com/shurcooL/graphql
You can simply replace github.com/shurcooL/graphql
--> github.com/Laisky/graphql
to access new features.
use HTTP GET when request graphql query, use HTTP POST when request graphql mutation.
cli := NewClient(
"url",
httpClient,
graphql.WithCookie("cookieName", "cookieVal"),
graphql.WithHeader("headerName", "headerVal"),
)
package test
import (
"context"
"net/http"
"testing"
"github.com/Laisky/graphql"
)
type gcpLockQuery struct {
Lock struct {
Name graphql.String `graphql:"name"`
ExpiresAt graphql.String `graphql:"expires_at"`
} `graphql:"Lock(name: $name)"`
}
func TestQueryWithHTTPGet(t *testing.T) {
ctx := context.Background()
httpClient := http.DefaultClient
query := new(gcpLockQuery)
vars := map[string]interface{}{
"name": graphql.String("laisky.123"),
}
gracli := graphql.NewClient(
"https://blog.laisky.com/graphql/query/",
httpClient,
)
if err := gracli.Query(ctx, query, vars); err != nil {
t.Fatalf("%+v", 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.
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.