hammerspoon-macos-setup
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/install-hammerspoon-config.shuses standard system commands to manage local files and directories. It invokesbrew install --cask hammerspoonto ensure the tool is present and usesopen -a Hammerspoonto launch the application. Additionally,assets/hammerspoon/modules/layout.luauseshs.executeto call the macOSopenutility with custom URL schemes (rectangle://) to interact with the Rectangle window manager. - [PERSISTENCE]: In
assets/hammerspoon/init.lua, the skill enables thehs.autoLaunch(true)feature, which configures Hammerspoon to start automatically when the user logs into macOS. This is a standard persistence mechanism for utility applications and is clearly described in the documentation. - [INDIRECT_PROMPT_INJECTION]: The modules
assets/hammerspoon/modules/claude.luaandassets/hammerspoon/modules/window_picker.luaread external data such as window titles and accessibility attributes (AXTitle,AXDescription) to build searchable lists and automate UI elements. This represents a surface for indirect injection if a window has a malicious title, but the data is used locally within the Hammerspoon environment for UI navigation. - [SAFE]: The installer script includes defensive programming practices, such as backing up the existing
~/.hammerspoondirectory to~/.hammerspoon-backupsbefore making changes. No network exfiltration or unauthorized remote code downloads were identified; dependencies are managed through Homebrew, a well-known service.
Audit Metadata