Researchers Find Typosquatted NuGet Package Designed to Steal Stripe API Tokens

· Original article ↗

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

Vendors

Products

Tools

Industries

Related Articles