作者对比多种工具的自动执行限制,指出Claude Code首次信任目录后,后续拉取的钩子也可能以用户权限运行。
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.
