How to check if a GitHub repo is safe
Updated
Read the files that run by themselves before you open or install anything. Those are the install scripts, editor tasks, git hooks and AI assistant settings. Then look for code that is hidden or unreadable. Stars and a tidy README tell you very little.
Popularity isn't proof
In July 2026, BleepingComputer reported on a campaign that used about 7,600 malicious GitHub repositories. Over 800 of them pretended to be AI skills or MCP servers, and their README files sent people to download ZIP archives.
So treat a README that asks you to download a ZIP or a program as a warning. Source code doesn't need a separate download.
What can run without you choosing to run it
- package.json: look in "scripts" for preinstall, install, postinstall and prepare. npm can run these while it installs.
- setup.py: Python can run this file while installing a package from source.
- .vscode/tasks.json: a task with "runOn": "folderOpen" starts when you open the folder and trust it.
- .githooks or .husky: scripts here can run when you commit.
- .claude, .cursor, .mcp.json, CLAUDE.md and AGENTS.md: these can give an AI coding assistant instructions, or commands to run.
- .devcontainer: commands here run when you open the project in a container.
Check it in five minutes
- Read the repo on github.com. Looking at files there doesn't run them.
- Open each file in the list above. Be suspicious of anything that downloads a file, decodes text or starts another script.
- Search the repo for eval, atob, base64, child_process and curl. Plenty of good code uses them, so read what is around each match.
- Look at the history. One huge first commit, or an old project with a new owner, deserves more care.
- If you still need to run it, use a virtual machine or container that has none of your passwords, keys or wallets in it.
If you use npm, you can install without running package scripts, then read them before deciding:
npm install --ignore-scriptsThat only covers installing. Starting the project still runs its code.
What a scanner can and can't tell you
Falcyon reads every one of these places for you and shows the file and line behind each finding. It's quicker and more thorough than searching by hand.
No scanner can prove that code is safe. New tricks appear, and some programs fetch their harmful part later. Use a good score as one reason to trust a repo, alongside who made it and what it needs access to.
Check a repo now
It's free and you don't need an account. How the score works

