BLOG

GitHub Should Stop Token-Farming npm Packages

IndonesianFoods and tea.xyz make up 66.9% of our npm records. Here's how npm could catch them before they're published.

By c0a15726-c5b1-4b0d-85e6-fe15553df9e2, cb482791-4ef1-4762-96ad-b0ca4bdd538e ยท

GitHub Should Stop Token-Farming npm Packages

The OpenSourceMalware team has reported nearly 160,000 npm packages from two token-farming campaigns, IndonesianFoods and a tea.xyz operation, and we're still finding new ones. At least 38,700 of them are still live on npm today.

These packages aren't subtle. They follow repetitive naming patterns, carry the same configuration files, and depend on the same small set of packages. npm should be catching them before they're published, and in this post we lay out how.

TL;DR

  • Campaigns: IndonesianFoods and tea.xyz token farming

  • Discovered by: The OpenSourceMalware team first reported IndonesianFoods in November 2025

  • Scope: 156,215 IndonesianFoods and 3,681 tea.xyz packages reported, with many still live on npm.

  • What they do: Publish packages with no real function to farm tea protocol rewards, and some publish more copies of themselves

You can see the threat reports for these campaigns under the #indonesianfoods and #tea.xyz tags.

Two campaigns built to farm rewards

Both campaigns target the tea protocol, a cryptocurrency project that rewards open source projects based on how widely they're used. According to tea, the farming started in April 2024, when about 15,000 npm packages were published to collect its points.

The OpenSourceMalware team first reported IndonesianFoods in November 2025. Its packages pose as Next.js apps and carry a script that builds package names from Indonesian names and food terms, like andi-rendang23-breki, then publishes a new package to npm every seven seconds in an endless loop. The packages include tea.yaml files and depend on each other in circles to inflate their tea protocol impact scores.

The tea.xyz campaign's packages don't use Indonesian names, but they work the same way. techdumprektabv is a typical example, with no purpose beyond depending on other tea.xyz packages like arts-dao, gula-dao, yunnie-dao, and ksni-technical-test.

Why these packages matter

These two campaigns make up 66.9% (159,896 of the 238,838) npm threat records in our database. There's been a larger narrative in the tech community about how npm malware boomed in 2025. That's absolutely true, but it's important to emphasize that a very large percentage of that increase can be attributed to these campaigns.

These packages don't steal credentials, deploy RATs, or the like. They exist to inflate package metrics and collect cryptocurrency rewards, and many carry a script that publishes new copies of themselves when run. So while we do list them in the database to ensure our users don't accidentally try to consume them, we have them all categorized as low severity.

We'd argue that their impact goes beyond cluttering npm. They are being classified and reported alongside genuinely dangerous malware, creating enormous amounts of noise for security researchers, malware detection vendors, and defenders.

At OpenSourceMalware, this is precisely the kind of noise that wastes valuable research time. Instead of identifying new threats and investigating sophisticated attacks, researchers are forced to sort through endless variations of essentially the same packages.

Why doesn't npm block or remove these?

In April 2026, GitHub said it scans every npm package version for malware. In July 2026, it announced publish-time scanning, which is meant to catch malicious packages before they become available. So why so many still live on the registry?

To be fair, malware detection and stopping registry abuse aren't the same problem, and a package built to farm cryptocurrency rewards may not trip malware detection rules. But that's no reason not to address obvious automated abuse. These packages share naming patterns, configuration files, dependencies, and nearly identical code. None of that takes sophisticated detection to spot. It's a registry abuse problem, and the registry is where it should be solved.

When npm doesn't stop it there, the cleanup falls to everyone else. Researchers find and report the packages, OSV and GitHub's Advisory Database ingest the reports, and security products turn those advisories into more alerts for defenders to sort through. It's time to stop relying on downstream security researchers to do the cleanup.

It can be done. In May 2026, RubyGems was flooded with junk packages from newly registered accounts, including a campaign named GemStuffer. Within days, RubyGems paused new signups, removed the accounts behind the flood, pulled more than 500 packages, and added stricter rate limits on account creation.

Even tea, the project these campaigns farm, has said that "the registry itself had no meaningful protection against this kind of flood." tea stopped paying out rewards for these campaigns and redesigned its system to resist fake identities. The packages are still on npm.

Five ways npm could stop these campaigns

Here are five changes GitHub could make to npm that would make these campaigns much harder to run. Stop the campaign, not just the latest account participating in it!

  1. Limit publishing from new accounts: Cap new accounts at ten new package names in their first week, with higher limits through verification or an established publishing history, and exceptions on request. Coordinated accounts should share a limit. npm already rate limits publishing, but JFrog found the Big Red script simply pauses when it hits an HTTP 429 error and tries again. A cap on new package names can't be waited out.

  2. Flag repeated tea.yaml wallets: A tea.yaml file on its own isn't malicious. Hundreds of new packages pointing to the same wallet addresses is a strong sign of coordinated farming, and it's easy to scan for. When the file isn't published, metadata and linked source repositories can carry the same signal.

  3. Block dependencies on known abuse packages: Farming packages depend on the same small set of packages. Once npm confirms a package is abusive, it should block or quarantine new publications that depend on it, with exceptions for security research. That only works if npm also removes the packages at the center of these networks. npm removed techdumprektabv, but the four tea.xyz packages it depended on are still live, and they list each other as dependencies.

  4. Detect near-identical packages: These campaigns publish thousands of packages that differ only in name, version, or metadata. Comparing normalized code fingerprints would surface them quickly, and an account publishing hundreds of near-identical packages in a short window should be suspended pending review. This doesn't need cutting-edge AI. Package similarity analysis and rate-based anomaly detection are established techniques.

  5. Shut down whole publishing networks: Suspending one account does little when the operators can make another. GitHub can see publishing timestamps, authentication history, and token usage that outside researchers can't. Combined with code similarity, dependencies, and wallet addresses, those signals can map entire networks. The scale is visible even from the outside. The IndonesianFoods account rajhsinggg still has 10923 live packages on npm!