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.
Amazon Product is a Nokogiri-backed Ruby wrapper to the [Amazon Product Advertising API] 2.
## Installation
Add to your Gemfile.
gem 'amazon_product'
## Usage
Set up a request.
require "amazon_product"
req = AmazonProduct["us"]
req.configure do |c|
c.key = AMAZON_KEY
c.secret = AMAZON_SECRET
c.tag = AMAZON_ASSOCIATE_TAG
end
Look up a product.
req << { :operation' => 'ItemLookup',
:item_id' => '0679753354' }
resp = request.get
[Or use a shorthand] 3.
resp = req.find('0679753354')
Consume the entire response.
resp.to_hash
Quickly drop down to a particular node.
resp['Item']
[Please see the project page] 4 for further detail.
Amazon Product defaults to the Net::HTTP library but can be configured to use Curb or EM-HTTP-Request.
Amazon Product descends from Sucker. While I still like the vacuum metaphor, the name felt tiring after a while.
FAQs
Unknown package
We found that amazon_product demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.