
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.
wristband-node-m2m
Advanced tools
This SDK can be used by Wristband machine-to-machine clients to retrieve an access token. The access token is cached in memory for subsequent calls. When the access token expires, the SDK will automatically get a new access token.
The cached access token is tied to an instance of a WristbandM2MClient
. Therefore, it's optimal to create a single instance
of the WristbandM2MClient
so that the access token cache will be utilized globally.
https://www.npmjs.com/package/wristband-node-m2m
It uses npm, TypeScript compiler, Jest, webpack, ESLint, Prettier, husky, pinst, commitlint. The production files include CommonJS, ES Modules, UMD version and TypeScript declaration files.
npm install wristband-node-m2m
import { WristbandM2MClient } from 'wristband-node-m2m'
const APPLICATION_DOMAIN=process.env.APPLICATION_DOMAIN; // env variables
const CLIENT_ID=process.env.CLIENT_ID;
const CLIENT_SECRET=process.env.CLIENT_SECRET;
const wristbandM2MClient = new WristbandM2MClient( {
appDomain: APPLICATION_DOMAIN, clientId: CLIENT_ID, clientSecret: CLIENT_SECRET
});
const accessToken = await wristbandM2MClient.getToken();
APPLICATION_DOMAIN - This is the vanity domain for the Wristband application associated to the machine-to-machine client.
CLIENT_ID - This is the Wristband machine-to-machine client ID.
CLIENT_SECRET - This is the Wristband machine-to-machine client secret.
getToken() - This method retrieves an access token for the machine-to-machine client. The access token is cached in memory for subsequent calls. When the access token expires, this method will automatically get a new access token when it's called.
clearToken() - This method clears the access token in the cache.
FAQs
Unknown package
We found that wristband-node-m2m 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.
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.