T05 · Unauthorized Access and Privilege Escalation
- Location
references/claudecodecli-exit-code-143-sigterm-reference.md:67- Finding
Overbroad Filesystem Reconnaissance During SIGTERM Diagnosis
- Content
View full analysis
/dev/null ``` ### Technical Analysis The diagnostic command recursively searches several broad locations: - System service configuration under `/etc/systemd` - Application and service trees under `/opt` and `/srv` - Matching hidden entries in the invoking user's home directory through `~/.*` These locations may contain unrelated service configurations, operational metadata, usernames, internal paths, and other sensitive information outside the OpenClaw task being diagnosed. Searching all matching hidden home-directory entries is particularly excessive when the relevant project, service name, configuration path, or log path is already known. Redirecting standard error to `/dev/null` also conceals permission failures and inaccessible paths, reducing transparency about the boundaries crossed during the search. The command does not itself bypass operating-system permissions or grant elevated privileges. Its scope is limited to files readable by the invoking account. Nevertheless, it violates least-privilege principles by encouraging access to unrelated files without explicit user authorization. ### Attack Path 1. A user activates the Skill to investigate a ClaudeCodeCLI process that exited with code 143. 2. The Agent follows the reference and executes the broad `rg` command. 3. The command traverses readable content under `/etc/systemd`, `/opt`, `/srv`, and matching hidden home-directory entries. 4. Matching lines from unrelated configurations are returned to the Agent context. 5. Sensitive operational information may consequently be displayed, retained in logs, or included in later diagnostic output. ...[truncated 718 chars]- Remediation
View remediation
