T06 · System Persistence
- Location
install_v2.sh:86- Finding
Persistent launch agent with automatic restart
- Content
View full analysis
"$PLIST_PATH" << EOF Label com.workbuddy.hermes-watcher ProgramArguments /usr/bin/python3 ${SKILL_DIR}/event_watcher.py WorkingDirectory ${SHARED_DIR} EnvironmentVariables BRIDGE_LOG_LEVEL INFO RunAtLoad KeepAlive StandardOutPath /tmp/hermes-watcher.log StandardErrorPath /tmp/hermes-watcher.err ProcessType Background EOF ``` ### Technical Analysis The installer creates a macOS LaunchAgent definition under the user's `~/Library/LaunchAgents` directory. `RunAtLoad` causes the watcher to start whenever the LaunchAgent is loaded, while `KeepAlive` instructs launchd to restart it after termination. A continuously running watcher is relevant to the advertised event-driven functionality, and the script only prints the `launchctl load` command rather than executing it automatically. Nevertheless, this is an explicit persistence mechanism and is not required for manual or on-demand synchronization. The persistent service executes `event_watcher.py` directly from the Skill directory, so subsequent modification or replacement of that fi ...[truncated 889 chars]- Remediation
View remediation
