Researchers Find Typosquatted NuGet Package Designed to Steal Stripe API Tokens

Summary
ReversingLabs found a typosquatted StripeApi.Net NuGet package that added API-token and machine-ID collection to StripeClient initialization and sent data to Supabase. NuGet removed it; investigators found only a test entry, with no tokens in the database.
Key points
- StripeApi.Net impersonated the legitimate Stripe.net package using similar branding, metadata, and owner details.
- The package added code to StripeClient initialization to collect API tokens and a machine identifier.
- An AddApiKeyAsync function sent the collected data to a Supabase backend.
- ReversingLabs reported the package soon after its February 16 release, and NuGet administrators removed it.
- Investigators accessed the Supabase database with the attackers’ API key and found a test entry, but no exfiltrated tokens.
- The package claimed more than 180,000 downloads across 506 versions; ReversingLabs said most, if not all, appeared artificial.
Article Details
- Attack Vectors
- A typosquatted NuGet package, StripeApi.Net, impersonated the legitimate Stripe.net package to trick .NET developers into installing it.
- The package added code to StripeClient initialization to capture API tokens and a machine identifier while preserving the library’s expected functionality.
- The captured data was forwarded through AddApiKeyAsync to an attacker-controlled Supabase backend.
- The package used a similar icon, README, tags, and owner name, and artificially inflated its download count across many versions to appear legitimate.
- Defensive Notes
- ReversingLabs reported the package, and NuGet administrators removed it shortly afterward.
- ReversingLabs investigators found a test entry but no exfiltrated tokens in the Supabase database they accessed with the attackers’ API key.
- The article recommends checking packages from public repositories with tools such as Spectra Assure Community before installation.
MITRE ATT&CK
T1036 · MasqueradingThe package imitated Stripe.net with a similar name, icon, README, tags, and owner name to appear legitimate.T1195.002 · Compromise Software Supply ChainThe attackers published the typosquatted StripeApi.Net NuGet package as a malicious dependency that inserted code into downstream applications.T1567 · Exfiltration Over Web ServiceThe package forwarded captured API tokens and a machine identifier to an attacker-controlled Supabase backend.
Vendors
StripeReversingLabs discovered a typosquatted NuGet package named StripeApi.Net that impersonated the legitimate Stripe.net package, injected malicious code into the StripeClient initialization to capture API tokens, andSupabasecode into the StripeClient initialization to capture API tokens, and attempted to exfiltrate them to a Supabase backend.
Products
.NETThreat actors published a typosquatted NuGet package, StripeApi.Net, designed to mimic the official Stripe.net package to trick .NET developers.NuGetReversingLabs discovered a typosquatted NuGet package named StripeApi.Net that impersonated the legitimate Stripe.net package, injected malicious code into the StripeClient initialization to capture API tokens, andSpectra Assure CommunityThat’s why tools like Spectra Assure Community are so important.Stripe.netdiscovered a typosquatted NuGet package named StripeApi.Net that impersonated the legitimate Stripe.net package, injected malicious code into the StripeClient initialization to capture API tokens, andStripeApi.NetReversingLabs discovered a typosquatted NuGet package named StripeApi.Net that impersonated the legitimate Stripe.net package, injected malicious code into the StripeClient initialization to capture API tokens, andSupabasecode into the StripeClient initialization to capture API tokens, and attempted to exfiltrate them to a Supabase backend.
