Context-Inappropriate Capability
Medium
- Confidence
- 97% confidence
- Finding
- The script unconditionally sources a workspace-local shell file, which executes arbitrary shell code in the current process with the script's privileges. Because the file path is derived from the workspace and there is no validation, allowlist, isolation, or confirmation step, a modified closeout-hooks.sh can perform actions far beyond the stated closeout behavior, including data exfiltration or destructive file/system changes.
