Session Persistence
- Category
- Rogue Agent
- Confidence
- 92% confidence
- Finding
This skill explicitly instructs the agent to create persistent Codex hooks and update hook configuration files, which changes future agent behavior beyond the current task. Even though the feature is legitimate, persistence mechanisms are security-sensitive because they can be used to silently add approval gates, data exfiltration logic, or workflow manipulation that continues across later sessions.
- Content
md --- name: create-hook description: >- Create Codex hooks. Use when you want to create a hook, write hooks.json, add hook scripts, or automate behavior around agent events. --- # Creating Codex Hooks
