Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
github.com/tbruyelle/hipchat-go
Go client library for the HipChat API v2.
Currently only a small part of the API is implemented, so pull requests are welcome.
import "github.com/tbruyelle/hipchat-go/hipchat"
Build a new client, then use the client.Room
service to spam all the rooms you have access to (not recommended):
c := hipchat.NewClient("<your AuthToken here>")
opt := &hipchat.RoomsListOptions{IncludePrivate: true, IncludeArchived: true}
rooms, _, err := c.Room.List(opt)
if err != nil {
panic(err)
}
notifRq := &hipchat.NotificationRequest{Message: "Hey there!"}
for _, room := range rooms.Items {
_, err := c.Room.Notification(room.Name, notifRq)
if err != nil {
panic(err)
}
}
HipChat allows to test the auth token by adding the auth_test=true
param, into any API endpoints.
You can do this with hipchat-go
by setting the global var hipchat.AuthTest
. Because the server response will be different from the one defined in the API endpoint, you need to check another global var AuthTestReponse
to see if the authentication succeeds.
hipchat.AuthTest = true
client.Room.Get(42)
_, ok := hipchat.AuthTestResponse["success"]
fmt.Println("Authentification succeed :", ok)
// Dont forget to reset the variable, or every other API calls
// will be impacted.
hipchat.AuthTest = false
The code architecture is hugely inspired by google/go-github.
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 researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.