forkguarddocs

Check a repo before you clone it

The safest way to look at a repo you do not know yet.

On this page

A common way this malware reaches developers is a coding test or “take-home project” sent by a recruiter, or a repo you found online. It arrives as a normal-looking repo. You clone it, open it in VS Code or run npm install, and it runs.

forkguard recruiter/take-home-test

That downloads only the latest commit of every branch into a temporary folder, reads it from git’s database without unpacking the files, and deletes the download. Details.

#Clone only if it was clean

forkguard recruiter/take-home-test && git clone https://github.com/recruiter/take-home-test

Then check the folder once more after cloning:

cd take-home-test
forkguard

#Open it carefully

#Things to look at yourself

WhereWhat looks wrong
package.json scriptsA script that runs node init, or a file from a fonts or assets folder, before the real command
.vscode/tasks.jsonAny task with "runOn": "folderOpen"
public/fonts, static, assetsA font file you cannot open as a font
Config files (postcss.config.mjs, tailwind.config.js, next.config.mjs, vite.config.js)Scroll all the way to the right on the longest line
DependenciesAn unfamiliar “tailwind-something” or “style-animate” package

Where to next

Edit this page on GitHub View as Markdown

Type to search. Use the arrow keys and Enter.