Context-Inappropriate Capability
Medium
- Confidence
- 97% confidence
- Finding
- The code builds a shell command using config.devServers.processGrep and passes it directly to exec(), which invokes a shell. Because the value is inserted inside a single-quoted grep expression, an attacker controlling configuration can break out of the quoting and inject arbitrary shell commands, leading to command execution under the agent's privileges. In this monitoring skill context, config-driven checks are expected, which makes the unsafe pattern more dangerous because operators may expose configuration to less-trusted inputs or automation.
