T06 · System Persistence
- Location
SKILL.md:111- Finding
Mandatory Always-On LaunchAgent Exceeds the Skill's Functional Requirements
- Content
View full analysis
Label ai.openclaw.agent-browser-watchdog ProgramArguments /bin/bash /Users/zq/.openclaw/scripts/agent-browser-watchdog.sh RunAtLoad KeepAlive ``` ```bash launchctl load ~/Library/LaunchAgents/ai.openclaw.agent-browser-watchdog.plist launchctl start ai.openclaw.agent-browser-watchdog ``` The instructions also reload the persistent service as follows: ```bash launchctl unload ~/Library/LaunchAgents/ai.openclaw.agent-browser-watchdog.plist launchctl load ~/Library/LaunchAgents/ai.openclaw.agent-browser-watchdog.plist ``` ### Technical Analysis The Skill presents installation of a macOS LaunchAgent watchdog as mandatory. The `RunAtLoad` setting causes execution whenever the user logs in, while `KeepAlive` instructs launchd to restart the process whenever it exits. Telegram check-in is an on-demand browser automation operation. It does not inherently require an always-running background browser, a login-time startup service, or a watchdog that overrides the user's attempt to close the browser. The persistence mechanism therefore exceeds the minimum privileges and lifecycle required for the declared functionality. The persistent browser uses a Chrome profile containing an authenticated Telegram session. Reopening that browser indefinitely increases both the lifetime and exposure of the authenticated session. ### Attack Path 1. A user follows the Skill's mandatory watchdog installation instructions. 2. A LaunchAgent plist is created under the user's `~/Library/LaunchAgents` directory. 3. `launchctl load` registers the service, and `launchctl start` executes it immediately. 4. At subsequent logins, `RunAtLo ...[truncated 880 chars]- Remediation
View remediation
