T03 · Remote Payload Retrieval and Execution
- Location
scripts/rtk-setup.sh:28- Finding
Automatic Execution of an Unpinned Remote Installation Script
- Content
View full analysis
> ~/.bashrc && source ~/.bashrc ``` ### Technical Analysis The setup process downloads `install.sh` from the mutable `master` branch of an external GitHub repository and immediately pipes its contents to `sh`. It does not pin an immutable commit or release, verify a cryptographic checksum, validate a signature, or give the user an opportunity to inspect the downloaded payload. Because the remote installer is not included in the audited package, its effective behavior cannot be determined from the project. Its contents may also change after the Skill has been reviewed or published. The use of HTTPS protects the connection in transit but does not protect against compromise of the upstream repository, maintainer account, branch, or release process. Automatic installation supports the declared RTK integration functionality, but executing arbitrary mutable remote code is not the minimum privilege or least-risk mechanism necessary to provide that functionality. ### Attack Path 1. An attacker compromises the `rtk-ai/rtk` repository, a maintainer account, or another part of the upstream delivery process. 2. The attacker modifies `install.sh` on the `master` branch to include malicious shell commands. 3. The Skill directs installation to run `scripts/rtk-setup.sh` automatically. 4. `curl` r ...[truncated 1100 chars]- Remediation
View remediation
