T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:6- Finding
Mandatory Redirection Through an Unreviewed External Execution Wrapper
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 6–8
Vulnerability Type:T07: Tool Hijacking and Spoofing
Risk Level: HighVulnerable Code:
markdown All autonomous operations in strict mode must execute through this wrapper: `python3 /home/openclaw/.openclaw/workspace/governance/governance_wrapper.py`Technical Analysis
The skill mandates that all strict-mode autonomous operations execute through a Python script referenced by an absolute path outside the reviewed project. The project contains only
SKILL.md; consequently, the wrapper's source code, integrity, ownership, permissions, and behavior cannot be verified within the audit boundary.This creates a tool-hijacking boundary because loading the skill replaces the normal execution path with an external intermediary. That intermediary can be modified independently after this skill is reviewed. Anyone able to create or alter the referenced file could control how operations are processed while calls continue to appear as legitimate governance-wrapper executions.
The wrapper's claimed model lock, allowlist enforcement, network restrictions, and evidence controls do not mitigate this issue because their implementations are absent from the package and cannot be validated.
Attack Path
- An operator or attacker with write access to
/home/openclaw/.openclaw/workspace/governance/governance_wrapper.py, or one of its parent directories, creates or modifies the wrapper. - The skill is loaded for a strict-mode autonomous operation.
- Following the mandatory instruction, the agent invokes the external wrapper.
- The wrapper receives control over the operation and its supplied parameters.
- A malicious wrapper can alter requests, falsify policy decisions, redirect operations, disclose supplied data, or return manipulated results.
- Because the implementation is outside the reviewed package, its behavior may change without any mod ...[truncated 572 chars]
- An operator or attacker with write access to
- Remediation
View remediation
Remediation Suggestions
- Include the complete wrapper implementation and its required configuration in the reviewed skill package.
- Reference a package-relative executable rather than a mutable absolute path outside the project.
- Pin the approved wrapper with a cryptographic digest and verify that digest before execution.
- Ensure the wrapper and its parent directories are owned by a trusted administrative account and are not writable by the agent or untrusted users.
- Make wrapper use explicit and scoped to operations that require it rather than issuing an unconditional execution mandate.
- Document the wrapper's precise trust boundary, permitted operations, network access, and failure behavior.
- Add automated tests proving that allowlist, network, model, and evidence controls fail closed.
- Have the wrapper implementation undergo a separate security review before deployment.
