T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/openclaw-hybrid-audit-changeway.js:419- Finding
Overly Broad System and Security-Sensitive Directory Reconnaissance
- Content
View full analysis
!f.endsWith('.sha256')); ``` ```js if (platform === 'linux') { let ssOut = spawnCmd('ss', ['-tunlp']); portsRaw = ssOut.split('\n') .filter(l => /LISTEN/.test(l) && !/127\.0\.0\.1|::1/.test(l)) .join('\n'); psRaw = spawnCmd('ps', [ '-eo', 'pid,user,%cpu,%mem,comm', '--sort=-%cpu' ]); psRaw = psRaw.split('\n').slice(0, 6).join('\n'); } ``` ### Technical Analysis A standard audit recursively enumerates recently modified files under host-wide and security-sensitive locations, including `/etc`, `~/.ssh`, `~/.gnupg`, and `/usr/local/bin`. It also collects externally listening services and process information. These operations are relevant to a comprehensive host audit, but they exceed the minimum permissions needed for an OpenClaw-focused security check. The resulting report can expose full file paths, usernames, process identifiers, service names, ports, and operational changes. Reports are persisted under the OpenClaw state directory, increasing the impact if another process or user can access them. The implementation silently ignores access failures, so it does not directly bypass operating-system controls. However, running the Skill under a privileged account substantially e ...[truncated 898 chars]- Remediation
View remediation
