T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:64- Finding
Mutable Remote Shell Script Is Downloaded and Immediately Executed
- Content
View full analysis
- Remediation
View remediation
``` 3. If a shell installer must remain available: - Link to an immutable release artifact or commit rather than `main`. - Download the script without executing it. - Publish its expected SHA-256 checksum through a separately controlled channel. - Verify the checksum before execution. - Encourage users to inspect the downloaded script. - Execute it without elevated privileges unless a specific operation demonstrably requires elevation. Example pattern: ```bash curl -fL -o adp-init.sh "https://example.invalid/releases//adp-init.sh" printf '%s %s\n' '' 'adp-init.sh' | sha256sum -c - less adp-init.sh bash adp-init.sh ``` 4. Cryptographically sign release artifacts and document signature verification. 5. Document what files, directories, network endpoints, and permissions the installer uses. 6. Instruct AI Agents to obtain explicit user approval before installing software or executing downloaded content. ]]>
