Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The document states that the hook scripts 'only output text' and 'don't modify files or run commands', but the configuration explicitly invokes them as shell commands via the hook system. This is dangerous because it downplays the execution risk of arbitrary local scripts, which run with the agent user's permissions and could be modified, replaced, or extended to perform unintended actions.
