T08 · Insecure Dependencies
- Location
assets/bootstrap.sh:68- Finding
Platform-Native Signature Verification Is Disabled for Downloaded Executables
- Content
View full analysis
&2 exit 9 fi ``` ```sh if [ "$(uname -s)" = "Darwin" ] && [ "$native_signature_status" = "verified" ]; then codesign --verify --deep --strict --verbose=2 "$candidate" spctl --assess --type execute --verbose=2 "$candidate" actual_identity="$(codesign -dv --verbose=4 "$candidate" 2>&1 | sed -n 's/^Authority=//p' | head -1)" if [ -z "$native_identity" ] || [ "$actual_identity" != "$native_identity" ]; then echo "Apple signing identity mismatch." >&2 exit 6 fi fi ``` Windows bootstrap: ```powershell $nativeSignatureRequired = $false if ($nativeSignatureRequired -and "deferred-founder-approved" -ne "verified") { [Console]::Error.WriteLine('{"schema_version":"1","ok":false,"error":{"code":"NATIVE_SIGNATURE_REQUIRED","message":"This release candidate has not completed Authenticode signing.","retryable":false,"action":"use_verified_release"},"request_id":"bootstrap-local"}') exit 9 } ``` ```powershell if ("deferred-founder-approved" -eq "verified") { $signature = Get-AuthenticodeSignature -LiteralPath $candidate if ($signature.Status -ne "Valid" -or $signature.SignerCertificate.Thumbprint -ne "") { throw "Authenticode verification failed" } ...[truncated 2353 chars]- Remediation
View remediation
