
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
github.com/markarts/kivik-couchdb-cloudant
This package provides a basic implementation of IBM IAM auhtenticationg for cloudant.
package main
import (
"context"
iam "github.com/MarkArts/kivik-couchdb-cloudant/authenticator"
_ "github.com/go-kivik/couchdb/v4"
"github.com/go-kivik/kivik/v4"
)
func main() {
fmt.PrintLhn(setup("https://example.com", "iam APi key"))
}
func setup(cloudantDSN string, apiKey string) error {
client, err := kivik.New("couch", cloudantDSN)
if err != nil {
return nil, err
}
iamAuthenticator, err := iam.NewIAMAuthenticator(apiKey)
if err != nil {
return nil, err
}
err = client.Authenticate(context.TODO(), iamAuthenticator)
if err != nil {
return nil, err
}
}
Most likely using kivik's replication functions won't work as Cloudant replication works with a different auth mechanism.
This lib doesn't use the refresh tokens as they are only valid for a month which means your app won't be able to run longer then a month without restart.
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.