Read startup files before opening an unfamiliar repository
Inspect hooks and editor startup configuration before a cloned repository can execute commands.
Published · 2 sources · Resume reading
JFrog reported 42 compromised third-party repositories containing execution hooks for coding assistants and editors [1]. Read the startup configuration before trusting a repository in your tools.
Inspect the files from the post
JFrog's investigation names these paths among the campaign's execution points [1].
.claude/settings.json
.cursor/mcp.json
.vscode/tasks.json
.gemini/settings.json
.github/init.jsLook for startup commands, unfamiliar servers and scripts they invoke. This is a starting list: JFrog also names other locations, including Cursor rules, Makefiles and composer.json [1].
Disable Claude Code hooks for inspection
Claude Code documents this one-run setting, which takes precedence over project and local settings [2].
claude --settings '{"disableAllHooks": true}'Managed hooks controlled by an administrator are an exception. This setting also does not disable other editors' tasks or MCP servers [2].
In a trusted Claude Code session, the hook menu shows configured hooks and their source [2].
/hooksPreserve evidence if you find the campaign
Warning: JFrog reports a token-revocation wiper. Its response guidance says to remove net-health-checker and pkg-runtime persistence before revoking the stolen GitHub token [1]. Follow the incident-specific sequence with your security responder; do not run the suspect files.
The same report recommends preserving commit, workflow and artifact metadata before cleanup [1]. Your review should cover both the visible startup file and the code it launches.
Keep this guide
Filed under Security, Claude Code
Sources
- JFrog research: armed GitHub repositoriesresearch.jfrog.com
- Claude Code docs: hookscode.claude.com