Repository navigation
Releases
Releases · ucsurf/hookjack
hookjack v0.1.0
hookjack v0.1.0
See what a repo will auto-run before your AI assistant or IDE does.
hookjack finds the commands that Claude Code, Cursor, Gemini CLI, VS Code, Dev Containers and package managers run on their own when you open or install a project, follows them to the scripts they launch, and flags the ones that look like payloads. It is fully static: nothing it scans is ever executed.
Highlights
hookjack .for local checkouts,hookjack check owner/repoto inspect a GitHub repo before cloning (streamed into memory, no token),hookjack org <owner>for a whole account.- 12 rules, HJ001-HJ012: Claude hooks/settings, MCP servers, Gemini commands, folder-open tasks, workspace settings, devcontainer commands, agent instruction files (hidden Unicode, hidden comments, "don't tell the user"), suspicious and obfuscated scripts, install hooks,
.napi_cachemarkers. - Text, JSON and SARIF output;
--fail-onfor CI; GitHub Action and pre-commit hook. - No
os/execanywhere in the binary, enforced by lint, a test and CI; a canary test proves no hook runs during a scan.
Install
go install github.com/ucsurf/hookjack/cmd/hookjack@v0.1.0or download a binary below and verify it against checksums.txt.
Background: JFrog Security Research, Beyond testmetest: 42 armed GitHub repositories.