T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:42- Finding
Unverified Mutable Executable Download and System-Wide Installation
- Content
View full analysis
- Remediation
View remediation
/pz_linux_amd64.tar.gz" ``` 6. Verify the checksum or signature before processing the archive. 7. Inspect archive entries with `tar -tzf` and reject absolute paths, `..` traversal components, unexpected links, and files other than the expected executable. 8. Extract into an isolated temporary directory with restrictive permissions. 9. Install to a user-owned directory such as `~/.local/bin` where possible, avoiding `sudo`. 10. If system-wide installation is required, perform all verification before elevation and use elevation only for the final copy of the validated executable. 11. Document the expected publisher, version, checksum, signature-verification procedure, and supported architecture. 12. Consider distributing the Linux package through a package manager that supports pinned versions and authenticated repository metadata. ]]>
