fix: remove fabricated SHA-256 hashes from SpeedTestService (SEC-001) - #349
Conversation
Remove placeholder PinnedHashWin64/PinnedHashWin32 constants that never matched real Ookla CLI downloads, causing perpetual warning logs and alert fatigue. Real attacks were indistinguishable from normal operation. Security now relies on: 1. Authenticode signature verification (checks Ookla subject in cert) 2. Zip structural integrity (must contain speedtest.exe) 3. SHA-256 logged for audit (but not compared against fake values) Closes #308
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR addresses security issue SEC-001 by removing fabricated placeholder SHA-256 hashes from SpeedTestService and shifting verification responsibility to Authenticode signature verification combined with zip structural validation. The implementation change removes hash enforcement logic while retaining audit logging, and the changelog documents this security posture update. ChangesSpeedTestService verification refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…#349) Remove placeholder PinnedHashWin64/PinnedHashWin32 constants that never matched real Ookla CLI downloads, causing perpetual warning logs and alert fatigue. Real attacks were indistinguishable from normal operation. Security now relies on: 1. Authenticode signature verification (checks Ookla subject in cert) 2. Zip structural integrity (must contain speedtest.exe) 3. SHA-256 logged for audit (but not compared against fake values) Closes #308 Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
Summary
Remove placeholder SHA-256 hash constants that never matched real Ookla CLI downloads, causing perpetual warning logs and alert fatigue.
Problem
PinnedHashWin64 and PinnedHashWin32 were fabricated values. Every download triggered a hash mismatch warning, making real attacks indistinguishable from normal operation.
Fix
Removed fake hash comparison. Security now relies on:
Testing
Closes #308
Summary by CodeRabbit