other
- Location
SKILL.md:43- Finding
Overly Broad Host Reconnaissance Exceeds the Minimum Scope of an OpenClaw Audit
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 43-53, 64-68, and 110-124
Vulnerability Type: Excessive environment reconnaissance
Risk Level: MediumRelevant code snippets:
text ### 0) Identify Environment 1. Determine OS and host context: - `uname -a` - `cat /etc/os-release` - `hostname` 2. Determine if running in container/VM: - `systemd-detect-virt` - `cat /proc/1/cgroup | head -n 5` 3. Determine working dir and user: - `pwd` - `whoami`text ### 2) Network Exposure & Listening Services 1. List open ports: - `ss -tulpen` 2. Identify whether gateway ports are bound to **localhost only** or **public**. 3. Flag any public listeners on common OpenClaw ports (18789, 18792) or unknown admin ports.text ### 8) File Permissions & Privilege Escalation Risks 1. Check for risky permissions on key dirs: - `ls -ld ~/.openclaw` - `ls -l ~/.openclaw | head -n 50` 2. Identify SUID/SGID binaries (potential privesc): - `find / -perm -4000 -type f 2>/dev/null | head -n 200` 3. Flag if OpenClaw runs as root or with unnecessary sudo. ### 9) Process & Persistence Indicators 1. Check for unexpected cron jobs: - `crontab -l` - `ls -la /etc/cron.* 2>/dev/null` 2. Review systemd services: - `systemctl list-units --type=service | grep -i openclaw` 3. Flag unknown services related to OpenClaw or skills.Technical Analysis
The Skill is declared as a read-only OpenClaw security auditor, but its workflow includes broad host-level discovery. It enumerates host identity, virtualization details, execution context, all listening sockets, system-wide SUID executables, user cron entries, system cron directories, and services.
Some of this information can legitimately support an authorized security audit. However, system-wide SUID enumeration, unrestricted listener discovery, and general persistence i ...[truncated 2448 chars]
- Remediation
View remediation
Remediation Suggestions
- Restrict the default workflow to OpenClaw-specific resources:
- Inspect only documented OpenClaw ports.
- Query only OpenClaw process IDs and service units.
- Limit file inspection to
~/.openclawand explicitly configured OpenClaw paths.
- Move system-wide checks such as SUID enumeration, all-listener discovery, cron inspection, and global service review into an optional extended audit.
- Require explicit informed consent before running host-wide checks.
- Explain which data each optional command collects and why it is necessary.
- Filter and summarize results locally so unrelated host details do not enter the Agent context.
- Avoid retaining raw command output in reports, telemetry, or conversation history.
- Continue treating cron and service commands as read-only; never create, modify, enable, or disable persistence mechanisms without a separate remediation request and confirmation.
- Restrict the default workflow to OpenClaw-specific resources:
