T03 · Remote Payload Retrieval and Execution
- Location
scripts/download_segmented.sh:33- Finding
Unverified Remote FFmpeg Binary Download and Execution in Segmented Downloader
- Content
View full analysis
/dev/null ``` ### Technical Analysis When a local FFmpeg installation is unavailable, the script downloads a mutable ZIP archive from a third-party server, extracts it into `/tmp`, marks the resulting file executable, and runs it. It does not: - Pin a specific FFmpeg version. - Verify a cryptographic checksum. - Validate a release signature. - Verify the identity or expected contents of the archive. - Use a private temporary directory. - Obtain explicit confirmation before executing the downloaded component. Consequently, the effective executable payload can change after the Skill has been audited. HTTPS protects data in transit under normal conditions but does not protect against compromise of the distribution server, malicious release replacement, or compromise of the relevant certificate and network trust chain. The static pre-scan warning referred to a `curl | bash`-style risk. No literal `curl | bash` pipeline exists in this file. However, downloading, extracting, and executing an unverified binary creates an equivalent mutable remote-code execution channel. ### Attack Path 1. FFmpeg is absent from the system PATH and `/tmp/ffmpeg` does not already exist. 2. An attacker compromises the remote distribution endpoint or otherwise causes it to serve a malicious ZIP archive. 3. The user invokes `scripts/download_segmented.sh`. 4. The script downloads th ...[truncated 995 chars]- Remediation
View remediation
