
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.
ethwatch-client
Advanced tools
EthWatch is a decentralized distribution network for EVM smart contract events. It allows apps to listen to events in a scalable and secure way, instead of polling a blockchain node via RPC or other centralized API.
EthWatch is great for oracles, bridges, and other blockchain-adjacent backends, as well as DEXes, DeFi pools, and other dapp frontends that wish to improve UX by displaying chain events in realtime.
EthWatch is currently heavily WIP. It shouldn't be relied on by anything valuable.
Check out a live demo here.
This is the JS library that web and node.js-based apps can use to subscribe to smart contract events via EthWatch.
npm install ethwatch-client
import { EthWatch } from 'ethwatch-client'
const ethWatch = new EthWatch({
chain: 'ethereum'
})
ethWatch.watch(contractAddress, abi).then((contract) => {
contract.on('event', (event) => {
console.log(event.parsed)
})
})
The EthWatch constructor options and their default values:
const ethWatch = new EthWatch({
chain: 'ethereum', // Name of the chain to connect to
quorum: 0.5, // Between 0 and 1, this is the ratio of seed nodes that must report an event before it's passed to the application
})
TODO: tests TODO: handle changes in seed node set TODO: ability to wait N block confirmations on top of events TODO: optimize web package size (by only bringing in relevant modules of ethers?)
FAQs
Watch Ethereum/EVM log events in a secure, robust, and scalable way
The npm package ethwatch-client receives a total of 2 weekly downloads. As such, ethwatch-client popularity was classified as not popular.
We found that ethwatch-client 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
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.