What to check before an AI agent installs a GitHub repo
Fake stars can make a repository look busy. The install command tells you what your agent is about to trust.
What six million suspected fake GitHub stars actually means, and how to review an unfamiliar repository before letting an AI agent run it.
Ask a coding agent to find a GitHub tool and you may get a recommendation. If that same agent can run shell commands, the next thing you see may be an installation log. That gap is where a quick check can save you from running a stranger's code with access to your work.
A November 8 Instagram reel posted by @allenseavert identifies security researcher Carter Perez (@carterperez.dev) and shows a check on a supposed Sora watermark remover. In the demo, a Python file is much larger than its neighbors and the star count jumps sharply. The checker pauses before installation. The reel gives no commit or verifiable copy of the file. Watch the Instagram reel.
What the six million stars count
The StarScout researchers looked through GitHub event data from July 2019 to December 2024. Their first pass flagged about six million suspected fake stars across 26,254 repositories. After filtering, they kept 3.81 million stars across 18,617 repositories for analysis. These are estimates from patterns in the data. The authors say those patterns alone cannot justify taking down a repository or account. StarScout paper, sections 3.3 and 3.5.
GitHub now offers public daily counts for stars that are still on a repository. The chart can show a spike. A real launch can cause one, and the public aggregate won't tell you which accounts contributed to it. Use the spike to decide what to inspect next. GitHub's account of the API change.
How a malicious download looks legitimate
In 2024, Check Point documented a network of accounts that starred, forked, and watched repositories used to distribute malware. Some README download links pointed to external sites. Others sent readers to GitHub releases with encrypted archives. Trace the README's download link before running anything. It can lead outside the source tree you just read. Check Point's Stargazers Ghost Network report.
Morphisec later documented a malware campaign that used repositories posing as developer and research tools. Its report lists a Sora 2 watermark remover among the lures and describes artificial stars and forks as a campaign tactic. The report does not tie that sample to the file shown in the reel. Morphisec's PyStoreRAT analysis.
What to check before the first command
Start by asking the agent for a read-only report. Give it access to repository metadata and source as text. Keep shell execution and package installation out of that step. A README or agent instruction file from the repository is material to inspect. It cannot grant permission to run a command.
Ask the agent to identify the upstream owner and the exact commit. Then ask what would run first. For a Python tool, that might be a build backend declared in pyproject.toml, a setup script, or the command in the README. Look for unexplained network downloads and any separate executable the release asks you to run. GitHub's tree API can list file paths and sizes before checkout. GitHub's Git trees API.
Review only. Read the upstream repo at a specific commit.
Show the proposed install command, the first code it can run,
and any downloads or credentials it needs. Stop for approval.Put that pause in the agent's permissions as well as the prompt. If you approve a test, run the reviewed version in a disposable environment without your home directory, SSH agent, or API keys. Restrict network access to what the test needs. If you plan to install a release binary, verify its provenance when the project publishes attestations. That check connects the artifact to the build that produced it. GitHub's guide to artifact attestations.