Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
MWS Orders is a full-featured Ruby interface to the Amazon Marketplace Web Service (MWS) Orders API. With the MWS Orders API, you can list orders created or updated during a time frame you specify or retrieve information about specific orders.
To use Amazon MWS, you must have an eligible seller account.
Create a client:
require 'mws/orders/parser'
client = MWS.orders(marketplace: 'ATVPDKIKX0DER',
merchant_id: '123')
Set up credentials when instantiating or with environment variables.
List orders created or updated during a time frame you specify:
response = client.list_orders(created_after: 1.month.ago)
orders = response.parse
puts orders.count # => 100
orders.first.inspect # => #<MWS::Orders::Order 902-3159896-1390916>
List the next page of orders:
client.list_orders_by_next_token(orders.next_token).parse
Get one or more orders based on their order numbers:
response = client.get_order('902-3159896-1390916')
orders = response.parse
orders.first.inspect # => #<MWS::Orders::Order 902-3159896-1390916>
List order items:
response = client.list_order_items('902-3159896-1390916')
order_items = response.parse
List the next page of order items:
client.list_order_items_by_next_token.parse
Orders and order items are represented by POROs that map one on one to the attributes returned by the API.
Check the operational status of the API:
client.get_service_status.parse
FAQs
Unknown package
We found that mws-orders 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.