T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:30- Finding
Overbroad Home-Directory Enumeration for Sensitive File Monitoring
- Content
View full analysis
/dev/null \ | grep -E '(\.ssh|\.aws|\.gnupg|\.config/gcloud|\.gitconfig|/etc/passwd|/etc/shadow|Library/Keychains|\.config/google-chrome|\.mozilla)' \ | head -30 # Update timestamp after check: touch ~/.openclaw/last-check ``` ### Technical Analysis The command recursively enumerates all recently modified files under the user's home directory before filtering the results for credential, browser, and configuration paths. Although the Skill's security-monitoring purpose justifies checking for suspicious access, recursively traversing the entire home directory exceeds the minimum scope necessary and exposes unrelated filenames and directory structure to the Agent. The check also relies on filesystem modification times. A modification timestamp can indicate that a file changed, but it cannot establish that another Skill read the file or identify which process caused the change. Consequently, the implementation may misattribute ordinary user or application activity to an installed Skill. The pre-scan reference to SSH key access is not evidence that private-key contents are read or written. The command only enumerates file metadata and matching paths. Nevertheless, those paths are sensitive metadata and may subsequently appear in Agent context, logs, or reports. ### Attack Path 1. A user invokes the permission report or the Skill triggers a post-installation baseline check. 2. The Agent executes `find ~`, recursively enumerating recently modified files throughout the user's home directory. 3. The pipeline selects paths associated with SSH, AWS, GnuPG, cloud, browser, and other sensitive configuration. 4. Up to 30 matching paths enter the Agent's context and may be included in a report. 5. Unrelated changes may be attribute ...[truncated 472 chars]- Remediation
View remediation
