T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:45- Finding
Unverified Mutable Remote Binary Download and Execution
- Content
View full analysis
- Remediation
View remediation
" URL="https://github.com/skalenetwork/smartclaws/releases/download/${VERSION}/smartclaws-${PLATFORM}" curl --fail --location --proto '=https' --tlsv1.2 \ --output smartclaws.download "$URL" printf '%s %s\n' "$EXPECTED_SHA256" smartclaws.download | sha256sum --check - install -m 0755 smartclaws.download "$HOME/.local/bin/smartclaws" rm -f smartclaws.download ``` 4. Prefer a signed release manifest and verify its signature against a maintainer key distributed through a separate trusted channel. 5. Download to a temporary non-executable file and install it only after successful verification. 6. Prefer a user-owned installation directory such as `~/.local/bin`; do not suggest elevating the download command itself. 7. Document the exact expected version and fail closed if signature or checksum verification does not succeed. ]]>
