Intent-Code Divergence
Medium
- Confidence
- 96% confidence
- Finding
- The script claims it never interpolates shell variables into Hammerspoon commands, but later executes a dynamically supplied command string via `eval "$HS_CMD"`. Because `HS_CMD` comes from helper-produced action data rather than a fixed allowlisted dispatch table, any compromise, bug, or malicious input in that pipeline can become arbitrary shell command execution under the LaunchAgent user. In a desktop automation skill with broad GUI permissions, that is especially dangerous because it can silently drive the desktop and execute host commands.
