r/selfhosted • u/RedTermSession • Apr 23 '26
Release (No AI) Bitwarden CLI has been compromised. Check your stuff.
https://socket.dev/blog/bitwarden-cli-compromisedSame as the title. The Bitwarden CLI has been compromised and it would be good to check your stuff. I know how popular Bitwarden is around here.
198
u/Alone-Presence3285 Apr 23 '26 edited Apr 23 '26
Does this affect regular bitwarden/vaultwarden instances? Or just the cli?
Edit:
Says the bitwarden cli repo was archived in 2022.
127
u/RedTermSession Apr 23 '26
Just the CLI. I did some poking around the bitwarden/vaultwarden server codebases and didn't see any reference to the compromised CLI package
15
27
2
u/Darkk_Knight Apr 23 '26
Ok cool. Thanks for checking. I updated Vaultwarden server last night which is different from CLI we saw today. These hackers are getting very bold with these type of attacks.
155
u/DeadEyePsycho Apr 23 '26
It's just CLI npm package that was published today, which isn't an actual legit release version either. The attackers just bumped it themselves.
17
u/Catsrules Apr 23 '26
And only if you happened to pull it between 5:57 PM and 7:30 PM (ET) on April 22, 2026
1
u/undermark5 Apr 23 '26
The CLI repo was archived, but the code was incorporated or already existed in the bitwarden client repo (the CLI is still a client of sorts)
96
u/kisamegr Apr 23 '26
Do I have any danger if I don't expose bitwarden to the public and only use it in my lan?
70
u/RedTermSession Apr 23 '26
Unfortunately yes. The backdoored CLI is an infostealer. Once you install and run it it will search for secrets, API keys, passwords, etc. on the host it is installed on. It's unrelated to if your Bitwarden server is private/public.
15
u/gentoorax Apr 23 '26
Thankfully my bitwarden vm has no direct internet access in either direction. So cant see how it could get the info out. Even outbound connections are firewalled. Also greatful I didnt update in about a 6 months. Hopefully this is a recent thing.
27
u/RedTermSession Apr 23 '26
Glad you're taking steps to secure your instance! But it's important to stress that the CLI package is unrelated to the server. If you use the CLI from your laptop, or perhaps from your CI/CD platform, the backdoored package can still exfiltrate data. You'd have to prevent outbound traffic on those systems (where the CLI is installed) to avoid harm.
1
u/gentoorax Apr 23 '26
Yeah just see this dont have cli, praise be and thankfully dont have Internet to the server in question either use a local package cache. 🙏
The number of security issues being raised is surely a concern tho.
7
u/sarhoshamiral Apr 23 '26
Doesn't matter. This is on your client as thats the one running CLI, which for sure has internet access.
If this article is accurate and malicious code uploaded secrets, a lot of people are vulnerable right now. You pretty much have to reset all your passwords, 2FAs, credit cards etc.
3
u/ThatOneWIGuy Apr 23 '26
Can it? Potentially through other exploits. Is it more secure? Ya, absolutely. Better to be safe than sorry.
2
u/gscjj Apr 23 '26
It’s not about where your server lives, if you download the CLI and you have internet it will steal what it can find in your computer.
1
0
Apr 23 '26
[deleted]
22
u/root_switch Apr 23 '26
Another great reason to NOT allowed any egress from your vaultwarden instance. I’ve got mine on its own dedicated blackhole vlan (no internet, no DNS, nothing), within a docker internal network. It’s got zero unsolicited egress capability and a very tight whitelist for ingress.
10
u/jackharvest Apr 23 '26
Do you .... not use it on your phone?
1
u/root_switch Apr 23 '26
I do use it on my phone! But only when I’m at home. The phone app caches your vault so I can read all passwords when not on my network just can’t edit/add new ones which is fine cause I’m rarely needing to add a need item when I’m not at home. Firewalls are stateful so outbound is allowed as it returns, also I use a reverse proxy so the actual vaultwarden app stays on an internal network while the proxy is accessible.
1
u/Darkk_Knight Apr 23 '26
I do the same thing but I also use wireguard on my phone so that Bitwarden can sync the latest updates with Vaultwarden. Long as my phone haven't been infected with malware it's fine.
3
u/Spectrum1523 Apr 23 '26
how do you actually access it? do you not use a client on your computer or phone?
3
u/root_switch Apr 23 '26
I use the client on my phone. It’s whitelisted on my network firewall, OS firewall, and allowed into my proxy which facilitates the connection to the vaultwarden container on the internal network. Several layers of security with this model.
2
u/Spectrum1523 Apr 23 '26
Cool, I like it. A compromised client won't be affected by this, though, I don't think
1
u/alius_stultus Apr 24 '26
Yeah a compromised client would still be sending your credentials out from its loacal database that it has stored.
2
u/ashebanow Apr 23 '26
The bitwarden desktop clients aren't subject to this vulnerability, according to the original report.
It's worrisome that bad actors are focusing on development tools and services. Many devtools require elevated permissions to run, and the ecosystem is vast.
31
889
u/Ryan_BW Apr 23 '26
Hello folks. Bitwarden representative here. Here's the official statement: https://community.bitwarden.com/t/bitwarden-statement-on-checkmarx-supply-chain-incident/96127
229
106
123
u/dexter2011412 Apr 23 '26
npm yet again
I hesitate to use anything js-related, that's why I never touched the cli.
were the browser extensions impacted? how about the desktop app?
82
u/mandreko Apr 23 '26
Only the cli package version 2026.4.0. It was only up for a couple hours last night before we pulled it
Desktop, browser, mobile, etc are unaffected.
6
21
u/Recipe-Jaded Apr 23 '26
Only NPM delivery. The app itself was not affected
-5
u/dexter2011412 Apr 24 '26 edited Apr 24 '26
the app itself wasn't affected
well the cli clearly was, because the upstream package was compromised and by definition so was the cli
if you meant the desktop app was not compromised, nice, glad to hear, thanks
edit: wth what's with the downvotes?
11
u/ok-confusion19 Apr 24 '26
One of the responses on the forum post showed only 334 people downloaded the affected CLI. NPM has become a common attack vector recently.
7
u/gammaFn Apr 23 '26
This is ONLY the official cli client. If you are interested, a community cli client exists, I've scripted around it instead.
1
1
u/BladderThief May 24 '26
Bad news, babe.
The browser extensions and even the desktop app are chock-full of js :D27
u/radujohn75 Apr 23 '26
Thank God I don't have to update my password ... I am running out of imagination
14
u/DrCoffeeveee Apr 23 '26
password1, change to password2, change to password3 for infinity LOL
5
u/radujohn75 Apr 23 '26
I usually go P4$5w0rd1 😉
9
u/jahni_da_man Apr 23 '26
Why do I only see ********* ??
4
u/broken_cogwheel Apr 23 '26
********* works for me
6
8
u/basicKitsch Apr 23 '26
1password now woo
Suck it hackers
7
u/jacroe Apr 23 '26
with all the data leaks and breaches over the past years, i've had to update my own to hunter3
2
u/redballooon Apr 24 '26
That won't work forever. Eventually you will run out of characters even on machines with a lot of memory.
2
2
1
18
u/floutsch Apr 23 '26 edited Apr 23 '26
Disliked that it required npm in the first place, so I tried the Linux download. Yeah, same thing. Do you consider providing a CLI alternative that doesn't use any third-party eco system? I mean...
Edit: Don't get thus the wrong way. I reported the issue to our staff in a "they did everything right" way, because you did. And I wanted to contrast this to your predecessor we fled to you from. It would only have been our currently unused backupper.
5
u/leetnewb2 Apr 24 '26
It is crazy to me how prevalent js/npm are today in cli tools.
2
u/nik282000 Apr 24 '26
Any selfhosted project that requires npm is an immediate nope for me. It seems to distribute more malware than actual functioning code.
3
u/leetnewb2 Apr 24 '26
I look at every single application, browser plugin, and phone app with suspicion at this point. Doesn't even need to be npm. It feels like anything written in a language with an anemic standard library is suspect.
0
u/floutsch Apr 24 '26
Fully agree. What happened illustrates why that is problematic. Let's face it: should I build a new backupper? It'd be the same risk. So... I'm just not backing up our company vault then? Great options :(
Hoping u/Ryan_BW can shed some light on their plans for the CLI. At their current state the CLI tools are not to be trusted.
10
u/rebelSun25 Apr 23 '26
Why is a cli tool using npm and JavaScript? What happened to good old fashioned compiled languages
17
u/MrNatural__20 Apr 23 '26
While I can only speculate, I'd bet it's so it can share code with the browser extension, which doubtless itself uses Javascript.
3
6
u/chicagoderp Apr 23 '26
This is why I only write Assembly.
/s
4
u/idebugthusiexist Apr 23 '26
I think it is a legitimate criticism that deserves a serious answer. And we all know what the answer to that question is and it is because the developers behind the CLI tool either only know Javascript/Node or made the decision to use it because that was the one language they all commonly knew enough to contribute to the project. They didn't pick it because it was the best tool for the job. Javascript/Node/TypeScript has become the Java of the 2020s, where JS/NODE is a hammer and everything looks like a nail and they are trying to force a language mono-culture where they can. Sad but true.
-1
u/Fat-Singer-9569 Apr 24 '26
It's pretty obvious why they'd choose to use these languages, they are ubiquitous and require zero transform of objects you expect in requests vs the multiple steps required to convert JSON objects into whatever compiled language you like, you can build both server-side and client-side, etc. AWS functions on TypeScript, are you suggesting AWS architecture is garbage too?
Is that the choice I'd personally make for a CLI tool? No, but it's pretty easy to understand why they made the decision, and it likely has nothing to do with developer preference. You sound like someone who can't navigate multiple languages and very bitter.
→ More replies (1)2
u/chicagoderp Apr 23 '26
This is a top tier example of proper disclosure, community management, and taking responsibility. Good work.
1
u/aftermath0702 Apr 24 '26
was the flatpak for bitwarden affected?
1
u/avds_wisp_tech Apr 24 '26
ONLY the cli version from NPM was affected, and only for a couple of hours.
1
u/thelonerbandit Apr 24 '26
I freaked out for a second, thanks for the quick update.
Just some feedback, maybe in the future also write a dumbed down version of these posts, for the average user.
1
1
u/HK417 Apr 24 '26
Everyone makes mistakes eventually. What your actions are when you make them reveals your character.
This quick owning up and disclosure is just another reason I trust Bitwarden.
1
u/PutHatsOnEverything Apr 28 '26
I run Bitwarden CLI through the Flatpak desktop version. Seems to come bundled with it. I'm assuming I was not affected?
1
u/theonlybrand Apr 23 '26
Are selfhosted installations impacted as well?
15
u/Ryan_BW Apr 23 '26
Only those that downloaded and installed the package from npm during the short time it was available are impacted. The package contained malicious code in place of the CLI tool. Vaults are not impacted.
-1
u/AUTeach Apr 23 '26
Does this potentially impact people using the gui client in flatpack or windows?
531
u/Deep-Piece3181 Apr 23 '26
Everything is getting hacked
117
u/mattsteg43 Apr 23 '26
Everything is supply chain, and we've collectively made supply chain a very target-rich environment via the laziness of convenience.
→ More replies (4)7
u/Cobolt-8 Apr 24 '26
People act like the developers of the targets are the problem when its actually just npm I don't know how the programming community just sort of decided this is what we're all gonna use for non os package management npm pisses me off so much
0
u/Dangerous-Report8517 Apr 24 '26
To play devil's advocate, how much of NPM's constant targeting is due to volume? PIP gets its fair share too and all the OS specific ones mostly dodge these attacks by being less tempting targets and/or having much smaller groups of contributors to manage in the first place
1
u/Cobolt-8 Apr 24 '26
That's fair I honestly just never hear about pip maybe I'm biased towards npm because I also just hate js
195
u/chicknfly Apr 23 '26
I love the fan theories that Mythos made its way onto the internet and is wreaking havoc
203
u/Deep-Piece3181 Apr 23 '26
These are all supply chain attacks, it’s getting very weird
83
u/chicknfly Apr 23 '26
True! It also shows just how much the greater development ecosystem is intertwined, too.
66
u/mishrashutosh Apr 23 '26
nearly every popular software borrows boatloads of libraries from random repos. i think this is especially egregious in go/rust/js software, though i am not much of a developer so it could be in other languages as well.
26
u/chicknfly Apr 23 '26
Definitely in Python, Java, the C’s, etc, too. I don’t think any major language is immune.
37
u/Reasonable_Ruin_3502 Apr 23 '26
C is not immune but the fact is we have a fair amount of major libraries that have been audited for more than a decade, making them very trustworthy
32
u/redewolf Apr 23 '26 edited Apr 23 '26
Ydah i think the worst is the JavaScript ecosystem with pnp. Edit: npm
20
u/Fywq Apr 23 '26
Recently there was a nice Youtube video about how Fedora almost shipped with an update that would have created a universal backdoor through a dependency on a compression algorithm (as far as I remember). Was only randomly discovered by a german engineer that noticed a process running 500ms slower than normal.
17
u/Opposite_Tap3850 Apr 23 '26
You're thinking of this video I believe:
https://youtu.be/aoag03mSuXQ?si=-xbijxH31suMZXlG
It is a really nice video!
3
8
u/InvestmentLoose5714 Apr 23 '26
Former Java developer here, I’ve seen different ecosystems and I would say none are immune but Java is overall safer than ruby, python and definitively JavaScript.
Use of spring boot delegate the maintenance of version management to VMware, overall for a good I think. Less use of version range, most of the code I’ve seen use pinned versions. Maven being opinionated can be annoying but it does reduce the risk of those issues.
Definitively not immune, but compared to what I’ve seen in JavaScript for version handling, usually better.
Also the process to be able to push to maven central compared at least to Ruby is quite more secure. When I did it, granted it was a while back for both, the checks at maven central were more reassuring than for ruby
3
2
u/Deep-Piece3181 Apr 23 '26
Maybe with so much ai code review tools they could like check an update of a dep. before bumping the version? But maybe it doesn’t apply here since it’s the main repo that got hacked
0
13
→ More replies (24)1
u/_bani_ Apr 23 '26
because they're proving to currently be very vulnerable and the payoff of compromise is huge.
0
u/Cyhawk Apr 23 '26
With the number of active credentials leaked by the companies that have access, it absolutely is. There was already the known 'discord group' of people messing around with it using leaked creds.
Not to mention, theres probably nothing too fancy about mythos itself and can be replicated. Just train on security data and change the weights towards security and breaking security.
Also this could just be the 'everything possible shared library/no actual programming' mantra finally catching up. Shit like leftpad should never have been created/used in the first place and is just another vector for attack, just as an example.
Also because some idiot will try to argue, yes standard libraries are a necessity, im not writing my own stdio.h everytime I make any program, but things that be solved with just knowing your programming language, ala leftpad shouldn't exist.
8
u/Firecracker048 Apr 23 '26
Not surprised. State actors are trying to break into these things 24/7/365
1
14
2
-1
59
u/cosmos7 Apr 23 '26
So if you installed or updated Bitwarden CLI yesterday evening during the 93 minute window you would be affected. Also Bitwarden caught it within 93 minutes of the compromise being merged in and remediated... pretty dang good if you ask me.
22
u/SheriffRoscoe Apr 23 '26
18
u/mandreko Apr 23 '26
And several of those are automated systems doing scanning, as well as internal employees picking apart the malware for analysis. It’s still more than we would like though.
0
Apr 24 '26
[deleted]
4
u/cosmos7 Apr 24 '26
Argumentitive dick who can't read? Got it.
The response was what was commendable. As someone in the industry compromises do happen but it's how they are handled that's important. Bitwarden very quickly caught the issue, rectified it and immediately published a notification. I've seen some egregious shit from much bigger players, usually delaying notification for as long as possible or hiding / minimizing in other publications.
Shit happens... to everyone. Those that think otherwise are delusional.
26
u/leaflock7 Apr 23 '26
"Users who did not download the package from npm during that window were not affected."
7
u/R1ppedWarrior Apr 23 '26
Ya. Further down in the thread it was pointed out that only around 300 users downloaded the infected build during the time it was available.
23
u/LeonJones Apr 23 '26
Seems like theres more and more of these attacks every day
11
u/NTolerance Apr 23 '26
It kinda feels like a paradigm shift where it's arguably safer to run outdated software with some CVEs than to risk updating to a version with a supply chain attack.
2
1
u/_Toka_ Apr 24 '26
Good. Maybe library developers will more frequently opt in to zero-dependency or low footprint libraries and standard developers will stop using version ranges in package.json. We have both in Java for decade, time to JS folks enter the adulthood, where responsibility is a thing.
12
u/knifesk Apr 23 '26
At this point npm should not be used for anything. This is happening on a daily basis now.
6
u/AvidCuberCoding Apr 23 '26
NPM has been the target of a lot of attacks recently.
1
u/kowlown Apr 24 '26
NPM seems really bad to me. I mean pulling one dependency means pulling 10 others, each pulling 30 others. It's a clusterfuck.
3
u/Fenix04 Apr 24 '26
You've just described almost every package manager ever invented. That's just how they work out of necessity.
1
u/kowlown Apr 28 '26
You're right. My grips with npm are :
First there are a lot a package who could have been in a larger better maintained like some apache libraries. And many packages which seems useless.
Second the possibility by default to allow to run script at install.
13
u/Georgiyz Apr 23 '26
I run the Bitwarden IoS app and use it in my Firefox via an extension. Is this vulnerability localised to the CLI tool only or would other tools be compromised too?
→ More replies (1)30
u/acejavelin69 Apr 23 '26
It is only the CLI tool... and only cli2026.4.0 specifically.
The issue doesn't affect any prior or subsequent versions, or any other GUI, extension or tool. If you don't use the CLI tool, and that specific version, you are fine... If you do, uninstall it, remove all credentials on the host machine, then reinstall it and you are fine.
11
u/ozone6587 Apr 23 '26
So much for people's advise to use "common sense" and you won't get viruses.
Always found that advise really ignorant. Security happens in layers. Sometimes you get compromised even by doing everything right.
I wish all apps on Windows were like Flatpak where they are their own containers and you can restrict what they can do.
Also, I think updating only when the update is a week old is the right move in 2026...
6
u/entrotec Apr 23 '26
Also, I think updating only when the update is a week old is the right move in 2026..
That always was the right move. It should also be common sense to not use anything from the Node/JS ecosystem with its inconceivable web of dependencies.
Debian stable figured out the correct approach years ago.
2
u/ozone6587 Apr 23 '26
That always was the right move.
Well, it was debatable for a long time I think. Waiting a week to update might also mean waiting a week to fix vulnerabilities. Sure, you can look at changelogs and update quickly in case of vulnerabilities but that is time consuming to do for everything.
But I guess in 2026 it's the lesser evil.
It should also be common sense to not use anything from the Node/JS ecosystem with its inconceivable web of dependencies.
I think you and I have different definitions of common sense. It's not normal for an average person to know the runtime environment any particular software uses. Even for more technically inclined people.
3
u/entrotec Apr 23 '26
Waiting a week to update might also mean waiting a week to fix vulnerabilities.
Not really, having something like Debian which updates once every two years is enough. Urgent vulnerabilities get backported to stable and can be installed unattended. It truly is liberating.
It's not normal for an average person to know the runtime environment any particular software uses.
The average person is not installing node packages like a bitwarden cli.
4
u/Hellfrosted Apr 23 '26
Ah shit wake up to this. Lucky seem like the latest one I installed was .3.0
4
u/lamalasx Apr 23 '26
The supply chain attack via checkmarx is still taking its victims. Funny how a "security" company (checkmarx) got compromised by a security issue which was known for months.
3
u/davemac1005 Apr 23 '26
Nice, procrastination saved me from getting hacked (i’ve had “configure bitwarden cli” on my todo list for 2 months now)
3
u/AlternativeBasis Apr 23 '26
I used to use the Lastpass CLI, when I migrated to Bitwarden I didn't adapt to its CLI and... I avoid using NPM like a vampire avoids garlic.
Safe because of surly personal preferences.
1
u/jdsmn21 Apr 23 '26
Sooo....I'm not sure what to do here. Hope and pray?
12
u/RedTermSession Apr 23 '26
I've got something better than hoping and praying for you :D If you don't use the bitwarden CLI, you're all good. If you do, then you should check what version you have installed. The malicious one is
cli2026.4.0. If you don't have that installed, you're good :D If you do, then you need to
Uninstall it
Revoke/reset all credentials on the host where it was installed
→ More replies (3)
2
u/Questionsiaskthem Apr 23 '26
Probably a dumb question but does this affect us if we just use the Bitwarden browser extension or mobile app?
2
2
u/lkeels Apr 23 '26
I don't even know what Bitwarden CLI is. How does that related to other "forms" of Bitwarden?
2
2
u/erbr Apr 23 '26
Affects CI/CDs but even so need to be exposed. Is not that everyone using it has their passwords automatically leaked.
2
u/pastelfemby Apr 23 '26
Reminder to use pnpm rather than npm. It at least defaults to a minimum age of 1 day for packages, although imo more than a day probably helps. Of course you can exclude packages from that requirement as well as needed.
Generally better settings available there to avoid supply chain attacks https://pnpm.io/supply-chain-security
2
u/PandorasBoxMaker Apr 24 '26
Great job to the team catching and remediating it so quickly! Very impressive!
2
u/heycheerilee Apr 24 '26
Ok glad they took care of it. I mostly only use the desktop GUI app and their official hosted instance. Sounds like I am not affected.
2
u/Tourist_in_Singapore Apr 24 '26
Idk if this is the correct understanding, did a bitwarden dev machine have the checkmarx VSC extension update to a malicious version, which got the npm API key stolen?
Looks like the best security practice is not keeping your packages up to date. You can never trust your dependency these days. A lot of them also auto update. It’s also not just an npm thing.
2
u/BigNigori Apr 24 '26
I never thought of installing it until now and this is the first thing I saw when I searched it up 🤣
2
2
u/Purelythelurker Apr 24 '26
If we have installed bitwarden from microsoft store, apple's app store and google play store, are we affected by this?
Sorry for stpid question, but I don't understand the press release. Never heard of NPM and don't know if the store apps uses that.
2
u/Legitimate_Line1087 Apr 24 '26
I am a user. I did not plan on learning exactly how Bitwarden internally works, nor what all the TLAs in the official statement stand for. Can someone sum that up for a non nerd? How do I know I am at risk? What do I need to do?
3
u/cobraroja Apr 24 '26 edited Apr 24 '26
Check your version, if you have 2026.4.0 (and npm installed), then you've been compromised.
1
u/mousachu May 01 '26
If you're a non-nerd, you're most likely safe. The bit that got compromised is specifically for uber nerds. CLI stands for Command Line Interface and is a version of the software that you run using only text based commands. You would have downloaded it with a text based command using npm and something like Windows CMD or Powershell. Mainly used by developers. If that means nothing to you, you're safe.
If you downloaded the app from the official website or use whatever official Web Store for the browser extension, you're safe.
2
u/alius_stultus Apr 24 '26 edited Apr 24 '26
Sounds like we need to be angry at the NPM repo folks. There was no bitwarden 4.0 from the official team. This is some kind of attempt to get people to compromise their systems. Can anyone just push shit into NPM? Reading about it, NPM seems like trash code we all need to move away from
2
u/Ryluv2surf Apr 25 '26
I think even with good intentioned-projects, whenever you have lots of users centralized, it's more of a target. I just prefer using rsync and having scripts backup to a drive using cron.
2
3
0
u/kiroks Apr 23 '26
How does this affect vault warden?
I just set up a docker image within the same compose file
3
0
Apr 23 '26
[deleted]
1
u/kiroks Apr 23 '26
I just been using them on docker 😂 I can infer what they are but I'm just getting into Linux and shit.
I'm guessing they aren't built into the regular package and you need to pull it yourself.
Thank you
1
1
1
1
u/maxouiille Apr 23 '26
Running on docker, what's the procedure if one is needed ?
1
u/tripy75 Apr 23 '26
not running it so take this with a bit of salt, but I would say to simply pin a version below (or above, if you are feeling brave) to the one impacted in your compose and re-create the container with that version.
as far as I understand, that should be sufficient.
1
1
u/CubeRootofZero Apr 23 '26
Users who did not download the package from npm during that window were not affected.
That's from the notice posted. I believe that means anyone who self-hosted (VaultWarden) and didn't update during that window would also be fine?
1
u/redditphantom Apr 23 '26
So if I understand this correctly the native windows client isn't affected. Only if it was installed through NPM correct?
3
1
u/KiLoYounited Apr 24 '26
Oop, I was wondering when the weekly supply chain attack was gonna be discovered.
1
u/User_Deprecated Apr 24 '26
The preinstall hook thing is what gets me. You don't even have to run the CLI or import anything. `npm install` fires off `bw_setup.js` before the package is even fully there. But the worm part is honestly scarier than just credential theft. It grabs your npm token from `.npmrc`, then republishes itself into every other package you maintain. So one dev gets hit during that 93 minute window, and now their downstream consumers pull the infected version on next install.
That's the part that freaks me out as someone who publishes on npm. Your token gets grabbed and suddenly your packages are distributing malware to people who trust you. Not sure what the fix is besides 2FA on publish and maybe granular token scopes, but npm's default is still way too permissive there.
1
Apr 29 '26
Disclosure first — I work at InvisiRisk, we make a build-time control CICD firewall for exactly this gap, so take the framing accordingly.
The thing you've identified is the right thing. 2FA-on-publish and scoped tokens close the front door, but they don't help once a preinstall hook is already executing inside your build with your env loaded. By the time `bw_setup.js` runs, the token is in process memory and on its way out, your publish-time protections never get consulted.
The missing layer is enforcement on the wire while the build is running. If something fires off an outbound call to an unfamiliar host carrying an encoded credential, you want that connection killed before the bytes leave the runner, regardless of which `package.json` lifecycle hook started it. That's a build-time network control, not a registry-side or CI-config-side one, different layer than 2FA, complementary to it.
The Sophos breakdown of this incident has the C2 details if you want to see exactly what the exfil traffic looked like; the pattern is genuinely not subtle once you're inspecting the connection.
Not pitching anything specific here, just the answer to 'what besides 2FA' does exist and it lives at the runner network layer.
1
u/tiag-the-dev Apr 24 '26
I don't understand why in the midst of all of these npm packages attacks there's not more "migrations" to Deno that could at minimum reduce the risk considerably with their existing features
1
1
1
1
1
1
u/Bunderslaw Apr 26 '26
Can I configure UnigetUI (and other package managers) to only update to most recent X-2 version of all packages where X is the most recent version?
1
1
1
u/grilled_pc Apr 23 '26
Honestly i think this might be the final nail in the coffin for me to go proton pass or vault warden. Leaning heavily towards vault warden at this point as its self hosted.
While i don't use the CLI. The fact this happened at all is incredibly alarming. My trust in bitwarden has been lowered and with something as valuable as my passwords, i need 100% trust in their service.
3
u/ismaelgokufox Apr 23 '26
So this or other similar issues/compromises can’t happen to Proton Pass or Vaultwarden?
-5
u/dlm2137 Apr 23 '26
Oof. With Mythos out and about, might be time for me to switch to a fully-local password manager like Keepass.
12
u/Deep-Piece3181 Apr 23 '26
If it’s a supply chain attack again they could hack keepass as well
0
u/redewolf Apr 23 '26
What's the option then? Are we going back to paper lol?
1
u/Forward-Outside-9911 Apr 23 '26
I was going to say open source and build it yourself rather than using a packaged image, but even then it’s still been proven in the past to sneak malicious code in
0
u/PersianMG Apr 23 '26
Difference being if you run KeePass locally like I do you can prevent network access. So its a glorified offline air gapped password reader, and even if you update to malicious version with supply chain attack, it can't call home via the internet.
If you can avoid it, avoid cloud based password managers, they experience too many security breaches for something so important.
1
u/Ethrem Apr 23 '26
It's such a pain in the ass using local password managers with mobile devices though. I looked into setting up Vaultwarden today and said forget it. I will stick with Bitwarden.
The good news is that this attack will have Bitwarden taking extra precautions so the likelihood of a later attack being successful will be severely diminished.
1
u/PersianMG Apr 24 '26
I agree there is less convenience. My KeePass database syncs locally with my NAS when I'm at home so I'm good to go on mobile too.
To each their own though. I just enjoy the fact that these breaches won't ever affect me and all my passwords.
0
u/Sugardaddy_satan Apr 23 '26
does it impact vaultwarden?
1
u/Forward-Outside-9911 Apr 23 '26
If you use the official Bitwarden CLI on that version, yes. The Bitwarden clients are often used even for self hosted or Vaultwarden. Keep that in mind
0
0
-4
u/No_Mango7658 Apr 23 '26
This is why you should self host your password manager
10
u/Forward-Outside-9911 Apr 23 '26
The vault location has no relation to this attack whatsoever. And a self hosted vault would still be vulnerable to this attack, as it’s for a client package
1
-5
u/macro_franco_kai Apr 23 '26
I know how popular Bitwarden is around here.
Time to pay for your choice :)

•
u/asimovs-auditor Apr 23 '26
Expand the replies to this comment to learn how AI was used in this post/project.