Dev.to WebDev 🛠 Dev 👁 2 📖 2 min read

Fake GitHub stars: how a 'popular' crypto repo fools you, and a 2-minute check

1,200 stars. 3 commits. Created last Tuesday. Zero issues, zero pull requests, and a README that promises a "profitable MEV bot, free, no fees". The most popular repository nobody has ever used. Stars are the first thi

1,200 stars. 3 commits. Created last Tuesday. Zero issues, zero pull requests, and a README that promises a "profitable MEV bot, free, no fees".

The most popular repository nobody has ever used.

Stars are the first thing most of us look at when we pick a library, a tool or a trading bot someone linked in a chat. Scammers know that, and stars are cheap.

How cheap, and how many

Researchers from Carnegie Mellon, Socket and NC State built a tool called StarScout and went through GitHub's star history. The latest version of their paper counts about six million suspected fake stars, with a sharp rise in 2024. Many of the boosted repositories were short-lived and promoted malware, pirated software or crypto tools: exactly the "free bot, just run it" kind of repo that ends up in a Telegram group.

A fake star doesn't need to fool a security researcher. It only needs to fool someone in a hurry.

The 2-minute check

You need the GitHub CLI (gh) and two commands.

1. When did the stars arrive? Real projects collect stars over months. Bought ones arrive in bursts.

gh api -H "Accept: application/vnd.github.star+json" \
  "repos/OWNER/REPO/stargazers?per_page=100" --paginate \
  --jq '.[].starred_at[:10]' | sort | uniq -c | sort -rn | head

If most stars landed on two or three days, you're looking at a campaign, not a community.

2. Who gave them? Look at a sample of the accounts.

gh api "repos/OWNER/REPO/stargazers?per_page=30" --jq '.[].login' |
while read -r u; do
  gh api "users/$u" --jq '[.login, .created_at[:10], .public_repos, .followers] | @tsv'
done

Accounts created in the same week, with no repositories and no followers, starring the same handful of repos: that's a bot farm with a profile picture.

Three things stars can't fake easily

  • Issues and pull requests from different people. A real tool collects complaints. A fake one collects silence.
  • Commit history. One "Initial commit" with 40 files and a release binary is not a project, it's a delivery.
  • Dependents. The "Used by" count and package downloads are harder to inflate than a star button.

What it means for crypto repos

If a repo asks you to paste a private key into a config file, run a binary from Releases, or npm install something you haven't read, the star count is irrelevant. Read the code first. For JavaScript projects our npm-install-audit checks install hooks, git hooks, editor tasks and package manager config without running anything. It's free and has no dependencies.

And a note from our side: we've never bought a star, and every one we have came from a person. If you've found this useful, a star is how small open source projects get found, so it's appreciated.

What's the most suspicious "popular" repo you've seen recently?

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.