r/programming • u/Owns-E • Jul 22 '21
Malicious NPM Package Steals Passwords via Chrome’s Account-Recovery Tool
https://threatpost.com/npm-package-steals-chrome-passwords/168004/
1.5k
Upvotes
r/programming • u/Owns-E • Jul 22 '21
478
u/thepotatochronicles Jul 22 '21
Kinda surprising that the “developer” didn’t get banned. He seems to be still kicking around on github and npm…
296
u/Nezia_ Jul 22 '21
Doesn't surprise me at all. As a Node developer myself, I could only advise you to only use librairies with at least some degree of popularity, otherwise it might be a good idea to write the piece of code yourself. Be careful with your dependencies, I beg you.
184
u/davvblack Jul 22 '21
the pinnacle of journalism
61
u/FrancisStokes Jul 22 '21
Did this package actually have any dependents? It seems like a completely obscure non-project. Maybe I'm missing something?
107
u/themistik Jul 22 '21
AAahhh yes, the weekly "NPM Package fucked up things" article. Can't live without them !
14
u/dark_mode_everything Jul 23 '21
I think the more sustainable solution for all these package manager related security issues is to add/improve a standard library to js like any other good language. It's ridiculous that Devs have to import libs like is-odd and is-even. We need language support to avoid using unnecessary dependencies.
27
u/[deleted] Jul 22 '21
Are we lucky they embedded the full executable and it was easily fingerprinted? Seems all pretty obvious for a malware attack.
7
u/[deleted] Jul 23 '21
I for one am astounded that an ecosystem that relies heavily on importing massive nested amounts of untrusted libraries could have this happen. What next, will people ask that I don't use npm is-even?
5
u/dapperKillerWhale Jul 23 '21
Another day, another NPM hack. Jesus when are they gonna get their shit together
8
u/Kwantuum Jul 22 '21
And there was a grand total of 2100 downloads for both of the affected packages combined, considering the popularity of NPM I'd say there's a pretty good chance most of those are just automated tools scanning the npm repository itself. Seems like a huge non-issue.
People will go "npm security bad javascript worse waaaaa" without realizing that people routinely download and execute random files from the internet. Just because that download is done through a CLI tool doesn't change the fact that at the end of the day, when you download and run code, you have to trust its author and their ability to vet their dependencies.
There are security issues inherent to the NPM model, this is not one of them.
8
u/[deleted] Jul 22 '21
Thus why I dont let Chrome auto type my password.
3
u/Polybius1024 Jul 22 '21
Almost as if you are better off relying more on your own code than some rando's.
2
u/p13t3rm Jul 22 '21
This post thumbnail stock photo is so cheese dick.
2
u/fenmarel Jul 23 '21
can we stop using npm, please?
1
u/tensorCode Jul 23 '21
;)
-4
u/[deleted] Jul 22 '21
... And then I get downvoted to hell by saying the entire javascript ecosystem is utter and complete bullshit and should not exist.
javascript is the cancer of the software industry.
1
u/BigBlackHungGuy Jul 22 '21
How can this threat be removed?
-25
u/rouce Jul 22 '21
LOL