T03 · Remote Payload Retrieval and Execution
- Location
README.md:35- Finding
Execution of an Unpinned Remote Script
- Content
View full analysis
- Remediation
View remediation
/skills/workspace-git-setup/scripts/setup.sh -o setup.sh ``` 2. Publish a SHA-256 checksum through a separately authenticated release channel and require verification before execution: ```bash echo " setup.sh" | sha256sum -c - bash setup.sh ``` 3. Prefer signed release artifacts or Git tags whose signatures users can verify. 4. Separate retrieval from execution and instruct users to inspect the downloaded script before running it. Do not recommend direct `curl | bash` execution. 5. Apply the same hardened instructions to both the English section at lines 35-36 and the duplicated Chinese section at lines 143-144. 6. Keep the bundled, audited `scripts/setup.sh` as the preferred execution path after obtaining the repository from a pinned revision. ]]>
