We Just Found Malicious Code in the Popular NPM Package
AI summary of the linked articleMalicious code has reportedly been found in a popular NPM package, according to the title, but the text contains only obfuscated JavaScript and does not name the package, its maintainers or any dates. The script wraps the browser's fetch function and XMLHttpRequest so that response bodies pass through a routine that finds the closest match among long built-in lists of Bitcoin, Ethereum, Tron and Solana-style addresses. It also checks for an injected window.ethereum wallet before running its main logic. The text does not explain what the code does with these matches or who is responsible. |
Recommended by 5 curators |
3 comments Sindresohrus asked ChatGPT what the malware does: https://github.com/chalk/chalk/issues/656#issuecomment-3266900029 For anyone trying to find the packages which are affected, here is (apparently) the npm maintainer who got pwned and tells which packages contain bad code https://news.ycombinator.com/item?id=45169794 I did a bunch of checks and from what I can tell, this version of Kiwi News is, for now unaffected of the issues |
