T03 · Remote Payload Retrieval and Execution
- Location
scripts/setup.sh:5- Finding
Mutable Remote Repository Is Downloaded and Executed Without Integrity Verification
- Content
View full analysis
/dev/null || true else echo "Cloning $REPO_URL → $DIR" git clone "$REPO_URL" "$DIR" fi ``` ```bash # scripts/run.sh:24 exec .venv/bin/python main.py --config config/config.json "$MODE" ``` ### Technical Analysis The audited package does not contain the monitoring application's Python implementation. Instead, the setup script clones the mutable `main` branch of an external GitHub repository or updates an existing checkout using `git pull`. The runtime script subsequently executes `main.py` from that checkout. No immutable commit identifier, signed release, cryptographic digest, or trusted manifest is verified before execution. Consequently, the effective code executed by the Skill can change after this package has been reviewed. HTTPS protects the network connection but does not establish that future upstream content is the same code that was audited. The use of `git pull --ff-only` prevents non-fast-forward updates but does not prevent malicious or compromised upstream commits from being downloaded and executed. ### Attack Path 1. An attacker compromises the upstream GitHub account, repository, maintainer credentials, or an authorized development workflow. 2. The attacker adds malicious code to the upstream `main` branch, including code in `main.py` or imported modules. 3. A user runs `scripts/setup.sh`. 4. The setup script clones the compromised repository or pulls the new commit into an existing checkout ...[truncated 1030 chars]- Remediation
View remediation
