T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:33- Finding
Execution of an Unaudited Script Outside the Skill Package
- Content
View full analysis
/tmp/tweet.md python3 scripts/rag_index.py /tmp/tweet.md --collection agent-research-kb ``` ```python import subprocess result = subprocess.run( ["python3", "scripts/tweet-ingest.py", url, "--mode", "single"], capture_output=True, text=True ) markdown = result.stdout # Clean markdown, ready to index ``` ### Technical Analysis The Skill package contains only `SKILL.md`; it does not include the referenced `tweet-ingest.py` implementation. The instructions therefore delegate the Skill's core operation to code outside the audited package. The absolute path under `/Users/loki/.openclaw/workspace/scripts/` is tied to one local environment, while the relative `scripts/tweet-ingest.py` path is resolved according to the process working directory. If another user, package, compromised process, or malicious repository can create or modify a script at either resolved location, legitimate-looking Skill invocations will execute that substituted code. Becaus ...[truncated 2792 chars]- Remediation
View remediation
