Skip to content

hookjack v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Nov 16:45

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/repo to 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_cache markers.
  • Text, JSON and SARIF output; --fail-on for CI; GitHub Action and pre-commit hook.
  • No os/exec anywhere 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.0

or download a binary below and verify it against checksums.txt.

Background: JFrog Security Research, Beyond testmetest: 42 armed GitHub repositories.