T03 · Remote Payload Retrieval and Execution
Warning
- Location
- SKILL.md:19
- Finding
- Mutable Remote Payload Downloaded Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 19-20, 27-28, and 35-42 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Medium ### Vulnerable Code ```powershell Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mcbaivn/openclaw-skills-mcbai/main/skills/youtube/youtube-scheduler/SKILL.md" -OutFile "$skillDir\SKILL.md" Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mcbaivn/openclaw-skills-mcbai/main/skills/youtube/youtube-scheduler/scripts/analyze_schedule.py" -OutFile "$skillDir\scripts\analyze_schedule.py" ``` ```bash curl -o ~/.agents/skills/youtube-scheduler/SKILL.md \ https://raw.githubusercontent.com/mcbaivn/openclaw-skills-mcbai/main/skills/youtube/youtube-scheduler/SKILL.md curl -o ~/.agents/skills/youtube-scheduler/scripts/analyze_schedule.py \ https://raw.githubusercontent.com/mcbaivn/openclaw-skills-mcbai/main/skills/youtube/youtube-scheduler/scripts/analyze_schedule.py ``` ```powershell git clone https://github.com/mcbaivn/openclaw-skills-mcbai.git Copy-Item -Recurse openclaw-skills-mcbai\skills\youtube\youtube-scheduler $env:USERPROFILE\.agents\skills\ ``` ```bash git clone https://github.com/mcbaivn/openclaw-skills-mcbai.git cp -r openclaw-skills-mcbai/skills/youtube/youtube-scheduler ~/.agents/skills/ ``` ### Technical Analysis The recommended installation procedure downloads the Skill definition and executable Python script from the mutable `main` branch of a personal GitHub repository. It does not pin an immutable commit, select a signed release, or verify a cryptographic digest or signature. Consequently, the code installed by these commands can differ from the code that was statically audited. The packaged Python script inspected during this audit did not contain a malicious payload, but that does not establish the safety of future content returned by the remote mutable URLs. Remote retrieval is not necessary when the reviewed Skill package already contains ` ...[truncated 1343 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove remote-download installation instructions when the reviewed package already includes all required files. 2. If remote distribution is required, use an immutable commit URL rather than the mutable `main` branch. 3. Publish a SHA-256 digest through a separately authenticated channel and verify it before installing or executing the file. 4. Prefer signed, versioned releases and verify the release signature. 5. Ensure installation fails closed if checksum or signature verification fails. 6. Display and require approval for the exact version and source being installed. 7. Apply the same controls to both the executable script and `SKILL.md`, because Skill instructions can influence Agent behavior even without native code execution. ]]>
