Try CloneGuard: inspect a suspicious repository before running it
Tool: tharun208/cloneguard, v0.1.0 (released 3 November 2026). MIT license.
Tested status: SOURCE-REVIEWED, NOT EXECUTED. This daily edition reviewed the maintainer's README, release metadata and described examples. The commands below were not run; their expected output is from the maintainer, not a reproduced result. No model, GitHub Actions experiment, paid API, repo install or external scan was executed for the lab.
Why this matters
An unfamiliar repo can hide a credential stealer in its install script or editor-opening task. CloneGuard performs pattern-based read-only static checks on source, without running the files it scans. That is an early filter, not a security certification.
Prerequisites and costs
- Optional disposable personal VM/container or non-sensitive scratch environment, Git and Go 1.24+. Python 3 is optional for JSON inspection.
- No model API key, hosted inference, paid plan, agent or GPU. Tool is MIT open source; local compute/network access may still be needed.
- Study the scanner source before building it. Do not execute, import, run
npm installfor or opendemo/in an IDE with automatic tasks. - The daily Agent Signal cloud publication does not require your laptop.
Optional procedure
In a disposable environment you control, inspect the README, then:
git clone https://github.com/tharun208/cloneguard.git
cd cloneguard
git checkout v0.1.0
go version
go build -o cloneguard ./cmd/cloneguard
./cloneguard scan --no-color demoThe scanner's README predicts exit code 3 (dangerous) for this intentionally suspicious demo. A nonzero exit means an alert, not automatically a broken build.
For structured evidence (flags go before the path):
./cloneguard scan --json demo > cloneguard-result.json
status=$?
printf 'scanner exit code: %s\n' "$status"
python3 - <<'PY'
import json
data=json.load(open("cloneguard-result.json", encoding="utf-8"))
print("verdict:", data.get("verdict"))
for f in data.get("findings", []):
print(f.get("severity"), f.get("rule"), f.get("file"), f.get("line"))
PYExpected output (maintainer claim only)
The project README's example predicts DANGEROUS, with 1 critical, 2 high, 1 medium finding. The synthetic util.js reaches for an SSH key and a raw-IP upload endpoint; .vscode/tasks.json triggers an automatic task. Actual output can vary with a pinned source version and platform; record it rather than copying this example as your result.
Documented exit codes: 0 clean, 1 caution, 2 suspicious, 3 dangerous, 10 scanner error. A clean output is not evidence the code is harmless.
Scoring (0–6; do not prefill)
Award one point each only after personally observing: (1) scanner exits and reports a verdict, (2) detects secret-plus-network combination, (3) detects SSH key access, (4) detects VS Code auto-run task, (5) emits parseable JSON with findings, and (6) no demo code was executed. Record tool version, all commands and exit codes. Report any false positive or missing finding.
Troubleshooting
go: command not foundor Go older than 1.24: use a suitable isolated toolchain or skip the optional run.- Exit 3: expected verdict for this dangerous fixture, not a Go error.
- Exit 10: check target directory and CLI flags. The
--jsonand--no-colorflags must precededemo. - No findings: verify exact
v0.1.0tag and that the bundled demo files exist. - Avoid running any untrusted installer, editor task or external script from the demo.
- Regex/static rules can miss evasive payloads and can flag legitimate security-sensitive programs. To measure accuracy you would need representative labelled benign/malicious repositories, blinded review, error bars and independent replication.
Bottom line: This exercise tests whether a preflight scanner provides understandable evidence, not whether it can certify repository safety. No experiment results are claimed for today's edition.