T06 · System Persistence
- Location
scripts/install.sh:60- Finding
Persistent User-Level LaunchAgent Installation
- Content
View full analysis
"$LAUNCH_AGENT_DIR/com.openclaw.healthcheck.plist" << EOF Label com.openclaw.healthcheck ProgramArguments $USER_HOME/.openclaw/scripts/openclaw-health-check.sh StartInterval 300 RunAtLoad StandardOutPath $USER_HOME/.openclaw/logs/health-check-daemon.log StandardErrorPath $USER_HOME/.openclaw/logs/health-check-daemon-error.log KeepAlive Crashed NonEmpty ProcessType Background ThrottleInterval 60 EOF launchctl unload "$LAUNCH_AGENT_DIR/com.openclaw.healthcheck.plist" 2>/dev/null || true sleep 1 launchctl load "$LAUNCH_AGENT_DIR/com.openclaw.healthcheck.plist" ``` ### Technical Analysis The installer creates `~/Library/LaunchAgents/com.openclaw.healthcheck.plist` and immediately registers it with `launchctl`. The configuration executes the installed health-check script when loaded and every 300 seconds. It also asks launchd to relaunch the job after a crash. The persistence is directly related to the declared automatic monitoring functionality and remains within the current user's launchd domain. It does not request root privileges or create a system-wide daemon. Nevertheless, it survives the original Skill execution and continues invoking a m ...[truncated 2829 chars]- Remediation
View remediation
