T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/scanner.py:58- Finding
Protected-Path Scan Restrictions Can Be Bypassed with Direct Files and Symbolic Links
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This disk cleanup skill is mostly purpose-aligned, but its safety guarantees are not reliably enforced before scanning, hashing, or deleting files.
Review this skill carefully before installing. Use preview-only behavior unless you have inspected the paths yourself, avoid running it with elevated privileges, and do not rely on its protected-path or no-content-reading claims as written.
scripts/scanner.py:58Protected-Path Scan Restrictions Can Be Bypassed with Direct Files and Symbolic Links
scripts/cleaner.py:103Cleanup Executor Trusts Caller-Controlled Safety Labels for Destructive Operations
scripts/duplicates.py:30Duplicate Detection Reads Complete File Contents Despite a No-Content-Reading Guarantee
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
If behavior is limited to generic file scanning while marketed as intelligent cleanup with app-specific recognition and safety controls, the skill can drive poor operator decisions based on incomplete understanding. In a disk cleanup context, even benign overstatement is dangerous because it affects what users decide to remove or trust the tool to protect.
The skill advertises filesystem scanning and cleanup behavior but does not declare any explicit tool scope such as permissions or allowed-tools. For a skill that implies file access and possible shell execution, missing capability boundaries increases the chance of over-broad host access, unsafe agent behavior, and accidental destructive actions beyond what users expect.
Selecting an external model/provider can introduce data governance and supply-chain risk, particularly for a skill that may analyze local filesystem metadata and potentially sensitive filenames or paths. Even if the skill claims zero network behavior, declaring an external model dependency creates ambiguity about whether data could be sent to a third-party provider.
- disk-analysis
- system-tool
- utility
model: deepseek
created_at: 2026-06-14
---
The module docstring explicitly frames the skill as "Chinese app cache recognition," which imposes a language/locale-specific scope in natural language without indicating user choice or a documented regional justification. The policy requires flagging language or locale constraints when they are forced rather than offered as an opt-in.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
"""
try:
# Try macOS `trash` command first
subprocess.run(["trash", path], check=True, capture_output=True)
return True
except (FileNotFoundError, subprocess.CalledProcessError):
pass
The description advertises 'Chinese app cache recognition,' which encodes a locale-specific focus in the skill's behavior. The file does not state that this is optional, user-selected, or required for a region-specific compliance purpose, so it may conflict with language/locale neutrality expectations.
The comment says hidden directories are skipped unless explicitly scanned, but the code returns False for hidden directories, meaning they are not skipped at all. This is a direct contradiction between inline intent documentation and actual behavior.
No suspicious patterns detected.