
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
@metamask-previews/assets-controllers
Advanced tools
Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
@metamask/assets-controllersControllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs).
yarn add @metamask/assets-controllers
or
npm install @metamask/assets-controllers
This package features the following controllers:
RatesController and CurrencyRateController is that the second one is coupled to the NetworksController and is EVM specific, whilst the first one can handle different blockchain currencies like BTC and SOL.RatesControllerThe RatesController is responsible for managing the state related to cryptocurrency exchange rates and periodically updating these rates by fetching new data from an external API.
// Initialize the RatesController
const ratesController = new RatesController({
interval: 180000,
includeUsdRate: true,
state: {
fiatCurrency: 'eur',
cryptocurrencies: [Cryptocurrency.Btc],
},
});
// Start the polling process
ratesController.start().then(() => {
console.log('Polling for exchange rates has started.');
});
// Stop the polling process after some time
setTimeout(() => {
ratesController.stop().then(() => {
console.log('Polling for exchange rates has stopped.');
});
}, 300000);
This package is part of a monorepo. Instructions for contributing can be found in the monorepo README.
FAQs
Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
We found that @metamask-previews/assets-controllers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.