
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@bss-sbc/shopify-api-fetcher
Advanced tools
From: BSS Group > BSS Commerce > Division Shopify/Blockchain
BucketManager
: Manage Token bucket rate limiter of active store
initializeAll: (activeStores: Shop[]) => number;
: Initialize rate limiter for all given stores
initializeOne: (domain: string) => TokenBucketRateLimiter
: Initialize rate limiter for specific domain
get: (domain: string) => TokenBucketRateLimiter
: Get initialized rate limiter of a specific domain
clear: (domain: string) => void
: Clear rate limiter of a specific domain, used when app is uninstalled
safeFetch: (domain: string, url: RequestInfo, params?: RequestInit) => Promise<Response>
: use this instead of normal fetch
, with additional parameter domain
, which specify a store.
const { GraphQL, Rest } = require("@bss-sbc/shopify-api-fetcher");
const DOMAIN="...replace this....myshopify.com"
const TOKEN="...replace this..."
const API_VERSION="2022-10"
async function main() {
await GraphQL.safeFetch(DOMAIN, TOKEN, {
query: `
query queryShop {
shop {
name
email
contactEmail
myshopifyDomain
ianaTimezone
currencyCode
currencyFormats {
moneyFormat
}
}
}
`,
}).then(data => console.log(JSON.stringify(data)));
await Rest.safeFetch(DOMAIN, `https://${DOMAIN}/admin/api/${API_VERSION}/shop.json`, {
method: "GET",
headers: {
"Content-Type": "application/json",
'X-Shopify-Access-Token': TOKEN,
}
}).then(response => response.json()).then(data => console.log(JSON.stringify(data)));
}
main().finally(() => {
process.exit(0);
});
Because of numbers of services
, it is difficult to listen to app/uninstalled
webhook event. So, auto clear bucket is necessary
FAQs
README.md
We found that @bss-sbc/shopify-api-fetcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.