T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:58- Finding
Execution of Unbundled Scripts from a Mutable Shared Workspace
- Content
View full analysis
``` ```bash cd ~/.openclaw/workspace python3 scripts/wipo_search.py ``` ```bash cd ~/.openclaw/workspace python3 scripts/wipo_generate_report.py wipo_reports/wipo_patent_weekly_.json ``` ### Technical Analysis The Skill instructs the agent to change into `~/.openclaw/workspace` and execute `scripts/wipo_search.py` and `scripts/wipo_generate_report.py` using relative paths. Neither script is included in the audited project, which contains only `SKILL.md` and `references/target-rules.md`. The origin, contents, ownership, permissions, version, and integrity of the invoked scripts are therefore not controlled or validated by this Skill. Any user or process capable of writing to the shared workspace could create or replace these files. The resulting commands would then execute the substituted code under the identity and privileges of the agent running the Skill. This is a tool-hijacking risk because legitimate-looking Skill operations are delegated to mutable, unaudited implementations outside the reviewed package. ### Attack Path 1. An attacker obtains write access to `~/.openclaw/workspace/scripts/`, directly or through another compromised process or Skill. 2. The attacker creates or replaces `wipo_search.py` or `wipo_generate_report.py` with malicious Python code. 3. A user invokes the patent-report Skill, or an external scheduler invokes it according to the documented weekly workflow. 4. The agent changes into the shared workspace and executes the attacker-controlled script without checking its integrity. 5. The malicious script performs arbitrary actions available to the agent before optionally producing expected output to conceal the compromi ...[truncated 988 chars]- Remediation
View remediation
