Skip to main content
This page is for security reviews. It says what Bach trusts, what it doesn’t, and what it can’t protect against yet. The practical rules are in Safety rules.

Who is trusted for what

What is protected

  • Users’ files: see Safety rules.
  • Developers’ secrets: builds stop on files that look like secrets.
  • Updates: https only, checksum, app id and version checks. With public_key, signed feeds; with signer, an Authenticode check of the downloaded file.
  • Access keys: sent only to the host they’re meant for, redirects followed without them, stored protected for the Windows user.
  • Administrator rights: requested only when configured; machine-wide folders are checked before anything runs elevated.

Known gaps

  • Without [updates] public_key or signer, whoever controls the feed host can point users to a different file with a matching checksum.
  • A feed signing key can’t be revoked remotely. You can replace it in two releases.
  • uninstall.exe is written on the user’s computer and isn’t signed.
  • A run step with elevated = true runs a file from the install folder with administrator rights. Keep it to well-known, signed installers.
  • Antivirus software may flag unsigned setup files. See Antivirus warnings.

Out of scope

  • A developer who builds a malicious app.
  • An attacker who is already an administrator on the computer.
  • The security of your app itself after installation.