T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:144- Finding
Unpinned Remote Repository Is Downloaded and Exposed as Executable Tooling
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 144-155
Vulnerability Type: Remote payload retrieval and execution through mutable upstream content
Risk Level: HighVulnerable Code
bash git clone https://github.com/ERerGB/wander.git ~/code/wander cd ~/code/wander && chmod +x *.shbash export WANDER_HOME="${WANDER_HOME:-$HOME/code/wander}" export PATH="$WANDER_HOME:$PATH" alias wf='watch-workflow.sh' alias wfbg='watch-workflow-bg.sh' alias wfdt='watch-workflow-detached.sh'Technical Analysis
The installation instructions clone the current contents of an external GitHub repository without pinning a reviewed commit, signed tag, release artifact, or cryptographic checksum. They then mark every root-level shell script as executable and instruct the user to place the cloned directory at the beginning of
PATH.The executable scripts are not included in the audited package, which contains only
README.mdandSKILL.md. Consequently, their behavior cannot be verified by this audit, and the effective payload can change independently after the Skill package has been reviewed or published.Prepending the mutable directory to
PATHalso causes matching commands in that directory to take precedence over system commands. Although no spoofed tools were observed in the packaged files, a compromised upstream repository could introduce additional executable files that are selected during subsequent shell command resolution.Attack Path
- An attacker compromises the referenced GitHub repository, a maintainer account, or another mechanism capable of changing its default branch.
- The attacker adds malicious behavior to one of the documented watcher scripts or adds another executable shell script.
- A user or Agent follows the installation instructions and clones the mutable default branch.
- The broad
chmod +x *.shcommand makes all root-level shell scripts exe ...[truncated 945 chars]
- Remediation
View remediation
Remediation Suggestions
- Vendor the required scripts into the Skill package so that the exact executable content is included in security review.
- If remote retrieval is necessary, pin the repository to a specific immutable commit hash rather than cloning and executing the current default branch.
- Publish checksums for all executable files and verify them before granting execute permission or running them.
- Prefer signed release artifacts or signed Git tags and verify their signatures against a documented trusted maintainer key.
- Replace
chmod +x *.shwith explicit permissions for the required files only, such as the three named watcher scripts. - Avoid prepending a mutable third-party directory to global
PATH. Invoke verified scripts through explicit absolute paths or install narrowly scoped wrappers in a controlled directory. - Document a fixed, reviewed version and provide an explicit upgrade process so that upstream changes require separate review before execution.
