T05 · Unauthorized Access and Privilege Escalation
- Location
install-systemd.sh:13- Finding
Persistent watchdog is installed with excessive system privileges
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is meant to repair OpenClaw, but it uses persistent high-privilege monitoring and can generate destructive repair scripts without enough safeguards.
Review carefully before installing. Prefer manual/report-only use, do not install the watchdog as root or SYSTEM, inspect any generated repair script before running it, back up OpenClaw and iFlow configuration first, and avoid pasting settings files or logs that may contain API keys.
install-systemd.sh:13Persistent watchdog is installed with excessive system privileges
watchdog.py:48Watchdog identifies and terminates processes using unsafe substring matching
openclaw_memory.py:1246Repair engine reports successful automatic fixes without applying or verifying them
openclaw_memory.py:897Generated repair tools perform unpinned global package replacement
openclaw_memory.py:138Weak keyword classification generates destructive executable repair scripts
openclaw_memory.py:324Potential secrets in errors and logs are persisted without redaction or restrictive permissions
The quick-start text promotes automatic repair and generated fix-script execution without warning users that the skill may make system changes, execute generated code, or alter configuration automatically. This is dangerous because users may enable or rely on the skill without informed consent, while generated repair actions can introduce destructive changes, privilege misuse, or persistence if the repair logic is wrong or manipulated.
The Windows guide registers a Scheduled Task as SYSTEM with highest privileges, creating privileged persistence, but does not prominently warn users that this grants the skill continuous high-privilege execution. If the skill or its files are modified later, that persistence mechanism could be abused for full-system compromise.
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
| Problem Type | Generated BAT (CN) | Generated BAT (EN) | Purpose |
|--------------|-------------------|-------------------|---------|
| memory | 重置记忆索引.bat | reset_memory_index.bat | Reset memory index |
| gateway | 重启Gateway服务.bat | restart_gateway_service.bat | Restart Gateway |
| config | 重置配置文件.bat | reset_configuration.bat | Reset config |
| network | 检查网络连接.bat | check_network_connection.bat | Check network |
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
| Problem Type | Generated BAT (CN) | Generated BAT (EN) | Purpose |
|--------------|-------------------|-------------------|---------|
| memory | 重置记忆索引.bat | reset_memory_index.bat | Reset memory index |
| gateway | 重启Gateway服务.bat | restart_gateway_service.bat | Restart Gateway |
| config | 重置配置文件.bat | reset_configuration.bat | Reset config |
| network | 检查网络连接.bat | check_network_connection.bat | Check network |
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
The behavior set includes watchdog-style monitoring, health checks, process restart/termination, daemon control, and persistent logging, none of which are clearly conveyed by the headline AI-repair description. A continuously running monitor with process-control powers is materially more dangerous than a one-shot troubleshooting tool because it can disrupt services, hide faults through restarts, and persist beyond user awareness.
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
"keywords": ["memory", "search", "identity", "remember", "记忆", "搜索"],
"bat_options": ["reset_memory", "open_iflow"],
"description_cn": "重置记忆索引",
"description_en": "Reset Memory Index"
},
"gateway": {
"keywords": ["gateway", "start", "crash", "service", "服务", "启动", "崩溃"],
The generated Unix script performs rm -f on memory index files and then restarts the gateway. Deleting stateful files based on broad issue classification is dangerous because it can destroy user data or application state, and the self-deleting script model reduces auditability and user review.
"BACKUP_DIR=\"$HOME/.openclaw/memory_backup_$(date +%Y%m%d)\"",
"mkdir -p \"$BACKUP_DIR\"",
"cp -r \"$HOME/.openclaw/memory\" \"$BACKUP_DIR/\" 2>/dev/null",
"rm -f \"$HOME/.openclaw/memory/\"index.*",
"pkill -f openclaw-gateway 2>/dev/null",
"sleep 2",
"openclaw gateway &",
The generated Unix script removes the main configuration file with rm -f as a repair step. Deleting configuration can erase user settings, credentials, or security-related controls, and doing so from a generated helper script without strong safeguards creates a high risk of destructive misuse.
"BACKUP_DIR=\"$HOME/.openclaw/config_backup_$(date +%Y%m%d_%H%M%S)\"",
"mkdir -p \"$BACKUP_DIR\"",
"cp \"$HOME/.openclaw/\"*.json \"$BACKUP_DIR/\" 2>/dev/null",
"rm -f \"$HOME/.openclaw/openclaw.json\"",
"rm -f \"$0\""
]
},
The code marks issues as 'auto-fixed' based on matching a case or prior record, but it never executes or verifies the stored solution. This can create a dangerous false sense of remediation, causing users or downstream automation to continue operating in an insecure or broken state under the assumption the problem was fixed.
The document provides privileged installation and service-management commands that modify system state, enable persistence, and start services, but it does not warn users about the need for administrative review, host impact, or rollback steps. In a skill ecosystem, operators may copy-paste these commands directly, which increases the chance of unintended persistent changes on production systems.
This line instructs users to execute an installer script with sudo from a root-owned workspace path, granting the script full administrative privileges. If the script is flawed, tampered with, or insufficiently reviewed, it can modify the host broadly, establish persistence, or damage configuration.
cd /root/.openclaw/workspace/skills/openclaw-iflow-doctor
sudo ./install-systemd.sh
Copying a service file into /etc/systemd/system/ with sudo is a privileged system modification that installs persistent service configuration. Without warning or validation guidance, users may deploy an unsafe or misconfigured unit that affects boot behavior and service security posture.
# 1. 复制服务文件
sudo cp openclaw-iflow-doctor.service /etc/systemd/system/
# 2. 重载 systemd
sudo systemctl daemon-reload
sudo systemctl daemon-reload requires elevated privileges and causes systemd to reload unit definitions, which can apply newly installed or modified services. While common administratively, including it without explanation contributes to a copy-paste flow of privileged operations on the host.
sudo cp openclaw-iflow-doctor.service /etc/systemd/system/
# 2. 重载 systemd
sudo systemctl daemon-reload
# 3. 启用并启动服务
sudo systemctl enable openclaw-iflow-doctor
sudo systemctl enable openclaw-iflow-doctor creates persistent auto-start behavior across reboots, which is a meaningful security and operational change. In the context of an agent skill, enabling persistence without explicit warning or trust guidance increases the risk that users install long-lived privileged components they have not audited.
sudo systemctl daemon-reload
# 3. 启用并启动服务
sudo systemctl enable openclaw-iflow-doctor
sudo systemctl start openclaw-iflow-doctor
# 4. 查看状态
The systemctl enable instruction establishes persistence across reboots, which is a classic persistence mechanism even when used for legitimate administration. In a skill-distributed document, this is security-relevant because it guides users to install a long-lived component that may continue operating unattended.
sudo systemctl daemon-reload
# 3. 启用并启动服务
sudo systemctl enable openclaw-iflow-doctor
sudo systemctl start openclaw-iflow-doctor
# 4. 查看状态
sudo systemctl start openclaw-iflow-doctor launches the service with system privileges, potentially executing unreviewed code immediately. Starting a newly installed service without documenting its runtime permissions, network behavior, and expected actions can expose the host to unintended changes or instability.
# 3. 启用并启动服务
sudo systemctl enable openclaw-iflow-doctor
sudo systemctl start openclaw-iflow-doctor
# 4. 查看状态
systemctl status openclaw-iflow-doctor
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
# 重启服务器后检查
systemctl is-enabled openclaw-iflow-doctor # 应该显示 enabled
systemctl is-active openclaw-iflow-doctor # 应该显示 active
The testing instructions include pkill -f openclaw-gateway, which forcefully terminates a service and can interrupt live operations. Because the markdown lacks a warning about service disruption, data loss, or suitability only for controlled environments, an operator could execute it on a production host and cause avoidable downtime.
No suspicious patterns detected.