News for hackers. Stuff that matters.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @12:57PM (#47878158)
Anyone know of a better way to protect yourself than setting a min release age on npm/pnpm/yarn/bun/uv (and anything else that supports it)?

Setting min-release-age=7 in .npmrc (needs npm 11.10+) would have protected the 334 unlucky people who downloaded the malicious @bitwarden/cli 2026.4.0, published ~19+ hours ago (see https://www.npmjs.com/package/@bitwarden/cli?activeTab=versi... and select "show deprecated versions").

Same story for the malicious axios (@1.14.1 and @0.30.4, removed within ~3h), ua-parser-js (hours), and node-ipc (days). Wouldn't have helped with event-stream (sat for 2+ months), but you can't win them all.

Some examples (hat tip to https://news.ycombinator.com/item?id=47513932):

  ~/.npmrc
  min-release-age=7 # days

  ~/Library/Preferences/pnpm/rc
  minimum-release-age=10080 # minutes

  ~/.bunfig.toml
  [install]
  minimumReleaseAge = 604800 # seconds

  # not related to npm, but while at it...
  ~/.config/uv/uv.toml
  exclude-newer = "7 days"

p.s. shameless plug: I was looking for a simple tool that will check your settings / apply a fix, and was surprised I couldn't find one, I released something (open source, free, MIT yada yada) since sometimes one click fix convenience increases the chances people will actually use it. https://depsguard.com if anyone is interested.

EDIT: looks like someone else had a similar idea: https://cooldowns.dev

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by PunchyHamster on Thursday April 23, 2026 @03:17PM (#47880293)
Don't write anything backend or cli tool in NPM would be good start
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by MetaWhirledPeas on Thursday April 23, 2026 @05:01PM (#47881916)
Other package managers are magically immune?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by c2h5oh on Thursday April 23, 2026 @05:06PM (#47881992)
They are not, but npm is uniquely bad in that regard. Refusal to implement security features that would have made attacks like this harder really doesn't help https://github.com/node-forward/discussions/issues/29
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by nirvdrum on Thursday April 23, 2026 @06:19PM (#47882906)
The lack of a comprehensive standard library for JavaScript also results in projects pulling many more third party dependencies than you would with most other modern environments. It’s just a bigger attack surface. And if you can compromise a module used for basic functionality that you’d get out of the box elsewhere, the blast radius will be enormous.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by pico303 on Thursday April 23, 2026 @10:54PM (#47884926)
Not to mention a culture of basically one-line packages ad infinitum. I downloaded a JS tool the other day to generate test reports and it had around 300 dependencies.

Needless to say I’m running all my JS tools in a Docker container these days.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by wombatpm on Thursday April 23, 2026 @10:56PM (#47884938)
So why hasn’t someone created a batteries include JS library? I don’t program in JS on the backend so I don’t know how feasible something like that is.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by girvo on Thursday April 23, 2026 @11:07PM (#47885010)
Everyone’s ideas of what batteries should be included differ
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by wolfi1 on Friday April 24, 2026 @12:26AM (#47885505)
I, for one, root for AAA
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by hfsh on Friday April 24, 2026 @03:04PM (#47894480)
*cries in ghettoblaster and Maglite D cells*
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by stevekemp on Friday April 24, 2026 @01:58AM (#47886147)
https://github.com/stdlib-js/stdlib was is one of several attempts at that, but yes the issue is that different people have very different views of what should be standard.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by fc417fc802 on Friday April 24, 2026 @07:59AM (#47889038)
That doesn't seem like it should be an issue in practice? Rather than a single standard library endorsed by the language stewards if the community at large converges on a small handful of "standard" solutions that seems like it would satisfy the security aspect of things.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by erikerikson on Friday April 24, 2026 @10:29AM (#47890802)
Lodash but also, which batteries?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by mayama on Thursday April 23, 2026 @09:26PM (#47884433)
You could write most of the cli tools using stdlib in python and go, without need for including hundreds of libraries even for trivial things.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by NamlchakKhandro on Friday April 24, 2026 @12:26AM (#47885504)
yes obviously.

isn't it obvious?

it should be obvious.

why isn't obvious?

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by ljm on Friday April 24, 2026 @09:48AM (#47890274)
Security by obscurity. If another language became as ubiquitous as JS then it'd be the same.

In the context of TFA, don't rely on third party github actions that you haven't vetted. Most of them aren't needed and you can do the same with a few lines of bash. Which you can also then use locally.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by prdonahue on Thursday April 23, 2026 @01:56PM (#47879005)
> Anyone know of a better way to protect yourself than setting a min release age on npm/pnpm/yarn/bun/uv (and anything else that supports it)?

Most of these attacks don't make it into the upstream source, so solutions[1] that build from source get you ~98% of the way there. If you can't get a from-source build vs. pulling directly from the registries, can reduce risk somewhat with a cooldown period.

For the long tail of stuff that makes it into GitHub, you need to do some combination of heuristics on the commits/maintainers and AI-driven analysis of the code change itself. Typically run that and then flag for human review.

[1] Here's the only one I know that builds everything from source: https://www.chainguard.dev/libraries

(Disclaimer: I work there.)

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @03:00PM (#47880062)
Build from source is a great idea, I assume you provide SLSA/sigstore like provenance as well?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by arianvanp on Thursday April 23, 2026 @03:03PM (#47880108)
The chainguard folks built sigstore :)
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @11:30PM (#47885158)
Yep yep, hence the ask, expected for containers, wondering if also for build from source.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by schnatterer on Monday April 27, 2026 @03:06AM (#47918567)
Can you give some examples for the claim that most of the attacks don't make it upstream? My gut tells me that, yes, mostly binaries have been compromised. But I am sure you have some real-world examples proving the point.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by n_e on Thursday April 23, 2026 @02:16PM (#47879328)
> Anyone know of a better way to protect yourself than setting a min release age on npm/pnpm/yarn/bun/uv (and anything else that supports it)?

With pnpm, you can also use trustPolicy: no-downgrade, which prevents installing packages whose trust level has decreased since older releases (e.g. if a release was published with the npm cli after a previous release was published with the github OIDC flow).

Another one is to not run post-install scripts (which is the default with pnpm and configurable with npm).

These would catch most of the compromised packages, as most of them are published outside of the normal release workflow with stolen credentials, and are run from post-install scripts

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @02:53PM (#47879951)
Yep! depsguard sets trustPolicy: "no-downgrade" where applicable.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by tadfisher on Thursday April 23, 2026 @01:24PM (#47878541)
Cooldowns are passing the buck. These are all caught with security scanning tools, and AI is probably going to be better at this than people going forward, so just turn on the cooldowns server-side. Package updates go into a "quarantine" queue until they are scanned. Only after scanning do they go live.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by woodruffw on Thursday April 23, 2026 @01:45PM (#47878857)
"Just" is doing a lot of work; most ecosystems are not set up or equipped to do this kind of server-side queuing in 2026. That's not to say that we shouldn't do this, but nobody has committed the value (in monetary and engineering terms) to realizing it. Perhaps someone should.

By contrast, a client-side cooldown doesn't require very much ecosystem or index coordination.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by tadfisher on Thursday April 23, 2026 @01:57PM (#47879027)
Yeah, I should work on avoiding that word.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by woodruffw on Thursday April 23, 2026 @02:19PM (#47879378)
I think the rest of your analysis is correct! I'm only pushing back on perceptions that we can get there trivially; I think people often (for understandable reasons) discount the social and technical problems that actually dominate modernization efforts in open source packaging.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by charcircuit on Friday April 24, 2026 @02:36AM (#47886422)
>Perhaps someone should

This kind of thinking is why I don't trust the security of open source software. Industry standard security practices don't get implemented because no one is being paid to actually care and they are disconnected from the users due to not making income from them.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by woodruffw on Friday April 24, 2026 @10:12AM (#47890583)
Having been in both worlds, I don't think the median unpaid OSS developer is any more (or less) dispassionate about security outcomes than the median paid SWE. There's lots of "maybe someone should do this" in both worlds.

(With that said, I think it also varies by ecosystem. These days, I think I can reasonably assert that Python has extended significant effort to stay ahead of the curve, in part because the open source community around Python has been so willing to adopt changes to their security posture.)

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by pxc on Thursday April 23, 2026 @02:56PM (#47880001)
The approach you outline is totally compatible with an additional one or two day time gate for the artifact mirrors that back prod builds. Deploy in locked-down non-prod environments with strong monitoring after the scans pass, wait a few days for prod, and publicly report whatever you find, and you're now "doing your part" in real-time while still accounting for the fallibility of your automated tools.

There's risk there of a monoculture categorically missing some threats if everyone is using the same scanners. But I still think that approach is basically pro-social even if it involves a "cooldown".

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @01:31PM (#47878658)
I agree, even without project glasswing (that Microsoft is part of) even with cheaper models, and Microsoft's compute (Azure, OpenAI collaboration), it makes no sense that private companies needs to scan new package releases and find malware before npm does. I'm sure they have some reason for it (people rely on packages to be immediately available on npm, and the real use case of patching a zero day CVE quickly), but until this is fixed fundamentally, I'd say the default should be a cooldown (either serverside or not) and you'll need to opt in to get the current behavior. This might takes years of deprecation though, I'm sure it was turned on now, a lot of things would break. (e.g. every CVE public disclosure will also have to wait that additional cooldown... and if Anthropic are not lying, we are bound for a tsunami of patched CVEs soon...)
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by tadfisher on Thursday April 23, 2026 @01:49PM (#47878920)
There are so many ways to self-host package repos that "immediate availability" to the wider npm-using public is a non-issue.

Exceptions to quarantine rules just invites attackers to mark malicious updates as security patches.

If every kind of breakage, including security bugs, results in a 2-3 hour wait to ship the fix, maybe that would teach folks to be more careful with their release process. Public software releases really should not be a thing to automate away; there needs to be a human pushing the button, ideally attested with a hardware security key.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by fauigerzigerk on Thursday April 23, 2026 @02:08PM (#47879190)
I use a separate dev user account (on macOS) for package installations, VSCode extensions, coding agents and various other developer activities.

I know it's far from watertight (and it's useless if you're working with bitwarden itself), but I hope it blocks the low hanging fruit sort of attacks.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by bananadonkey on Thursday April 23, 2026 @05:26PM (#47882278)
Check your home folder permissions on macos, last time I checked mine were world readable (until I changed them). I was very surprised by it, and only noticed when adding an new user account for my wife.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by fauigerzigerk on Friday April 24, 2026 @03:00AM (#47886622)
I noticed that too (and changed it). The home folder appears to be world readable because otherwise sharing via the Public folder wouldn't work. The folders where the actual data lives are not world readable.

I think this is a bad idea, because it means the permissions of any new folders have to be closely guarded, which is easy to forget.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by 4ndrewl on Thursday April 23, 2026 @02:15PM (#47879308)
The problem with cooldowns is that the more people use them, the less effective they become.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @03:03PM (#47880109)
Well, luckily, those who find the malicious activity are usually companies who do this proactively (for the good of the community, and understandably also for marketing). There are several who seem to be trying to be the first to announce, and usually succeed. IMHO it should be Microsoft (as owners of GitHub, owners of npm) who should take the helm and spend the tokens to scan each new package for malicious code. It gets easier and easier to detect as models improve (also gets easier and easier to create, and try to avoid detection on the other hand)
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by 12_throw_away on Thursday April 23, 2026 @03:45PM (#47880729)
The hypothesis you're referring to is something like "if everyone uses a 7-day cooldown, then the malware just doesn't get discovered for 7 days?", right?

An alternative hypothesis: what if 7-day cooldowns incentivize security scanners, researchers, and downstream packagers to race to uncover problems within an 7-day window after each release?

Without some actual evidence, I'm not sure which of these is correct, but I'm pretty sure it's not productive to state either one of these as an accepted fact.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by 4ndrewl on Friday April 24, 2026 @12:42PM (#47892616)
Yes, what if it does incentivize security scanners, or maybe it won't.

Either way there will be fewer eyes on it.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by somehnguy on Thursday April 23, 2026 @03:37PM (#47880604)
That was my first instinct as well but I'm not sure how true it really is.

Many companies exist now whose main product is supply chain vetting and scanning (this article is from one such company). They are usually the ones writing up and sharing articles like this - so the community would more than likely hear about it even if nobody was actually using the package yet.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by bdangubic on Thursday April 23, 2026 @02:24PM (#47879455)
care to elaborate?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by tomesco on Thursday April 23, 2026 @02:28PM (#47879520)
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by ievans on Thursday April 23, 2026 @03:38PM (#47880626)
Top comment has a great explicit refutation:

> This plan works by letting software supply chain companies find security issues in new releases. Many security companies have automated scanners for popular and less popular libraries, with manual triggers for those libraries which are not in the top N.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by madduci on Thursday April 23, 2026 @02:59PM (#47880053)
Renovate can do it as well
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @03:01PM (#47880071)
Yep, depsguard has support for renovate and dependabot cooldown settings too.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by hombre_fatal on Thursday April 23, 2026 @02:39PM (#47879706)
Maybe using a slower, stable package manager that still gets security/bug fixes, like nix.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by pxc on Thursday April 23, 2026 @02:45PM (#47879829)
Install tools using a package manager that performs builds as an unprivileged user account other than your own, sandboxes builds in a way that restricts network and filesystem access, and doesn't run let packages run arbitrary pre/post-install hooks by default.

Avoid software that tries to manage its own native (external, outside the language ecosystem) dependencies or otherwise needs pre/post-install hooks to build.

If you do packaging work, try to build packages from source code fetched directly from source control rather than relying on release tarballs or other published release artifacts. These attacks are often more effective at hiding in release tarballs, NPM releases, Docker images, etc., than they are at hiding in Git history.

Learn how your tools actually build. Build your own containers.

Learn how your tools actually run. Write your own CI templates.

My team at work doesn't have super extreme or perfect security practices, but we try to be reasonably responsible. Just doing the things I outlined above has spared me from multiple supply chain attacks against tools that I use in the past few weeks.

Platform, DevEx, and AppSec teams are all positioned well to help with stuff like this so that it doesn't all fall on individual developers. They can:

  - write and distribute CI templates
  - run caches, proxies, and artifact repositories which might create room to
    - pull through packages on a delay
    - run automated scans on updates and flag packages for risks?
    - maybe block other package sources to help prevent devs from shooting themselves in the foot with misconfiguration
  - set up shared infrastructure for CI runners that
    - use such caches/repos/proxies by default
    - sandbox the network for build$
    - help replace or containerize or sandbox builds that currently only run on bare metal on some aging Jenkins box on bare metal
  - provide docs
    - on build sandboxing tools/standards/guidelines
    - on build guidelines surrounding build tools and their behaviours (e.g., npm ci vs npm install, package version locking and pinning standards)
  - promote packaging tools for development environments and artifact builds, e.g.,
    - promote deterministic tools like Nix
    - run build servers that push to internal artifact caches to address trust assumptions in community software distributions
    - figure out when/whether/how to delegate to vendors who do these things
I think there's a lot of things to do here. The hardest parts are probably organizational and social; coordination is hard and network effects are strong. But I also think that there are some basics that help a lot. And developers who serve other developers, whether they are formally security professionals or not, are generally well-positioned to make it easier to do the right thing than the sloppy thing over time.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by doctorpangloss on Thursday April 23, 2026 @02:18PM (#47879357)
Haha what if there's an urgent security fix in an updated package?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by edf13 on Thursday April 23, 2026 @02:25PM (#47879480)
Manually review the package and override the setting
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by doctorpangloss on Thursday April 23, 2026 @02:30PM (#47879563)
The flaw of the cooldown solution speaks for itself.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by bonzini on Thursday April 23, 2026 @04:22PM (#47881326)
Still it's something like a second factor (or even, literally, overriding might require 2FA).
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @02:30PM (#47879551)
Yep, that's the main argument against cooldowns, but there are ways to override them. I'll update the docs soon.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by fragmede on Thursday April 23, 2026 @05:16PM (#47882155)
But how do you know which one is good? If foo package sends out an announcement that v1.4.3 was hacked, upgrade now to v1.4.4 and you're on v1.4.3, waiting a week seems like a bad idea. But if the hackers are the one sending the announcement, then you'd really want to wait the week!
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by throw1230 on Thursday April 23, 2026 @07:40PM (#47883696)
malicious versions are recalled and removed when caught - so you don't need to update to the next version
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by dwattttt on Thursday April 23, 2026 @05:55PM (#47882642)
An announcement isn't a quiet action. One would hope that the real maintainers would notice & take action.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by abustamam on Thursday April 23, 2026 @05:19PM (#47882203)
I like the idea of a cool down. But my next question is would this have been caught if no one updated? I know in practice not everyone would be on a cool down. But presumably this comprise was only found out because a lot of people did update.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by Ukv on Thursday April 23, 2026 @06:16PM (#47882872)
> presumably this comprise was only found out because a lot of people did update

This was supposedly discovered by "Socket researchers", and the product they're selling is proactive scanning to detect/block malicious packages, so I'd assume this would've been discovered even if no regular users had updated.

But I'd claim even for malware that's only discovered due to normal users updating, it'd generally be better to reduce the number of people affected with a slow roll-out (which should happen somewhat naturally if everyone sets, or doesn't set, their cool-down based on their own risk tolerance/threat model) rather than everyone jumping onto the malicious package at once and having way more people compromised than was necessary for discovery of the malware.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by vlovich123 on Thursday April 23, 2026 @10:47PM (#47884887)
Better for the cool down to be managed guaranteed centrally by the package forge rather than ad-hoc by each individual client.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by ornornor on Thursday April 23, 2026 @11:32PM (#47885170)
That’s tricky, sometimes you really need the new version to be available right away.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by vlovich123 on Friday April 24, 2026 @02:08AM (#47886218)
There’s ways to handle that. But that’s the exception, not the rule.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by friendzis on Friday April 24, 2026 @03:24AM (#47886792)
foobarizer>=1.2.3 vs foobarizer==1.2.5
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by piaste on Friday April 24, 2026 @07:16AM (#47888610)
The cooldown is a defence against malicious actors compromising the release infrastructure.

Having the forge control it half-defeats the point; the attackers who gained permission to push a malicious release, might well have also gained permission to mark it as "urgent security hotfix, install immediately 0 cooldown".

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by vlovich123 on Friday April 24, 2026 @09:57AM (#47890395)
I have not heard anyone seriously discuss that cooldown prevents compromise of the forge itself. It’s a concern but not the pressing concern today.

And no, however compromised packages to the forge happens, that is not the same thing as marking “urgent security hotfix” which would require manual approval from the forge maintainers, not an automated process. The only automated process would be a blackout period where automated scanners try to find issues and a cool off period where the release gets progressively to 100% of all projects that depend on it over the course of a few days or a week.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by piaste on Saturday April 25, 2026 @06:15PM (#47905112)
By "release infrastructure" I didn't mean gain admin access to github.com, I meant gaining the credentials to push out a release of that particular package.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by skybrian on Thursday April 23, 2026 @07:34PM (#47883639)
That assumes discovering a security bug is random and it could happen to anyone, so more shots on goal is better. But is that a good way to model it?

Ir seems like if you were at all likely to be giving dependencies the extra scrutiny that discovers a problem, you’d probably know it? Most of the people who upgraded didn’t help, they just got owned.

A cooldown gives anyone who does investigate more time to do their work.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by kjok on Thursday April 23, 2026 @06:07PM (#47882761)
Cooldown sounds like a good idea ONLY IF these so called security companies can catch these malicious dependencies during the cooldown period. Are they doing this bit or individual researchers find a malware and these companies make headlines?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by subarctic on Thursday April 23, 2026 @07:42PM (#47883706)
Does it matter? The individual researchers could look at brand-new published packages just the same
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by hunter2_ on Thursday April 23, 2026 @10:45PM (#47884876)
For researchers who notice new releases as soon as they are published and discover malice based on that alone, I agree, and every step of that can be automated to some level of effectiveness.

But for researchers who aren't sufficiently effective until the first victim starts shouting that something went sideways, the malicious actor would be wise to simply ensure no victim is aware until well after the cooldown period, implementing novel obfuscation that evades static analysis and the like.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by me-vs-cat on Friday April 24, 2026 @08:49AM (#47889492)
Novel obfuscation, with a novel idea, is hard to invent. Novel obfuscation, where it is only new to that codebase, is easy(ier) to flag as suspicious.

While bad actors would be wise to ensure low-cooldown users are unaware, I would not say they can "simply" ensure that.

Code with any obfuscation that evades static analysis should become more suspicious in general. That's a win for users.

A longer window of time for outside researchers is a win for users -- unless the release fixes existing problems.

What we need is allowing the user to easily change from implicitly trusting only the publisher to incorporate third parties. Any of those can be compromised, but users would be better served when a malicious release must either (1) compromise multiple independent parties or (2) compromise the publisher with an exploit undetectable during cooldown.

Any individual user can independently do that now, but it's so incredibly time-consuming that only large organizations even attempt it.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by Groxx on Thursday April 23, 2026 @10:09PM (#47884670)
It seems less likely that they'll find it before you're bitten by it if you intentionally race against them by choosing newest all the time, yea?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by yard2010 on Friday April 24, 2026 @07:31AM (#47888743)
Maybe we can let people that don't care about privacy try them first
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by otherme123 on Friday April 24, 2026 @10:59AM (#47891195)
I am thinking about Django releases. They release a "Release Candidate", which you have to download by other means to test it. I rarely do it. But when a new official is out, I install it very easily in a testing environment and run my tests against it. I think this is what most people do, and the phase where supply attacks get caught, because in that 48 hour window all the tests in the world are run.

It's not a lack of care about privacy, the 7 days delay is like a new stage between RC and final release, where you pull for testing but not for production.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by slekker on Thursday April 23, 2026 @05:38PM (#47882433)
It's a trade off for sure, maybe if companies could have "honeypot" environments where they update everything and deploy their code, and try to monitor for sneaky things.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by teiferer on Thursday April 23, 2026 @05:48PM (#47882560)
It's easy for malicious code to detect sandboxing.

Also, check out the VW Diesel scandal.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by pmichaud on Thursday April 23, 2026 @05:48PM (#47882555)
If I were in charge of a package manager I would be seriously looking into automated and semi automated exploit detection so that people didn't have to yolo new packages to find out if they are bad. The checking would itself become an attack vector, but you could mitigate that too. I'm just saying _something_ is possible.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by fdsajfkldsfklds on Thursday April 23, 2026 @06:48PM (#47883234)
Never, ever type "npm -i". This advice has served me well for many years.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by dirtbag__dad on Thursday April 23, 2026 @08:38PM (#47884111)
I guess this is the case for new installs, but for existing dependencies can’t you simply pin them to a patch release, and point at the sha?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by personalcompute on Thursday April 23, 2026 @08:47PM (#47884174)
Regarding doing more than just a minimum release age: The tool I personally use is Aikido "safe-chain". It sets minimum release age, but also provides a wrapper for npm/uv/etc where upon trying to install anything it first checks each dependency for known or suspected vulnerabilities against an online commercial vulnerability database.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by neya on Thursday April 23, 2026 @08:53PM (#47884205)
Stop using Javascript. Or Typescript or whatever excuses they have for the fundamentally flawed language that should have been retired eons ago instead of trying to get it fixed. Javascript, its ecosystem has always been a pack of cards. Time and again it has been proven again. I think this is like the 3rd big attack in the last 30 days alone.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @11:33PM (#47885175)
Yes but it has nothing to do with the language, and everything to do with the ecosystem (npm tried to make thing such as mandatory MFA etc, npmjs is so big maintainers pushed back)

TypeScript on its own is a great language, with a very interesting type system. Most other type systems can’t run doom.

https://simonwillison.net/2025/Feb/27/typescript-types-can-r...

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by Ferret7446 on Friday April 24, 2026 @06:23AM (#47888198)
> Most other type systems can’t run doom.

That doesn't sound like a compliment.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by d0liver on Thursday April 23, 2026 @09:15PM (#47884352)
This isn't a JS specific issue.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by bdangubic on Thursday April 23, 2026 @08:57PM (#47884226)
it is being attacked precisely because it is ubiquitous. no one is going to attack haskell, erlang or whatever no one uses.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by nl on Thursday April 23, 2026 @09:38PM (#47884491)
> ~/.config/uv/uv.toml > exclude-newer = "7 days"

Note the if you get

   failed to parse year in date "7 days": failed to parse "7 da" as year (a four digit integer): invalid digit, expected 0-9 but got
then comment out the exclude and run

  uv self update
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by nikcub on Thursday April 23, 2026 @10:30PM (#47884792)
compartmentalize. I do development and anything finance / crypto related / sensitive on separate machines.

If you're brave you can run whonix.

The issue is developers who have publish access to popular packages - they really should be publishing and signing on a separate machine / environment.

Same with not doing any personal work on corporate machines (and having strict corp policy - vercel were weak here).

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by NetMageSCW on Thursday April 23, 2026 @11:13PM (#47885047)
Isn’t the problem with a minimum age release that the opposite would also occur - a high priority fix of zero day under exploit wouldn’t be fixed and you could be compromised in the window?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 23, 2026 @11:24PM (#47885123)
It is! It’s a tough problem to balance. The good news is that you can always override for specific cases. Linking to my other reply here: https://news.ycombinator.com/item?id=47880149
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by duskdozer on Friday April 24, 2026 @07:38AM (#47888811)
Update dependencies when you need something in them, not just because there's a new version available.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by nedt on Friday April 24, 2026 @07:52AM (#47888955)
But then at the same time you should always update because it might fix a security vulnerability. Otherwise you end up running nodejs 10 because you don't need the new stuff.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by duskdozer on Friday April 24, 2026 @10:31AM (#47890846)
Or it might introduce one. But sure, a security fix for a known vulnerability could count as something you need in a new version. Ideally they would be backported and separated from feature updates. The constant dependency churn and single-channel update stream is kind of why a lot of vulnerabilities become problems in the first place.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by kippinsula on Friday April 24, 2026 @09:47AM (#47890262)
we've been running Renovate with `minimumReleaseAge: '7 days'` across all our repos for a while now, which does basically the same thing across npm, PyPI, and Cargo in one config. the tradeoff is you're always 7 days behind on patches, but for anything touching CI or secrets tooling that feels like a fair deal. the nasty part of this class of attack is the timing window is usually sub-24h before it's pulled, so even 3 days would have caught this one.
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by pdntspa on Friday April 24, 2026 @11:06AM (#47891284)
This seems pretty sensible. Do we really need updates the day they drop?
Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by johntash on Saturday April 25, 2026 @06:25PM (#47905186)
> https://depsguard.com if anyone is interested.

I really appreciate that you didn't include a "curl | bash" command to paste for installing, but at the same time it's what I was expecting when I clicked.

I'm pretty sure I saw a comment on HN where the user wrapped all of their npm/pip/etc commands with bubblewrap. I've been thinking of doing something similar and basically just seeing how many of my daily commands I can sandbox. My hunch is that _most_ of them don't need to operate outside the current directory and don't need internet access.

Re:Bitwarden CLI Compromised in Ongoing Checkmarx Supply Cha... by eranation on Thursday April 30, 2026 @12:39AM (#47958167)
Yeah, I really wanted to avoid anything "| bash"... appreciate you noticed! (although downloading any binary is also risky, I think just making this a standalone python script would be a better idea for the next version)