T03 · Remote Payload Retrieval and Execution
- Location
references/performance-tweaks.md:546- Finding
Execution of Mutable Remote Python Code Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
/speedtest.py ``` 3. Verify a documented SHA-256 digest or cryptographic signature: ```bash printf '%s %s\n' '' speedtest.py | sha256sum --check ``` 4. Inspect the downloaded file before execution. 5. Execute it as an unprivileged user only after verification: ```bash python speedtest.py ``` Do not pipe network responses directly into an interpreter. ]]>
