Threat reportSupply ChainTL-2026-1876
Microsoft shortens NuGet.org API key lifetimes to 30 days for supply-chain hardening (effective Aug 17, 2026)
Microsoft is strengthening NuGet.org supply-chain security by reducing the maximum validity of newly created NuGet.org API keys from 365 days to 30 days, effective August 17, 2026. All API keys created before that date will expire on November 1, 2026.
Key facts
| Identifiers | TL-2026-1876, CVE-2026-45321, CVE-2026-48027 |
|---|---|
| Also known as | NuGet API key lifetime reduction, NuGet Trusted Publishing migration |
| Severity | MEDIUM |
| Exploitation status | Linked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-45321 (added ), CVE-2026-48027 (added ) |
| EPSS | CVE-2026-48027: 1.3% (70.3th percentile); CVE-2026-45321: 1.0% (63.3th percentile) |
| Affected products | Microsoft NuGet.org API keys; Microsoft NuGet.org package publishing; GitHub GitHub Actions NuGet publishers; GitLab GitLab CI/CD NuGet publishers |
| Weaknesses (CWE) | CWE-287, CWE-522, CWE-312 |
| Malware | Necrobit, cat.py, we4ftg.exe |
| Tools | .NET Reactor |
| MITRE ATT&CK techniques | T1005 Data from Local System, T1027.005 Indicator Removal from Tools, T1055 Process Injection, T1059.007 JavaScript, T1071.001 Web Protocols, T1071.004 DNS, T1078 Valid Accounts, T1140 Deobfuscate/Decode Files or Information, T1195.001 Compromise Software Dependencies and Development Tools, T1195.002 Compromise Software Supply Chain, T1543.001 Launch Agent, T1548.003 Sudo and Sudo Caching and 5 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | software, technology, open-source, cloud, finance |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 15 cited sources |
Detection coverage
As of 2026-08-04, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-1876 across Splunk SPL, Microsoft KQL and Sigma, covering 23 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Necrobit Infostealer — Credential and Cryptocurrency Wallet Theft Detection
Detects post-exploitation file-access patterns of the Necrobit infostealer (we4ftg.exe, 786 KB MSIL assembly). The payload targets 12 Chromium-based browser credential stores, 8 desktop cryptocurrency wallets, 5 browser wallet extensions (MetaMask, TronLink, Phantom, Trust Wallet, Coinbase Wallet), SSH private keys, and cloud service credentials (AWS, Azure, GCP). The payload is decrypted at JIT-compile time via clrjit.dll!getJit hook and fires via CLR module initializer. Data is staged at C:\ProgramData\Microsoft OneDrive\keys.dat before exfiltration.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1055, T1555.003, T1555.005, T1552.001, T1552.004, T1005, T1685
- Data sources: sysmon_file_creation, sysmon_process_access, windows_file_events, microsoft_365_defender_device_file_events
- Severity: critical
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational"
(
(EventCode=11 TargetFilename="*\\we4ftg.exe") OR
(EventCode=1 Image="*\\we4ftg.exe") OR
(EventCode=11 TargetFilename="*\\Microsoft OneDrive\\keys.dat") OR
(EventCode=11 TargetFilename="*\\Local\\Google\\Chrome\\User Data\\Default\\Login Data") OR
(EventCode=11 TargetFilename="*\\Local\\Microsoft\\Edge\\User Data\\Default\\Login Data") OR
(EventCode=11 TargetFilename="*\\Local\\BraveSoftware\\Brave-Browser\\User Data\\Default\\Login Data") OR
(EventCode=11 TargetFilename="*\\Local\\Opera Software\\*") OR
(EventCode=11 TargetFilename="*\\roaming\\MetaMask\\*") OR
(EventCode=11 TargetFilename="*\\roaming\\Phantom\\*") OR
(EventCode=11 TargetFilename="*\\roaming\\trust\\*") OR
(EventCode=11 TargetFilename="*\\wallet.dat") OR
(EventCode=11 TargetFilename="*\\Electrum\\wallets") OR
(EventCode=11 TargetFilename="*\\Exodus\\*") OR
(EventCode=11 TargetFilename="*.ssh\\id_rsa") OR
(EventCode=11 TargetFilename="*\\AppData\\Roaming\\ssh\\*") OR
(EventCode=11 TargetFilename="*.aws\\credentials") OR
(EventCode=11 TargetFilename="*\\.azure\\accessTokens.json") OR
(EventCode=11 TargetFilename="*\\.config\\gcloud\\*")
)
| eval threat_id="TL-2026-1876", detection_id="TL-2026-1876-SPL-002"
| table _time, host, user, EventCode, Image, TargetFilename, threat_id, detection_id
| sort - _timeMicrosoft KQL
// Detects Necrobit infostealer credential and wallet theft patterns
let KnownMaliciousProcess = "we4ftg.exe";
let BrowserCredPatterns = dynamic(["\\Login Data", "\\Cookies", "\\Local State", "\\Web Data"]);
let WalletPaths = dynamic(["MetaMask", "TronLink", "Phantom", "trust", "Coinbase", "wallet.dat", "Electrum", "Exodus", "Atomic"]);
let CredTargets = dynamic(["\\id_rsa", "credentials", "accessTokens.json", "gcloud", "keys.dat"]);
(
DeviceProcessEvents
| where Timestamp > ago(7d)
| where FileName =~ KnownMaliciousProcess
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, ProcessId,
ThreatId = "TL-2026-1876", DetectionId = "TL-2026-1876-KQL-002"
)
| union (
DeviceFileEvents
| where Timestamp > ago(7d)
| where FolderPath has "ProgramData\\Microsoft OneDrive" and FolderPath endswith "keys.dat"
| project Timestamp, DeviceName, FileName, FolderPath,
ThreatId = "TL-2026-1876", DetectionId = "TL-2026-1876-KQL-002"
)
| union (
DeviceFileEvents
| where Timestamp > ago(7d)
| where InitiatingProcessFileName =~ KnownMaliciousProcess
or (FolderPath has_any (BrowserCredPatterns) and FolderPath has_any ("Chrome", "Edge", "Brave", "Opera"))
or FolderPath has_any (WalletPaths)
or FolderPath has_any (CredTargets)
| project Timestamp, DeviceName, FileName, FolderPath,
ThreatId = "TL-2026-1876", DetectionId = "TL-2026-1876-KQL-002"
)
| order by Timestamp descSigma
title: Necrobit Infostealer — Credential and Wallet Data Access
id: e4b8f2c1-7a3d-4e9f-8b5c-2d1a6f3e9c7b
status: experimental
description: Detects file access patterns associated with the Necrobit infostealer (we4ftg.exe) targeting browser credential stores, cryptocurrency wallets, SSH keys, and cloud service credentials. The payload uses .NET Reactor protection with clrjit.dll JIT hooking for runtime decryption.
author: Threadlinqs Team
date: 2026-08-04
modified: 2026-08-04
references:
- https://socket.dev/blog/5-malicious-nuget-packages-impersonate-chinese-ui-libraries
- https://corgea.com/research/malicious-nuget-ir-packages-credential-stealer
tags:
attack.credential_access
attack.t1555.003
attack.t1555.005
attack.t1552.001
attack.t1552.004
attack.t1005
attack.t1055
attack.t1685
attack.tool.necrobit
attack.tool.dotnet_reactor
logsource:
category: file_access
product: windows
detection:
selection_browsers:
TargetFilename|contains:
- '\Login Data'
- '\Cookies'
- '\Local State'
- '\Web Data'
TargetFilename|contains:
- 'Chrome\User Data'
- 'Edge\User Data'
- 'Brave-Browser\User Data'
- 'Opera Software'
selection_wallets:
TargetFilename|contains:
- 'MetaMask'
- 'TronLink'
- 'Phantom'
- 'trust'
- 'Coinbase'
- 'wallet.dat'
- 'Electrum\wallets'
- 'Exodus'
- 'Atomic\Local Storage'
selection_creds:
TargetFilename|contains:
- '.ssh\id_rsa'
- '.aws\credentials'
- '.azure\accessTokens.json'
- '.config\gcloud'
selection_staging:
TargetFilename|contains:
- 'Microsoft OneDrive\keys.dat'
condition: 1 of selection*
falsepositives:
- Legitimate backup or migration tools accessing browser profiles
- Authorized security audits or password manager exports
- Legitimate cloud CLI configuration in development environments
level: critical
Known false positives:
- Authorized security audits scanning for credential exposure
- Legitimate password manager operations reading their own data stores
- Cloud CLI tools (gcloud, aws CLI, az) accessing their own configuration
- Development tools reading browser profiles for debugging purposes
Tuning notes: Risk-rank alerts by process parent chain — we4ftg.exe launched from dotnet.exe via NuGet package restore is high-confidence malicious. For Sysmon, monitor EventCode 10 (ProcessAccess) targeting clrjit.dll as a specific JIT-hooking indicator (alert on any non-clrjit source process accessing clrjit.dll). Exclude known EDR/backup software from browser profile access alerts.
- NuGet.org API Key Abuse and Anomalous Package Publishing Detection · unlock with TL Creds
- .NET Reactor JIT Hooking and Process Injection — clrjit.dll Monitoring · unlock with TL Creds
- Nx Console Supply Chain — Malicious VSCode Extension and Lateral Movement Detection · unlock with TL Creds
- GH CLI Token Exfiltration via Malicious npm Prepare Script (TanStack Chain) · unlock with TL Creds
- macOS LaunchAgent Persistence — com.user.kitty-monitor (Nx Console) · unlock with TL Creds
- Necrobit Exfiltration Staging Path — keys.dat in ProgramData\Microsoft OneDrive · unlock with TL Creds
- NuGet Typosquatting Package Install Detection — Supply Chain Initial Access · unlock with TL Creds
- Necrobit C2 Communication — [indicator] Beacon and Exfiltration · unlock with TL Creds
Indicators of compromise
As of 2026-08-04, Threadlinqs Intelligence tracks 23 indicators of compromise for TL-2026-1876.
Sample indicators (3 of 23)
- IP address:
62.84.102[.]85 - Domain:
dns-providersa2[.]com - IP address:
47.100.60[.]237
Defanged, TLP:CLEAR. Full set of 23 indicators: unlock with TL Creds.
Technical analysis
Microsoft strongly recommends migrating to NuGet Trusted Publishing (launched September 2025), which uses OpenID Connect (OIDC) to authenticate CI/CD publishing without any long-lived shared secret. The change follows a series of high-profile package-manager credential theft incidents, including the Nx Console npm extension compromise (CVE-2026-48027) where a stolen credential published a malicious release activated 6,000 times in 36 minutes, and a concurrent NuGet infostealer campaign typosquatting Chinese .NET libraries (~65,000 downloads).
On August 4, 2026, Microsoft announced a significant hardening of NuGet.org package publishing security: the maximum validity of newly created NuGet.org API keys will be reduced from 365 days to 30 days, effective August 17, 2026. All API keys created before that date will be forcibly expired on November 1, 2026. This change eliminates the 365-day key duration option and is intended to reduce the damage window of stolen or leaked publishing credentials.
NuGet.org API keys function as passwords for publishing packages. Developers commonly store them as secrets in CI/CD platforms, repository settings, build servers, and deployment configurations. A stolen long-lived key enables an attacker to publish trojanized package updates under a trusted project name for months before the credential expires or is noticed. The problem is cross-ecosystem: npm experienced the same pattern with the ua-parser-js, coa, and rc package takeovers (October–November 2021), where stolen maintainer credentials via credential stuffing were used to publish DanaBot password-stealing trojans and XMRig cryptominers. PyPI, RubyGems, and crates.io have all faced similar credential-theft supply-chain incidents.
Two specific incidents drove the urgency of the NuGet policy change. First, the Nx Console supply-chain compromise (CVE-2026-48027, GHSA-c9j4-9m59-847w) on May 18, 2026: an attacker published a malicious Nx Console VSCode extension version (v18.95.0) after exfiltrating a contributor’s GitHub CLI OAuth token. The theft originated from the upstream TanStack npm compromise (CVE-2026-45321, GHSA-g7cv-rxg3-hmpx) on May 11, 2026, where 84 malicious @tanstack/* packages were published with valid npm provenance. When a Nx contributor ran pnpm install in an external repo, a malicious prepare script executed a 2.3 MB obfuscated credential harvester that exfiltrated the contributor’s gh CLI token from ~/.config/gh/hosts.yml within 74 seconds. The attacker then spent 5+ days with the stolen token deleting CodeQL workflow runs and planting orphan commits before publishing the malicious extension, which was activated approximately 6,000 times in 36 minutes across VS Code and Cursor installations. The root cause chain included four compounding failures: an upstream dependency compromise with valid provenance, a silent minimum-release-age bypass (pnpm 10.14 silently ignored the 7-day release-age policy in .npmrc because the feature only shipped in pnpm 10.16+), gh CLI credentials readable by any local process, and a single-actor publishing pipeline lacking approval gating.
Second, concurrent research by Socket’s Threat Research Team identified five malicious NuGet packages published under the account bmrxntfj that typosquat Chinese .NET UI libraries (AntdUI-derived). The packages — IR.DantUI, IR.OscarUI, IR.Infrastructure.Core, IR.Infrastructure.DataService.Core, and IR.iplus32 — carry a .NET Reactor-protected infostealer targeting credentials from 12 Chromium-based browsers, 8 desktop cryptocurrency wallets, 5 browser wallet extensions (MetaMask, TronLink, Phantom, Trust Wallet, Coinbase Wallet), SSH private keys, and cloud service credentials. The payload fires via the CLR module initializer, patches clrjit.dll!getJit to hijack the JIT compiler, and executes a 786 KB MSIL assembly (we4ftg.exe) recovered from live memory dumps. The operator uses version rotation evasion — 219 of 224 total versions carry listed: false, keeping only one version visible at a time while invalidating file-hash-based IOCs. The C2 domain dns-providersa2.com (registered 2026-03-12 via Njalla privacy registrar, hosted at 62.84.102.85 on VDSINA/ASN 216071 in Amsterdam) serves /check (beacon) and /upload (exfiltration) endpoints. Data is staged at C:\ProgramData\Microsoft OneDrive\keys.dat before exfiltration. The packages have accumulated approximately 64,784 total downloads since September 2025 and remain live on NuGet.org.
Microsoft’s recommended alternative to API keys is NuGet Trusted Publishing, launched September 24, 2025. This uses OpenID Connect (OIDC) to let CI/CD workflows authenticate to NuGet.org without storing any long-lived shared secret. The workflow requests a signed, short-lived identity token from the CI/CD platform (GitHub Actions or GitLab); NuGet.org validates the token cryptographically against a policy configured by the package owner (repository, workflow, optional environment details) and issues a single-use temporary API key valid for approximately one hour. Key benefits include no long-lived secrets in repositories or CI/CD secret stores, automatic credential expiration, workload identity validation, and no manual secret rotation. For private GitHub repositories, new policies undergo a 7-day pending activation period to prevent resurrection attacks (where a deleted repository is recreated under the same name by a different owner). Community concerns raised in comments to the announcement include the lack of org-level cross-account support for Trusted Publishing (GitHub issue #10581), the absence of Azure DevOps OIDC support, and the practical pain of 30-day key rotation for teams without CI/CD OIDC support.
The change is part of a broader industry shift toward secure, keyless package publishing aligned with the OpenSSF Securing Software Repositories Working Group’s Trusted Publishers for All Package Repositories initiative. GitHub has proposed a parallel plan for npm that includes deprecating classic tokens, requiring FIDO-based 2FA, limiting granular tokens to 7-day expiration, and expanding trusted publishing to CircleCI (April 2026) and others. NuGet.org’s Trusted Publishing currently supports GitHub Actions and GitLab, with additional CI/CD environments under development. Microsoft has indicated that API key durations may be reduced further in the future as Trusted Publishing adoption grows.
MITRE ATT&CK techniques by tactic:
Collection
Defense Evasion
T1027.005 Indicator Removal from Tools; T1055 Process Injection; T1140 Deobfuscate/Decode Files or Information
Execution
Command and Control
T1071.001 Web Protocols; T1071.004 DNS
Initial Access
T1078 Valid Accounts; T1195.001 Compromise Software Dependencies and Development Tools; T1195.002 Compromise Software Supply Chain
Persistence
Privilege Escalation
T1548.003 Sudo and Sudo Caching
Credential Access
T1552.001 Credentials In Files; T1552.004 Private Keys; T1555.003 Credentials from Web Browsers; T1555.005 Password Managers
defense-impairment
Remediation
Patches
- Upgrade pnpm to 10.16+ so minimum-release-age is enforced (Nx Console lesson learned)
- Update NuGet client and dotnet SDK to latest versions supporting Trusted Publishing
- Pin GitHub Action SHAs to specific commits rather than version tags
Immediate actions
- Migrate NuGet publishing workflows to Trusted Publishing (OIDC) before 2026-11-01
- Audit, rotate, and replace all NuGet.org API keys created before 2026-08-17
- Revoke any exposed or leaked NuGet API keys immediately
- Remove API keys from source code, CI/CD logs, and secret stores
- Ensure NuGet.org expiration-notification emails reach an actively monitored account
Workarounds
- Rotate API keys on a ≤30-day cadence if Trusted Publishing is unavailable
- Use the narrowest possible package scope and permissions for remaining API keys
- Store API keys only in managed CI/CD secret stores, never in repository files or environment variables
Longer-term hardening
- Adopt short-lived OIDC-based publishing across all package registries (NuGet, npm, PyPI, etc.)
- Enforce FIDO-based 2FA/MFA for all package publishing accounts
- Monitor package-publishing audit logs and workflow-run deletions for anomalies
- Implement staged publishing with approval gating for critical packages
- Expand Trusted Publishing to all CI/CD platforms used by the organization
Affected and fixed versions
- Microsoft — NuGet.org API keys
Vulnerable versions: 365-day lifetime keys (pre-2026-08-17)
Fixed in: 30-day maximum lifetime keys (post-2026-08-17); Trusted Publishing OIDC (launched 2025-09-24) - Microsoft — NuGet.org package publishing
Vulnerable versions: Long-lived reusable API keys with 365-day maximum
Fixed in: OIDC-based Trusted Publishing with ~1-hour temporary keys; 30-day API key maximum - GitHub — GitHub Actions NuGet publishers
Vulnerable versions: Long-lived API keys stored in CI/CD secrets
Fixed in: NuGet/login@v1 OIDC trusted publishing flow - GitLab — GitLab CI/CD NuGet publishers
Vulnerable versions: Long-lived API keys in CI/CD variables
Fixed in: OIDC trusted publishing via id_tokens with NuGet.org token exchange
Timeline
- ua-parser-js npm account hijacked via credential stuffing; three malicious versions published with DanaBot payload and XMRig cryptominer (millions of downstream consumers)
- coa and rc npm packages hijacked on the same day using same stolen-credential attack pattern and DanaBot payload infrastructure; single operator working from credential breach databases
- NuGet Trusted Publishing launched with OIDC support for GitHub Actions; enables keyless publishing via short-lived identity tokens and temporary API keys (~1 hour validity)
- Malicious C2 domain locked-ioc-5 registered via Njalla privacy registrar (NuGet infostealer campaign); hosted at locked-ioc-8 (VDSINA, ASN 216071, Amsterdam)
- Nx contributor's GitHub CLI OAuth token exfiltrated via malicious prepare script in @tanstack/zod-adapter@1.166.15 during pnpm install; token stolen within 74 seconds from ~/.config/gh/hosts.yml
- TanStack npm supply-chain compromise: 84 malicious @tanstack/* packages published via OIDC trusted-publisher manipulation with valid npm provenance (CVE-2026-45321, GHSA-g7cv-rxg3-hmpx)
- Malicious Nx Console v18.95.0 published to VS Marketplace and Open VSX using stolen VSCE_PAT; activated ~6,000 times in 36 minutes; payload harvested credentials, wrote backdoors, targeted Vault, AWS, GitHub, 1Password, and Claude Code (CVE-2026-48027, GHSA-c9j4-9m59-847w)
- Microsoft announces NuGet.org API key lifetime reduction from 365 days to 30 days, effective August 17, 2026; all pre-existing keys expire November 1, 2026
- New NuGet.org API keys capped at 30-day maximum validity; 365-day key duration option removed
- All NuGet.org API keys created before August 17, 2026 forcibly expire; maintainers must have migrated to Trusted Publishing or rotated keys by this date
Sources cited
- CVE-2026-48027 (Nx Console) NVD (NIST) · Advisory · 2026-05-18
- GHSA-c9j4-9m59-847w (Nx Console Security Advisory) GitHub · Advisory · 2026-05-18
- GHSA-g7cv-rxg3-hmpx / CVE-2026-45321 (TanStack Compromise) GitHub · Advisory · 2026-05-12
- Strengthening NuGet Supply Chain Security: Reducing API Key Lifetime Microsoft · Vendor report · 2026-08-04
- Trusted Publishing on nuget.org Microsoft · Vendor report · 2026-08-03
- Enhanced Security is here with the new Trust Publishing on NuGet.org Microsoft · Vendor report · 2025-09-24
- 5 Malicious NuGet Packages Impersonate Chinese .NET UI Libraries socket.dev · Research · 2026-07-01
- Malicious NuGet IR Packages Deliver Credential Stealer corgea.com · Research · 2026-07-02
- Trusted Publishers for All Package Repositories (OpenSSF) repos.openssf.org · Research · 2025-06-01
- npm docs: Trusted publishing for npm packages docs.npmjs.com · Vendor report · 2026-05-20
- Nx Console v18.95.0 Supply-Chain Compromise Postmortem nx.dev · Blog · 2026-05-21
- Our plan for a more secure npm supply chain github.blog · Blog · 2026-01-15
- Microsoft strengthens NuGet supply chain security cybersecuritynews.com · News · 2026-08-04
- Microsoft reducing NuGet API keys’ lifetime to 30 days Help Net Security · News · 2026-08-04
- NuGet adds support for trusted publishing sdtimes.com · News · 2025-09-24
Other reports on CVE-2026-45321
- Binding.gyp "Phantom Gyp" Supply Chain Attack (Miasma Worm) Enables CI/CD Worm Propagation Across 57 npm Packages
- Miasma — @redhat-cloud-services npm Supply Chain Compromise (Mini Shai-Hulud Variant, GitHub Actions OIDC/SLSA Abuse with GCP/Azure Cloud-Identity Theft)
- durabletask PyPI Supply Chain Compromise (v1.4.1–1.4.3) — Microsoft-Published Azure Durable Functions SDK Trojanized w/ Cross-Cloud Credential Stealer + Linux Disk Wiper (TeamPCP / Mini Shai-Hulud)
- Mini Shai-Hulud v3 — TanStack/UiPath/Mistral AI npm & PyPI Supply Chain Compromise (TeamPCP)
- TeamPCP LiteLLM Supply Chain Attack — Trojaned PyPI Packages (v1.82.7/1.82.8) with Multi-Stage C2 Payload
Other reports on CVE-2026-48027
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 15 sources; published ; last updated —.