T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:91
- Finding
- Unverified Remote Binaries Are Downloaded and Executed<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:91-106`, `SKILL.md:165-194` **Vulnerability Type**: Remote payload retrieval and execution without integrity verification **Risk Level**: High ### Complete Code Snippet ```bash ### Mac (Apple Silicon) curl -sfL https://github.com/keldron-ai/keldron-agent/releases/latest/download/keldron-agent-darwin-arm64 -o keldron-agent chmod +x keldron-agent ``` ```bash ### Linux (AMD64) curl -sfL https://github.com/keldron-ai/keldron-agent/releases/latest/download/keldron-agent-linux-amd64 -o keldron-agent chmod +x keldron-agent ``` ```bash ### Linux (ARM64) curl -sfL https://github.com/keldron-ai/keldron-agent/releases/latest/download/keldron-agent-linux-arm64 -o keldron-agent chmod +x keldron-agent ``` The automatic setup flow subsequently executes the downloaded file: ```bash if [ "$OS" = "Darwin" ]; then curl -sfL "https://github.com/keldron-ai/keldron-agent/releases/latest/download/${BINARY}" -o keldron-agent chmod +x keldron-agent ./keldron-agent --local & sleep 3 fi if [ "$OS" = "Linux" ]; then if command -v docker &>/dev/null; then docker rm -f keldron-agent 2>/dev/null || true if ! docker run -d --name keldron-agent --restart unless-stopped \ -p 9100:9100 -p 9200:9200 -p 8081:8081 \ -e KELDRON_OUTPUT_PROMETHEUS_HOST=0.0.0.0 \ -e KELDRON_API_HOST=0.0.0.0 \ -e KELDRON_HEALTH_BIND=0.0.0.0:8081 \ ghcr.io/keldron-ai/keldron-agent:latest; then echo "Error: Failed to start keldron-agent container. Check Docker permissions and network." exit 1 fi else curl -sfL "https://github.com/keldron-ai/keldron-agent/releases/latest/download/${BINARY}" -o keldron-agent chmod +x keldron-agent ./keldron-agent --local & fi sleep 3 fi ``` ### Technical Analysis The Skill downloads executable content from a mutable `releases/latest` URL, marks it executable, and runs it without checking a cryptographic digest or signature. Although Git ...[truncated 1861 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin downloads to an explicit, reviewed release version rather than `releases/latest`. 2. Publish SHA-256 checksums through an independently protected release manifest and verify the selected artifact before `chmod` or execution. 3. Prefer signed releases and verify signatures with a pinned, documented publisher key. 4. Pin the container image by immutable digest, for example: ```bash docker run ghcr.io/keldron-ai/keldron-agent@sha256:<reviewed-digest> ``` 5. Abort installation if verification fails; never downgrade silently to unverified execution. 6. Display the selected version, source URL, checksum, and requested runtime behavior before obtaining user consent. 7. Run the native process with a dedicated low-privilege account and constrain it with applicable sandboxing controls. ]]>
