TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Compromised NPM packages of ua-parser-JS (0.7.29, 0.8.0, 1.0.0)

38 pointsby nop_slideover 3 years ago

4 comments

flanbiscuitover 3 years ago
discussion is already going on reddit: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;qdlela&#x2F;breaking_npm_package_uaparserjs_with_more_than_7m&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;qdlela&#x2F;breakin...</a><p>The compromised package: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;ua-parser-js" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;ua-parser-js</a><p>7,680,657 downloads a week<p>Version 0.7.28 is still good, anything above that is compromised<p>&gt; 0.7.29 includes scripts that download and execute binaries. From the command-line arguments, one of them looks like a cryptominer, but that might be just for camouflage.<p>Probably one of the biggest reasons it&#x27;s downloaded so much is that it&#x27;s a direct dependency of Facebook&#x27;s &quot;fbjs&quot; package which is downloaded 5.7mil&#x2F;week: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;fbjs" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;fbjs</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;blob&#x2F;main&#x2F;packages&#x2F;fbjs&#x2F;package.json#L72" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;blob&#x2F;main&#x2F;packages&#x2F;fbjs&#x2F;pac...</a><p>Someone has already filed an issue: <a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;issues&#x2F;464" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;fbjs&#x2F;issues&#x2F;464</a>
olexover 3 years ago
Maintainer already released clean versions &quot;on top of&quot; the compromised ones, and NPM acted on reports and removed the compromised versions as well.<p>Compromised (and no longer downloadable from NPM):<p>- 0.7.29<p>- 0.8.0<p>- 1.0.0<p>Clean:<p>- 0.7.28 (last version before the hijack)<p>- 0.7.30<p>- 0.8.1<p>- 1.0.1<p>Compromised versions apparently contained a cryptomining tool capable of running on Linux, and a trojan that extracts sensitive data (saved passwords, cookies) from browsers on Windows. Both are blocked by up-to-date Windows Defender and presumably other AV software.
评论 #28970173 未加载
justinlillyover 3 years ago
For those looking, this is the diff. I&#x27;d be really curious how that got in.<p><a href="https:&#x2F;&#x2F;my.diffend.io&#x2F;npm&#x2F;ua-parser-js&#x2F;0.7.28&#x2F;0.7.29" rel="nofollow">https:&#x2F;&#x2F;my.diffend.io&#x2F;npm&#x2F;ua-parser-js&#x2F;0.7.28&#x2F;0.7.29</a>
cyanydeezover 3 years ago
id abandon the entire name spzce.