T07 · Tool Hijacking and Spoofing
- Location
skill.md:55- Finding
Execution of an Unverified External Helper with Gateway Credentials
- Content
View full analysis
/briefing' \ RAILS_GATEWAY_TOKEN='***' \ /home/node/.openclaw/workspace/scripts/rails-gateway-briefing --period 7d --resources users,orders ``` ``` The same external helper is invoked in `references/usage.md`, including daily, weekly, and full-history pull profiles. ### Technical Analysis The Skill recommends executing `/home/node/.openclaw/workspace/scripts/rails-gateway-briefing`, but that executable is outside the audited Skill package. The instructions only recommend checking that the file exists and is executable; they do not require verification of its contents, owner, permissions, source, signature, or cryptographic digest. The helper may receive `RAILS_GATEWAY_URL` and `RAILS_GATEWAY_TOKEN`. The URL can contain the path secret, while the token is the second authentication factor. Consequently, a spoofed or replaced helper could access both credentials. Because the helper executes as a local process, it could also perform arbitrary actions with the operating-system privileges of the Agent process. This does not establish that the referenced helper is malicious. The risk arises because its trustworthiness cannot be established from the audited package, and an attacker with write access to that path could substitute attacker-controlled logic. ### Attack Path 1. An attacker gains the ability to create or modify `/home/node/.openclaw/workspace/scripts/rails-gateway-briefing`. 2. The attacker replaces the expected helper with a malicious executable while ...[truncated 1083 chars]- Remediation
View remediation
