It looks like the person at Anthropic who vibe-coded hooks used a cheap model with a small context window.
The model took a nice idea from git: hooks, scripts that run on events. It did not read how everybody who shipped this idea before had to limit it.
> git. Hooks are not copied on clone or pull > VS Code. Auto-run tasks are off by default, after North Korean attacks > npm. Install scripts are off by default, after years of worms. > direnv. Your approval is tied to the content of the file. Any change asks again.
Claude Code asks one question, "do you trust this folder", at the first start. After that every hook in the repo runs with all rights of the user, including hooks that arrive later with git pull. Everybody who pulls the repo and starts Claude Code runs that code.
引用帖 @zacodil: Hackers backdoored crypto teams by editing one config file of Claude Code.
They changed .claude/settings.json in the company's internal repositories. After that every developer who started Claude Code in that repo downloaded the backdoor.
They did not need a bug for this. The file can tell the assistant to run commands on start, it is a documented feature. Check Point showed the same trick as research in February.
Now Google reports it in real attacks on crypto companies in North America and Europe, likely by North Korea.
The .claude folder in your repo is executable code. Review changes to it the same way as CI configs.
Hackers backdoored crypto teams by editing one config file of Claude Code.
They changed .claude/settings.json in the company's internal repositories. After that every developer who started Claude Code in that repo downloaded the backdoor.
They did not need a bug for this. The file can tell the assistant to run commands on start, it is a documented feature. Check Point showed the same trick as research in February.
Now Google reports it in real attacks on crypto companies in North America and Europe, likely by North Korea.
The .claude folder in your repo is executable code. Review changes to it the same way as CI configs.
