A malicious NuGet package named Braintree.Net impersonated the legitimate Braintree .NET payment SDK in a supply-chain attack targeting developers and payment-processing applications. Researchers found that the package preserved normal payment functionality to avoid detection while covertly skimming payment card data, stealing Braintree merchant API credentials, and exfiltrating host secrets through multiple attacker-controlled channels. The campaign also used a companion package, DependencyInjector.Core, and selectively enabled card and credential theft in production environments while harvesting broader secrets from applications running on .NET 8 or newer.
Socket Threat Research reported that the first malicious version appeared on July 3 and was later reported to NuGet for removal, but not before the actor inflated apparent popularity with numerous throwaway releases and drew an estimated 334 real installs to the malicious packages. Organizations that installed Braintree.Net have been urged to remove it immediately, replace it with the official Braintree package, rotate all Braintree credentials, investigate potential PCI exposure, and block outbound connections to the attacker infrastructure.

Trace attribution and downstream blast radius.
2 events from the most recent confirmed update back to the earliest known activity.
After identifying the malicious Braintree.Net package, Socket reported it to NuGet for removal as part of responding to the supply-chain attack targeting .NET developers.
Socket Threat Research detected the first malicious version of the typosquatted NuGet package Braintree.Net, which impersonated the legitimate Braintree payment SDK and contained code to steal payment card data, merchant API credentials, and host secrets.
Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.
Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.
See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
2 references tracked. Mallory keeps watching after this page renders.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.