T03 · Remote Payload Retrieval and Execution
- Location
references/tools-guide.md:131- Finding
Unverified Remote PowerShell Installers Are Downloaded and Executed
- Content
View full analysis
- Remediation
View remediation
" -OutFile "./installer.ps1" ``` 4. Publish and require verification of a trusted SHA-256 checksum: ```powershell Get-FileHash "./installer.ps1" -Algorithm SHA256 ``` 5. Where applicable, require validation of the vendor's Authenticode signature: ```powershell Get-AuthenticodeSignature "./installer.ps1" ``` 6. Tell users to inspect the downloaded script before execution. 7. Run installation with the least-privileged account possible and only request elevation if a documented installation step requires it. 8. Prefer signed package-manager distributions with pinned package names and versions. ]]>
