T08 · Insecure Dependencies
- Location
references/install-and-auth.md:43- Finding
Unverified Windows Binary Download and Execution
- Content
View full analysis
- Remediation
View remediation
" Invoke-WebRequest ` -Uri "https://github.com/loonghao/fpt-cli/releases/download/$FptVersion/$Archive" ` -OutFile $Archive $ActualSha256 = (Get-FileHash -Algorithm SHA256 -Path $Archive).Hash.ToLowerInvariant() if ($ActualSha256 -ne $ExpectedSha256.ToLowerInvariant()) { Remove-Item -Force $Archive throw "fpt-cli archive checksum verification failed" } # Extract, install, and execute only after successful verification. ``` ]]>
