T06 · System Persistence
- Location
scripts/setup.sh:155- Finding
Unconditional Persistent Launch Agent Installation
- Content
View full analysis
/dev/null || true launchctl unload "$PLIST" 2>/dev/null || true cat > "$PLIST" << PLISTEOF Label ${PLIST_LABEL} ProgramArguments $(which python3) ${SCRIPTS_DIR}/server.py WorkingDirectory ${SKILL_DIR} RunAtLoad KeepAlive SuccessfulExit ThrottleInterval 5 StandardOutPath /tmp/videochat-withme.log StandardErrorPath /tmp/videochat-withme.log EnvironmentVariables AGENT_NAME ${AGENT_NAME} USER_NAME ${USER_NAME} PORT ${PORT} PATH /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin PLISTEOF if [ -n "$SSL_CERT" ] && [ -n "$SSL_KEY" ]; then cat >> "$PLIST" << SSLEOF SSL_CERT ${SSL_CERT} SSL_KEY ${SSL_KEY} SSLEOF fi cat >> "$PLIST" << ENDEOF ENDEOF launchctl load "$PLIST" ``` ### Technical Analysis The setup process always creates and loads a per-user launch agent. `RunAtLoad` causes the service to start whenever the user logs in, while ...[truncated 1628 chars]- Remediation
View remediation
