
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.