Skip to content
Data Breach

Malicious NuGet Packages Target Browser Credentials, SSH Keys, and Crypto Wallets

A fresh wave of malicious packages has been quietly spreading through the NuGet ecosystem, one of the most widely used registries in the .NET developer world. Five rogue packages have been discovered posing as legitimate Chinese software libraries, secretly stealing browser credentials, SSH private...

· May 27, 2026 · 6 min read · 👁 2 views
Malicious NuGet Packages Target Browser Credentials, SSH Keys, and Crypto Wallets

A fresh wave of malicious packages has been quietly spreading through the NuGet ecosystem, one of the most widely used registries in the .NET developer world. Five rogue packages have been discovered posing as legitimate Chinese software libraries, secretly stealing browser credentials, SSH private keys, and cryptocurrency wallet data.

The attack takes a clever approach. Instead of creating obviously suspicious packages, the threat actor built each malicious library on top of real, functional code that developers in Chinese enterprise environments would recognize.

By mimicking trusted tools like AntdUI, a popular WinForms component library, the packages appear legitimate enough to pass casual inspection.

Researchers at Socket.dev identified all five packages, published under a single NuGet account named bmrxntfj. The packages accumulated approximately 64,784 downloads across all versions, placing tens of thousands of developer machines and CI/CD build systems at risk. The campaign traces back to at least September 2025, with all five packages still live at the time of writing.

What makes this campaign persistent is the version rotation technique the operator used. Out of 224 total versions published, 219 were deliberately hidden from public search. By keeping only one version visible while regularly swapping in fresh ones, the attacker invalidated hash-based detection and forced security teams to constantly update their blocklists.

Any developer workstation or build server that ran a package restore referencing these five IDs has potentially been exposed since late 2025. That long lifespan and high download count make this one of the more quietly damaging supply chain threats discovered this year.

Malicious NuGet Packages

The payload fires through a .NET module initializer, which the runtime calls automatically when a matching assembly loads. No user interaction is needed beyond a routine package restore. Once triggered, the malware uses JIT hooking to replace the compiler’s dispatch pointer, gaining control over every method compiled afterward.

A second-stage infostealer named we4ftg.exe then executes. It targets saved credentials across 12 Chromium-based browsers including Chrome, Edge, Brave, Firefox, and Opera, collecting passwords, autofill data, session cookies, and payment cards. It handles both legacy and AppBound Chrome encryption formats, confirming the payload has been recently maintained.

The threat actor bmrxntfj NuGet profile showing all five IR packages (Source - Socket.dev)
The threat actor bmrxntfj NuGet profile showing all five IR packages (Source – Socket.dev)

Cryptocurrency assets are a major focus. Browser extension wallets including MetaMask, TronLink, Phantom, Trust Wallet, and Coinbase Wallet are targeted, along with desktop applications like Exodus, Electrum, Atomic, Guarda, Ledger, and Binance. SSH private keys, Outlook profiles, Steam credentials, and files from Documents, Desktop, and Downloads are also collected.

All harvested data is staged under a folder path mimicking a legitimate Microsoft OneDrive directory. Legitimate OneDrive never creates a file by that specific name, making its presence a clear detection signal. Data is then sent to a command-and-control server registered 33 days before the NuGet publishing burst began.

C2 Infrastructure and Attribution

The primary C2 domain resolves to a server in Amsterdam operated through a virtual hosting provider. Its nameservers run through Njalla, a privacy registrar frequently used by threat actors to obstruct takedown requests. The domain was engineered to resemble a legitimate DNS provider so it would blend into routine firewall logs.

A secondary domain linked to an Alibaba Cloud server in Shanghai appears to host the attacker’s development environment. It produced no hits in public malware databases and was not observed receiving stolen data.

Attribution was confirmed through a unique RSA-1024 key embedded in every .NET Reactor-protected package. That same key appeared in four other malicious files on VirusTotal, including memory dumps predating the NuGet campaign by weeks. Labels on those files point to known malware families including Lumma, Quantum, AgentRacoon, and ArrowRAT.

Developers should immediately check project and lock files for any reference to IR.DantUI, IR.Infrastructure.Core, IR.Infrastructure.DataService.Core, IR.iplus32, or IR.OscarUI. Any machine that restored these packages should be treated as compromised, with all credentials, API keys, SSH keys, and wallet seeds rotated. Security teams should configure alerts for connections to the known C2 domain and watch for unexpected file creation at the OneDrive staging path.

Indicators of Compromise (IoCs):-

TypeIndicatorDescription
NuGet PackageIR.DantUIMalicious package impersonating AntdUI
NuGet PackageIR.Infrastructure.CoreMalicious package impersonating Chinese enterprise library
NuGet PackageIR.Infrastructure.DataService.CoreMalicious package impersonating Chinese enterprise library
NuGet PackageIR.iplus32Malicious package impersonating iplus32 library
NuGet PackageIR.OscarUIMalicious package impersonating Chinese UI library
NuGet AccountbmrxntfjThreat actor publisher account
Domaindns-providersa2[.]comPrimary C2 domain (registered 2026-03-12)
URLhttps://dns-providersa2[.]com/checkC2 beacon and operator validation endpoint
URLhttps://dns-providersa2[.]com/uploadExfiltration upload endpoint
IP Address62[.]84[.]102[.]85VDSINA VPS, ASN 216071, Amsterdam
Domaingit[.]justdotrip[.]comOperator development infrastructure (Alibaba Cloud Shanghai)
IP Address47[.]100[.]60[.]237Alibaba Cloud Shanghai, operator dev server
Nameserver1-you.njalla[.]noNjalla nameserver for C2 domain
Nameserver2-can.njalla[.]inNjalla nameserver for C2 domain
Nameserver3-get.njalla[.]foNjalla nameserver for C2 domain
File PathC:\ProgramData\Microsoft OneDrive\keys.datMalware staging path for harvested data
File Namewe4ftg.exeSecond-stage infostealer binary
File Names4.exeRip-scraper memory dump (live stealer capture)
SHA-256e1869d6571894f058dd4ab2b66f060628dc364ee8e29afbd2323c95e5002fb8es4.exe hash
SHA-2568f7aa15c77bde94087bb74dfc072e25212797b313731b4cad0ded3e152268dcfwe4ftg.exe hash
SHA-25634e2d63b5db7e24c808711c2ca0c0a42afde97a0086d7d81609110c002d18d7cIR.DantUI v2.1.55 encrypted stage-2 resource
SHA-256b8543b2a1ad8862ebfef18924cf5444d2adfee996939963f4fc2748c582cf9a9IR.Infrastructure.Core v2.1.55 encrypted stage-2 resource
SHA-256b8fa1b2fade45304c003909e375d2519ea447b498b7d93fe7c50db014d30f4faIR.Infrastructure.DataService.Core v2.1.55 encrypted stage-2 resource
SHA-256019e6c2cf58386039133981f3377b085fbd70c98ae8613c7c6a4f10a9f2d9824IR.iplus32 v2.1.55 encrypted stage-2 resource
SHA-256596c453c9dbb7240f1ce05cc025496524ce7c538c23a9b2171174bf32b5691a1IR.OscarUI v2.1.55 encrypted stage-2 resource
Chrome Extension IDnkbihfbeogaeaoehlefnkodbefgpgknnMetaMask wallet extension
Chrome Extension IDibnejdfjmmkpcnlpebklmnkoeoihofecTronLink wallet extension
Chrome Extension IDbfnaelmomeimhlpmgjnjophhpkkoljpaPhantom wallet extension
Chrome Extension IDegjidjbpglichdcondbcbdnbeeppgdphTrust Wallet extension
Chrome Extension IDhnfanknocfeofbddgcijnmhnfnkdnaadCoinbase Wallet extension
Git Commit Hashefb675de4b3af3dac3c9cae91075fd7cc2f4f98eShared commit hash across campaign packages
NuGet TagIplususShared package tag used across campaign

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Source: CybersecurityNews.com

Follow ShomoySoft for more: Follow on Facebook

💬 Comments (0)

Login to join the discussion.

No comments yet. Be the first!

Recommended for you