T06 · System Persistence
- Location
scripts/OpenClaw-Gateway-AutoStart.xml:8- Finding
Persistent PowerShell execution through boot, logon, and registration-triggered scheduled tasks
- Content
View full analysis
true true ... powershell.exe -ExecutionPolicy Bypass -File "%USERPROFILE%\.openclaw\scripts\openclaw-gateway-starter.ps1" %USERPROFILE%\.openclaw ``` `scripts/OpenClaw-Monitor-Service.xml:8-16,38-44`: ```xml true PT30S true PT10S ... powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "%USERPROFILE%\.openclaw\scripts\openclaw-monitor.ps1" %USERPROFILE%\.openclaw ``` ### Technical Analysis The task definitions establish cross-session execution at system boot, user logon, and task registration. This behavior is directly related to the declared continuous monitoring and self-healing functionality, but it remains a system-persistence mechanism and should require explicit user consent. Both tasks invoke PowerShell with `-ExecutionPolicy Bypass`. The monitor also uses `-WindowStyle Hidden`, reducing user visibility into its execution. Although both XML files specify `RunLevel` as `LeastPrivilege`, these options weaken defense-in-depth and allow any code placed at the referenced script paths t ...[truncated 1906 chars]- Remediation
View remediation
