Live data from Hacker News

NPM debug and chalk packages compromised

aikido.dev

571–580 of 796 posts

Re: NPM debug and chalk packages compromised

#571

Earlier quoted context omitted.

I would agree if this were one of those `curl | sh` scenarios, but don't we consider things like `brew` to be sufficiently low-risk, akin to `apt`, `dnf`, and the like?

Anyone can upload an NPM package without much review. For Homebrew, you at least have to submit a pull request.

Homebrew has been compromised before. To think it’s immune is a bit naive.

Re: NPM debug and chalk packages compromised

#573

Earlier quoted context omitted.

[flagged]

Apparently it found this attack more or less immediately. It seems strange to attack a service like this right after it actively helped keep people safe from malware. I'm sure its not perfect, but it sounds like they deserve to take a victory lap.

I don’t think celebrating a company who has a distinct interest in prolonging a problem while they profit off it is a good thing, no.

Re: NPM debug and chalk packages compromised

#574

Earlier quoted context omitted.

Do I need any? Automated tools cannot prevent malicious code being injected. While they can make attempts to evaluate common heuristics and will catch low hanging malware, they are not fool proof against highly targeted attacks. Either way, the parent post is clearly ambulance chasing rather than having a productive conversation, which should really be about whether or not automatically downloading and executing huge…

> Do I need any? Automated tools cannot prevent malicious code being injected. While they can make attempts to evaluate common heuristics and will catch low hanging malware, they are not fool proof against highly targeted attacks. So just because a lock isn't 100% effective at keeping out criminals we shouldn't lock our doors?

Im not sure how that relates to the company ambulance chasing on what should be a public service announcement without a shade of advertising.

That’s like lock companies parading around when their neighbour is murdered during a burglary but they weren’t because they bought a Foobar(tm) lock.

Re: NPM debug and chalk packages compromised

#575

Earlier quoted context omitted.

How does someone intelligent with 2FA get pwned? Serious question.

Numbers game. Plenty of people got the email and deleted it. Only takes one person distracted and thinking "oh yeah my 2FA is pretty old" for them to get pwned.

It's more than that. You need to log in, manually, into a new domain you've never used your password before.

Re: NPM debug and chalk packages compromised

#576

Earlier quoted context omitted.

How does someone intelligent with 2FA get pwned? Serious question.

Numbers game. Plenty of people got the email and deleted it. Only takes one person distracted and thinking "oh yeah my 2FA is pretty old" for them to get pwned.

(I think everyone in this comment chain already knows this, but) PSA: your 2FA does not "get old" and does not need to be rotated (unless the device YOU stored it on was compromised). "Rotate your 2FA periodically" is NOT recommended security advice.

Re: NPM debug and chalk packages compromised

#577
post #9

Hi, yep I got pwned. Sorry everyone, very embarrassing. More info: - https://github.com/chalk/chalk/issues/656 - https://github.com/debug-js/debug/issues/1005#issuecomment-3... Affected packages (at least the ones I know of): - ansi-styles@6.2.2 - debug@4.4.2 (appears to have been yanked as of 8 Sep 18:09 CEST) - chalk@5.6.1 - supports-color@10.2.1 - strip-ansi@7.1.1 - ansi-regex@6.2.1 - wrap-ansi@9.0.1 - color-conve…

we're only human mate, great job responding to it!

thanks for your efforts!

Re: NPM debug and chalk packages compromised

#578
post #540
post #522

Earlier quoted context omitted.

> sometimes the password manager does not auto-fill So pick one that does? That's like its top 2 feature > he does use one He doesn't since he has no autofill installed, so loses the key security+ convenience benefit of automatch

> So pick one that does? That's like its top 2 feature Still doesn’t work 100% of the time, because half of the companies on earth demote their developer time to breaking 1995-level forms. That’s why every popular password manager has a way to fill passwords for other domains, why people learn to use that feature, and why phishers have learned to convince people to use that feature. WebAuthn prevents phishing. Passwo…

Then good password managers will still show you only the logins for that domain. If the login is on another domain then you would have saved it anyways when first logging in/registering and if the site moved then you can get suspicious and check carefully first.

Re: NPM debug and chalk packages compromised

#579
post #442

Earlier quoted context omitted.

As someone with red/green vision deficiency: if you do this, please don’t forget people like me are unable to distinguish many shades of colours, which would be very disadvantageous here!

It’s not like it would hurt you for there to be supplementary info others can see but you can’t.

And it's not like it would hurt the developers to be conscious of their choices.

Re: NPM debug and chalk packages compromised

#580

From sindresorhus: You can run the following to check if you have the malware in your dependency tree: `rg -u --max-columns=80 _0x112fa8` Requires ripgrep: `brew install rg` https://github.com/chalk/chalk/issues/656#issuecomment-32668...

Here's something I generated in my coding AI for Powershell: `Get-ChildItem -Recurse | Select-String -Pattern '_0x112fa8' | ForEach-Object { $_.Line.Substring(0, [Math]::Min(80, $_.Line.Length)) }` Breakdown of the Command: - Get-ChildItem -Recurse: This command retrieves all files in the current directory and its subdirectories. - Select-String -Pattern '_0x112fa8': This searches for the specified pattern in the fil…

Or you can just install ripgrep on windows too and have it check much faster ;)
Post reply on HN