Intent-Code Divergence
Medium
- Confidence
- 92% confidence
- Finding
- The Code Mode examples normalize execution of dynamically generated JavaScript as a performance optimization, but the shown code can import modules, access environment variables, perform network requests, and run arbitrary logic. In an agent skill context, this materially increases the risk of prompt-to-code execution, secret exposure, and unauthorized actions if user or model-controlled input reaches the generated code.
