T09 · Insecure Skill Coding Practices
- Location
SKILL.md:199- Finding
Execution of an Unverified External Python Script
- Content
View full analysis
/tmp/threads-filter/result.json # Feed-only mode python3 "$FILTER_SCRIPT" --feed-file /tmp/threads-filter/feed.json > /tmp/threads-filter/result.json # AI-disabled mode python3 "$FILTER_SCRIPT" --no-ai --feed-file ... --keyword-file ... > /tmp/threads-filter/result.json ``` ### Technical Analysis The Skill instructs the agent to execute a Python script located at a fixed path outside the audited project directory. It does not specify a trusted installation procedure or require validation of the file's ownership, permissions, version, signature, or cryptographic digest. Consequently, the effective code executed by the Skill is not included in the reviewed package and may change independently after review. Although the path is quoted and therefore is not directly vulnerable to shell argument injection, Python will execute all code contained in the referenced file. Exploitation requires an attacker or compromised process to be able to create or replace the file at `~/Desktop/threads-filter-comment/filter-comment.py`. This is not, by itself, evidence that such access already exists, but it creates an unsafe trust boundary when the workflow assumes that any file found at this location is legitimate. ### Attack Path 1. An attacker, malicious application, or compromised process obtains write access to `~/Desktop/threads-filter-comment/` or the referenced Python file. 2. The attacker creates or replaces `filter-comment.py` with malicious Python code. 3. The user re ...[truncated 774 chars]- Remediation
View remediation
