T03 · Remote Payload Retrieval and Execution
- Location
scripts/init.py:20- Finding
Unpinned Remote Repository Is Retrieved and Executed During Setup
- Content
View full analysis
- Remediation
View remediation
git -C checkout --detach test "$(git -C rev-parse HEAD)" = "" ``` 4. Do not trust an installation merely because its directory and files exist. For pre-existing directories, validate the repository origin, exact commit, expected file digests, ownership, and permissions. Abort on any mismatch. 5. Vendor and audit the required installation logic where practical, or replace the general-purpose shell installer with explicit installation steps using version-pinned dependencies and hash verification. 6. Execute installation with the least privileges possible and clearly require user confirmation before running remotely sourced code. 7. Treat installer failure and timeout as failure. The current logic may report success after a nonzero installer result or timeout, which can leave an unverified partial installation available for later use. ]]>
