CloneGuard
CloneGuard is a single Go binary with no dependencies that scans a cloned repository or local folder for credential-stealing tricks before the code runs. It is read-only and never runs, installs, or imports anything from the project. It flags reads of SSH keys, cloud credentials, browser data, and wallets; connections to raw IPs, webhooks, pastebins, and tunnels; download-and-run patterns (eval, curl | sh); auto-run hooks (npm scripts, VS Code tasks, setup.py); and obfuscated code or committed binaries. Files that both read secrets and contact a suspicious server are escalated to critical, and exit codes 0-3 allow dropping it into a script or git hook.
What it addresses
The author had no quick way to vet a repository before touching it, after a fake recruiter's take-home codebase turned out to be a credential stealer going after SSH and AWS keys.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
CloneGuard
CloneGuard is a single Go binary with no dependencies that scans a cloned repository or local folder for credential-stealing tricks before the code runs. It is read-only and never runs, installs, or imports anything from the project. It flags reads of SSH keys, cloud credentials, browser data, and wallets; connections to raw IPs, webhooks, pastebins, and tunnels; download-and-run patterns (eval, curl | sh); auto-run hooks (npm scripts, VS Code tasks, setup.py); and obfuscated code or committed binaries. Files that both read secrets and contact a suspicious server are escalated to critical, and exit codes 0-3 allow dropping it into a script or git hook.
Problem: The author had no quick way to vet a repository before touching it, after a fake recruiter's take-home codebase turned out to be a credential stealer going after SSH and AWS keys.
Posted by @tharun208 · Original source ↗
Story title · @tharun208 · · Source ↗
Show HN: CloneGuard – Scan a repo for credential-stealing tricks before it runs
Submitted URL · @tharun208 · · Source ↗
https://github.com/tharun208/cloneguard
Source text · @tharun208 · · Source ↗
Hi HN, I built CloneGuard after a fake recruiter had me run a “take-home” codebase on a call.
Source text · @tharun208 · · Source ↗
It’s a single Go binary with no dependencies, and it is read-only. It never runs, installs or imports anything from the project.
Source text · @tharun208 · · Source ↗
reads of SSH keys, cloud credentials (AWS, GCP, Azure, kube), browser data, wallets
Source text · @tharun208 · · Source ↗
auto-run hooks (npm scripts, VS Code tasks, setup.py)
Source text · @tharun208 · · Source ↗
Exit codes (0-3) make it easy to drop into a script or git hook.
Source text · @tharun208 · · Source ↗
I reported it to IT immediately, but it made me realize I had no quick way to vet a repo before touching it.