cloneguard
A read-only command-line tool that checks unfamiliar repositories for signs of malicious code before you run them.
What does it do?
This Go command-line tool scans repositories without running, installing, or importing code from the target project. It also provides a command to clone a repository and then scan it. Findings show the file and line number, the relevant code snippet, and why it is risky. Results can also be requested as JSON for use in scripts or Git hooks.
Key features
- Detects credential theft, hidden network calls, obfuscated code, and automatic execution settings.
- Only reads files being scanned; it does not run or install project code.
- Shows each finding’s file, line number, code snippet, and explanation.
- Outputs scan results with the --json option.
- Provides a command to clone a repository and then scan it.