T07 · Tool Hijacking and Spoofing
- Location
skill.json:3- Finding
Execution Delegated to an Unreviewed Mutable External Script
- Content
View full analysis
`. ``` ### Technical Analysis The Skill uses `/home/patron/apps/_bin/appctl` as its shell entrypoint, but that executable is not included in the audited package. Therefore, the package does not define or attest to the code ultimately executed when the Skill is invoked. The security claims that the runner is allowlisted and restricted to `/home/patron/apps` cannot be verified from the supplied files. The absolute path also creates a trust dependency on the host filesystem: any party capable of creating, replacing, or modifying `appctl` can alter the effective behavior without modifying the reviewed Skill package. The use of `"{{args}}"` additionally forwards user-controlled arguments into the external runner. Command injection cannot be confirmed because neither the framework's interpolation behavior nor the runner implementation was available for review, but the missing implementation prevents validation of argument handling. ### Attack Path 1. An attacker gains write access to `/home/patron/apps/_bin/appctl` or controls that path before deployment. 2. The attacker creates or replaces `appctl` with a malicious executable. 3. A user or Agent invokes any command exposed by the Skill. 4. The shell entrypoint executes the attacker-controlled program under the permissions of ...[truncated 709 chars]- Remediation
View remediation
