Skip to content
Xianzhi Community (Aliyun)·Indexed by this site · Originally published· Event →

xAI Grok Agent source code audit: Claude import hook symlink escape

非首发-xAI Grok Agent 源码审计:Claude 导入 Hook 符号链接逃逸

AI summary

A static source code audit by security researchers of xAI's open-source component grok-build found a symlink escape issue in the CLI's import Claude settings feature. When writing project-scoped content, the feature performs a plain file write to a path derived from the repository content. If the cloned repository sets .grok or .grok/hooks as directory symlinks pointing to the user's Grok home directory, the import process follows the links and writes malicious hooks and permission rules into the user's global trusted directory.

Read originalxz.aliyun.com