T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:62- Finding
Mutable Remote Source Repositories Are Built and Installed Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
test "$(git rev-parse HEAD)" = "" ``` 2. Pin every submodule to an expected commit and validate submodule URLs before initialization. Avoid unrestricted recursive initialization where possible. 3. Prefer signed release tags or release artifacts and verify signatures or published SHA-256 checksums before installation. 4. Replace unconstrained dependency installation with a reviewed lock file containing exact versions and hashes: ```bash python -m pip install --require-hashes -r requirements.lock ``` 5. Review `pyproject.toml`, `setup.py`, build backend configuration, `Makefile`, and submodule metadata before executing installation commands. 6. Run installation in a dedicated virtual environment or disposable container under an unprivileged account. Do not run the workflow as root. 7. Restrict filesystem mounts, credentials, SSH agents, cloud metadata access, and network access available to build processes. 8. Separate retrieval, verification, build, and installation into explicit stages so that no fetched content is executed before integrity validation. ]]>
