Skip to content

feat(updater): harden auto-update security#17

Merged
apzuk3 merged 1 commit intomainfrom
fix/autoupdate-security-hardening
Mar 8, 2026
Merged

feat(updater): harden auto-update security#17
apzuk3 merged 1 commit intomainfrom
fix/autoupdate-security-hardening

Conversation

@apzuk3
Copy link
Contributor

@apzuk3 apzuk3 commented Mar 8, 2026

  • Add SHA256 checksum verification: download Focusd.zip.sha256 from release and verify ZIP integrity before extraction
  • Add code signature verification: codesign --verify --deep --strict plus TeamIdentifier check against AppleTeamID (injected via ldflags at build)
  • Cap download size at 200MB to prevent disk-fill DoS
  • Restrict HTTP redirects to github.com and objects.githubusercontent.com with max 3 redirects
  • Release workflow: generate and publish Focusd.zip.sha256, pass APPLE_TEAM_ID into binary for updater verification

Made-with: Cursor

- Add SHA256 checksum verification: download Focusd.zip.sha256 from release
  and verify ZIP integrity before extraction
- Add code signature verification: codesign --verify --deep --strict plus
  TeamIdentifier check against AppleTeamID (injected via ldflags at build)
- Cap download size at 200MB to prevent disk-fill DoS
- Restrict HTTP redirects to github.com and objects.githubusercontent.com
  with max 3 redirects
- Release workflow: generate and publish Focusd.zip.sha256, pass APPLE_TEAM_ID
  into binary for updater verification

Made-with: Cursor
@apzuk3 apzuk3 temporarily deployed to Production release March 8, 2026 10:38 — with GitHub Actions Inactive
@apzuk3 apzuk3 merged commit be74264 into main Mar 8, 2026
1 check passed
@apzuk3 apzuk3 deleted the fix/autoupdate-security-hardening branch March 8, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant