Skip to content
PreClone

See through a repo before it's on your disk.

Most files in a repo are just files. A few run the moment you open, install or commit. PreClone finds those without running anything.

Zips are read in your browser and never uploaded.

defi-dashboard-assessment/9 files · read only

  • README.md
  • package.jsonnpm install runs the “postinstall” scriptInstall · Critical
  • .vscode/tasks.jsonOpening the folder runs a font file as a program (task “eslint-check”)Open · Critical
  • public/fonts/fa-brands-regular.woff2Opening the folder runs a font file as a program (task “eslint-check”)Open · Critical
  • scripts/check-node.jsnpm install runs the “postinstall” scriptInstall · Critical
  • server/server.js
  • server/routes/auth.js
  • server/config/db.jsnpm start loads code that looks maliciousRun · Critical
  • src/App.js

Malware signs. Don't open or install this.

Inert copy of a real trick. Nothing in it can run.

Full report

Six moments, in the order they'd hit you.

It downloads the archive instead of cloning, then follows every command a file would run into the files it loads. Each finding is pinned to one of these, with the file and line.

  1. Open

    Editor tasks that start on open. Cursor ships with Workspace Trust off.

    .vscode · .devcontainer · .idea

    Runs without a command

  2. Agent

    Settings, MCP servers and instruction files Claude Code, Cursor and Copilot load.

    .claude · .mcp.json · AGENTS.md

    Runs without a command

  3. Install

    Lifecycle scripts, package-manager config, git and URL dependencies.

    package.json · .npmrc · setup.py

  4. Run

    npm start, followed to the file that runs. Often five requires deep.

    next.config · vite.config

  5. Commit

    Husky, Lefthook and pre-commit hooks on commit, checkout and push.

    .husky · lefthook.yml

  6. Code

    Fonts that are JavaScript, base64 blobs, credential grabs, invisible text.

    *.woff2 · *.min.js · Unicode

Every check, and what it can't see

A report you can read in ten seconds.

One verdict on top. Under it, what runs and when, down to the line. It never says “safe”, because reading files can't prove that.

Open the example report

Malware signsDon't open or install this.

When you open the folderruns without asking

Opening the folder runs a font file as a program (task “eslint-check”)

.vscode/tasks.json:7

Critical

When you installruns without asking

npm install runs the “postinstall” script

package.json:6

Critical

jsonwebtokn isn't on npm and looks like a misspelling of jsonwebtoken

package.json:16

High

When you run it

npm start loads code that looks malicious

package.json:7

Critical

Use it where the link shows up.

Prefix

Put our domain in front of any GitHub link in the address bar.

preclone.dev/github.com/owner/repo

Extension

Adds “Check before cloning” to GitHub, GitLab and Bitbucket. Makes no requests of its own.

github.com/owner/repoCheck before cloning

CLI

The same engine on your machine, for links, folders and zips. Exit codes for CI.

$ npx preclone . --fail-on high

API

For hiring tools, bootcamps and agencies that pass repos around.

POST /api/v1/scan

The check is free.

Charging the person who's about to be phished would be backwards. Pro is for people who check repos all day, and for private code.

Free

For anyone handed a repo by a stranger.

$0forever

  • Public GitHub, GitLab and Bitbucket repos
  • Zip and tarball checks in your browser
  • Shareable report links and JSON export
  • The CLI, the browser extension and the API
  • 12 checks an hour without an account, 40 a day with one
  • History of your last 20 checks

Pro

For people who open other people's code for a living.

$9a month, or $90 a year

  • Everything in Free
  • Private GitHub and GitLab repos: a read-only token used for one download, never stored
  • Private reports only you can open
  • 1,000 checks a day, by web, CLI or API
  • Bigger repos: archives up to 200 MB (free: 80 MB)
  • History of your last 200 checks
Get ProCancel any time from Billing.

A team plan for agencies, bootcamps and hiring platforms is next: shared history, an org API key, and a Slack or Discord bot that checks every repo link posted in a channel.

Before you ask.

More on the checks page, and in the guides on what a repo can run when you open it, install it or start an agent in it.

Does PreClone run any of the repo's code?

No. It downloads the archive that GitHub, GitLab or Bitbucket serve for a commit, reads the files in memory and throws them away. Nothing is cloned, installed, built or executed, on our servers or on yours. Zip uploads are read inside your browser tab.

So “Nothing flagged” means the repo is safe?

No, and PreClone never says that. It means nothing risky is set to run on its own when you open the folder, install it or start an AI agent in it, and no known malware patterns turned up. Code that downloads more code later, compiled binaries and encrypted payloads can still hide from any static read. If you don't trust the sender, use a throwaway VM or Codespace anyway.

They pushed a fix and asked me to pull again. Should I check again?

Yes. Lures often arrive clean and get their payload in a later push. Paste the same link again: if the commit has changed, the report opens with what's newly set to run since the last check.

What do you keep?

For a link you check, the report (findings, file paths, the flagged lines) so the share link works. Not the code. Zips never leave your browser; only package names and versions go to our server so they can be looked up on npm and OSV.

Got a repo from a stranger?

Scan it first