Context-Inappropriate Capability
Medium
- Confidence
- 93% confidence
- Finding
- The guidance explicitly instructs AI agents to use `exec` to probe the environment when tools fail, introducing shell/code-execution behavior into a generic reasoning pattern that does not otherwise justify such capability. This is dangerous because it can normalize unsafe environment inspection, bypass safer tool boundaries, and lead agents to execute commands in contexts where command execution is unnecessary or risky.
