Idea: Authenticode signing for the Windows builder and launcher, separate from signed release manifests #46

Open
opened 2026-11-12 23:57:25 +00:00 by mooki · 4 comments
Member

The idea

Give Longshot's distributed Windows programs a verified publisher identity, to reduce unknown-publisher warnings and help with antivirus false alarms. This is Windows Authenticode signing, not a replacement for the signed-release design already proposed on the forge. Signing is useful, but it cannot promise that Defender, SmartScreen or another antivirus will accept every new file.

What the forge's signing already proposes

Longshot PR 13 and LongshotLauncher PR 1 are open. They sign release metadata and channel pointers with project-controlled ECDSA P-256/SHA-256 keys:

  • longshot-release.json names the release's product, version and files, with sizes and SHA-256 hashes. For the builder, the signed parts list in turn names each part by its hash.
  • Signed stable, rc and nightly pointers identify the offered release. The launcher checks the product, channel, signature and remembered channel serial, and checks downloaded bytes against the authenticated hashes.
  • The nightly key may sign nightlies only; the release key signs stable and rc and may be kept offline. This authenticates release content to a launcher that already trusts those public keys and rejects older channel serials it has seen.

That does not put an Authenticode signature in a Windows EXE, establish a Windows-trusted publisher identity, attest that the build faithfully used its named source, or transfer SmartScreen reputation to it. The launcher must itself be obtained and trusted first. At the inspected heads, the built-in release-key lists are still empty; these are proposed release mechanisms, not a claim that signed Longshot releases are already shipping.

The launcher has already recognized the remaining problem: its README explicitly lists Authenticode as planned. Its packaging recipe builds the Windows EXE but does not code-sign it. The ask here is therefore to agree the identity, signing service and coverage for that planned work, including the builder/setup programs delivered by Longshot, rather than propose another manifest format.

What can be prepared

  1. Agree the binaries and publisher. Cover the launcher EXE and the project's Windows setup/builder binaries, including the setup repackaged as LongshotBuilder.exe for RecompLauncher. Inventory third-party components separately; do not sign someone else's binaries as our own.
  2. Complete and version the setup's resources. Current builder/setup/setup.rc has numeric FILEVERSION and PRODUCTVERSION both fixed at 1.0.0.0, a FileVersion string of 1.0.0, no ProductVersion string or copyright string, and OriginalFilename=LongshotBuilder-Setup.exe. PR 13 also distributes that setup as LongshotBuilder.exe. Tie the versions to the release and choose consistent metadata for the distributed names. The numeric product version exists; it is the string and release-specific values that are missing.
  3. Integrate the chosen service into the Forgejo release paths. Sign and timestamp the final Windows binaries before making the package/parts hashes and signed release manifests. Signing afterwards would change the bytes the launcher verifies. Keep private keys and service credentials outside PR jobs and the repository.
  4. Make signing-required releases fail closed. Once a product/channel is meant to be code-signed, a missing signature, wrong publisher or failed signature verification must stop its publication. Test the signed programs on Windows; successful cross-compilation is not that test.
  5. Update the download guidance and signing policy. Explain the two signature layers, the expected publisher, how to verify a download, and how to submit an incorrect malware detection to Microsoft. Do not tell players that the project-key manifest signature is a Windows certificate or a guarantee that a program is harmless.

Options, not a decision for the maintainers

Microsoft's signing comparison currently gives these approximate costs; they are published estimates, not a quote for this team:

Route Cost Conditions to resolve
SignPath Foundation Free for accepted open-source projects The publisher is SignPath Foundation. Acceptance, verifiable automated builds, repository control and manual release approval matter; confirm the Forgejo integration and which binaries qualify.
Azure Artifact Signing About USD 9.99/month Identity verification; currently organizations in the USA, Canada, EU and UK, and individuals in the USA and Canada. Confirm the team's eligibility.
OV certificate Typically USD 150–300/year CA identity verification and a hardware token or cloud HSM for the key.
EV certificate USD 400/year and up No longer buys an immediate SmartScreen bypass; no reason to pay the premium solely for that.

SignPath's conditions also call for consistent product names/versions, an explicit Code signing policy naming committers/reviewers/approvers, a privacy statement, MFA, an uninstall route, and eligible open-source components. Whether Longshot and its Forgejo builds meet those conditions is for SignPath and the maintainers to settle. Hookshot's old application discussion is not confirmation of an application or approval for the new team and repositories.

Anything else

Microsoft's SmartScreen guidance distinguishes file-hash reputation from publisher reputation. A consistent trusted signing identity lets reputation accumulate across releases, but a newly signed file can still warn. Self-signed certificates do not establish public trust, and EV certificates no longer skip this process. Malware classification is a separate question; a false-positive submission is not a request to switch off SmartScreen.

The locally compiled longshot.exe is another boundary: signing the distributed builder or launcher does not sign each player's game. Smart App Control can block unsigned programs without positive reputation, including locally built ones. The docs should explain that limit separately, not promise that signing the launcher fixes it or recommend disabling security as a general remedy.

Nothing here was tested on Windows or against an antivirus. The old Hookshot executable's size, hash, unsigned status and release/issue counts are not measurements of Longshot and are not being carried over as current evidence.

Two questions:

  1. Has SignPath answered the earlier application, and would it cover Longshot's new maintainers and Forgejo repositories, or is a new application/service decision needed?
  2. Would you like the metadata, release integration, verification and policy preparation now, coordinated with the launcher's already planned Authenticode work, or only after the signing route is chosen?

Who signs remains the maintainers' decision: it carries a legal identity, costs money or approval time, and can be revoked. I can offer the repository-side preparation once that scope is agreed.


Moved from NotRexed/Hookshot#2919.

### The idea Give Longshot's distributed Windows programs a verified publisher identity, to reduce unknown-publisher warnings and help with antivirus false alarms. This is **Windows Authenticode signing**, not a replacement for the signed-release design already proposed on the forge. Signing is useful, but it cannot promise that Defender, SmartScreen or another antivirus will accept every new file. #### What the forge's signing already proposes [Longshot PR 13](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/13) and [LongshotLauncher PR 1](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/1) are open. They sign **release metadata and channel pointers** with project-controlled ECDSA P-256/SHA-256 keys: - `longshot-release.json` names the release's product, version and files, with sizes and SHA-256 hashes. For the builder, the signed parts list in turn names each part by its hash. - Signed `stable`, `rc` and `nightly` pointers identify the offered release. The launcher checks the product, channel, signature and remembered channel serial, and checks downloaded bytes against the authenticated hashes. - The nightly key may sign nightlies only; the release key signs stable and rc and may be kept offline. This authenticates release content to a launcher that already trusts those public keys and rejects older channel serials it has seen. That does **not** put an Authenticode signature in a Windows EXE, establish a Windows-trusted publisher identity, attest that the build faithfully used its named source, or transfer SmartScreen reputation to it. The launcher must itself be obtained and trusted first. At the inspected heads, the built-in release-key lists are still empty; these are proposed release mechanisms, not a claim that signed Longshot releases are already shipping. The launcher has already recognized the remaining problem: its [README](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/src/commit/1bac9380122026887d123300a921e1508ba2c461/README.md#planned-next) explicitly lists **Authenticode** as planned. Its packaging recipe builds the Windows EXE but does not code-sign it. The ask here is therefore to agree the identity, signing service and coverage for that planned work, including the builder/setup programs delivered by Longshot, rather than propose another manifest format. #### What can be prepared 1. **Agree the binaries and publisher.** Cover the launcher EXE and the project's Windows setup/builder binaries, including the setup repackaged as `LongshotBuilder.exe` for RecompLauncher. Inventory third-party components separately; do not sign someone else's binaries as our own. 2. **Complete and version the setup's resources.** Current `builder/setup/setup.rc` has numeric `FILEVERSION` and `PRODUCTVERSION` both fixed at `1.0.0.0`, a `FileVersion` string of `1.0.0`, no `ProductVersion` string or copyright string, and `OriginalFilename=LongshotBuilder-Setup.exe`. PR 13 also distributes that setup as `LongshotBuilder.exe`. Tie the versions to the release and choose consistent metadata for the distributed names. The numeric product version exists; it is the string and release-specific values that are missing. 3. **Integrate the chosen service into the Forgejo release paths.** Sign and timestamp the final Windows binaries **before** making the package/parts hashes and signed release manifests. Signing afterwards would change the bytes the launcher verifies. Keep private keys and service credentials outside PR jobs and the repository. 4. **Make signing-required releases fail closed.** Once a product/channel is meant to be code-signed, a missing signature, wrong publisher or failed signature verification must stop its publication. Test the signed programs on Windows; successful cross-compilation is not that test. 5. **Update the download guidance and signing policy.** Explain the two signature layers, the expected publisher, how to verify a download, and how to submit an incorrect malware detection to [Microsoft](https://www.microsoft.com/en-us/wdsi/filesubmission). Do not tell players that the project-key manifest signature is a Windows certificate or a guarantee that a program is harmless. #### Options, not a decision for the maintainers [Microsoft's signing comparison](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/code-signing-options) currently gives these approximate costs; they are published estimates, not a quote for this team: | Route | Cost | Conditions to resolve | |---|---|---| | [SignPath Foundation](https://signpath.org/terms.html) | Free for accepted open-source projects | The publisher is SignPath Foundation. Acceptance, verifiable automated builds, repository control and manual release approval matter; confirm the Forgejo integration and which binaries qualify. | | Azure Artifact Signing | About USD 9.99/month | Identity verification; currently organizations in the USA, Canada, EU and UK, and individuals in the USA and Canada. Confirm the team's eligibility. | | OV certificate | Typically USD 150–300/year | CA identity verification and a hardware token or cloud HSM for the key. | | EV certificate | USD 400/year and up | No longer buys an immediate SmartScreen bypass; no reason to pay the premium solely for that. | SignPath's conditions also call for consistent product names/versions, an explicit **Code signing policy** naming committers/reviewers/approvers, a privacy statement, MFA, an uninstall route, and eligible open-source components. Whether Longshot and its Forgejo builds meet those conditions is for SignPath and the maintainers to settle. Hookshot's [old application discussion](https://github.com/NotRexed/Hookshot/issues/525) is not confirmation of an application or approval for the new team and repositories. ### Anything else [Microsoft's SmartScreen guidance](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/smartscreen-reputation) distinguishes file-hash reputation from publisher reputation. A consistent trusted signing identity lets reputation accumulate across releases, but a newly signed file can still warn. Self-signed certificates do not establish public trust, and EV certificates no longer skip this process. Malware classification is a separate question; a false-positive submission is not a request to switch off SmartScreen. The locally compiled `longshot.exe` is another boundary: signing the distributed builder or launcher does not sign each player's game. Smart App Control can block unsigned programs without positive reputation, including locally built ones. The docs should explain that limit separately, not promise that signing the launcher fixes it or recommend disabling security as a general remedy. Nothing here was tested on Windows or against an antivirus. The old Hookshot executable's size, hash, unsigned status and release/issue counts are not measurements of Longshot and are not being carried over as current evidence. Two questions: 1. Has SignPath answered the earlier application, and would it cover Longshot's new maintainers and Forgejo repositories, or is a new application/service decision needed? 2. Would you like the metadata, release integration, verification and policy preparation now, coordinated with the launcher's already planned Authenticode work, or only after the signing route is chosen? Who signs remains the maintainers' decision: it carries a legal identity, costs money or approval time, and can be revoked. I can offer the repository-side preparation once that scope is agreed. --- Moved from NotRexed/Hookshot#2919.
Author
Member

The release rework is now merged in Longshot #13 and LongshotLauncher #1. It uses one P-256 key over SHA256SUMS, not the earlier manifest/channel-pointer design. The public key is present. That authenticates release downloads to the launcher; it does not give a Windows EXE a verified publisher.

The repository-side first slice is pull request 98 (work in progress): optional signing of the compiled setup and the WPF builder apphost before packaging, followed by verification of Windows trust, the selected certificate and a timestamp. The setup's top-level LongshotBuilder.exe and Repair copy retain the same signed bytes. No third-party tools are re-signed. With no certificate configured, the log says not signed: no certificate configured and the build remains unsigned. PRs never enter the signing step.

The decisions that remain with maintainers are:

  1. Buy/apply now, or stay explicitly unsigned? The optional step changes no default. Once a channel promises signed Windows files, missing configuration must also stop publication; which channels should carry that promise?

  2. Which identity and service? These are estimates, not quotes:

    Option Estimated cost What needs deciding
    Ordinary OV certificate USD 150–300/year the legal publisher, CA and token/HSM or cloud arrangement; hardware/service charges may be extra
    EV certificate USD 400/year and up whether stricter identity validation is useful; it no longer buys a SmartScreen bypass
    Azure Artifact Signing about USD 9.99/month eligibility, project account and service-specific integration
    SignPath Foundation free if accepted a Longshot/Forgejo application and verifiable-build/manual-approval requirements; the publisher would be SignPath Foundation
    Stay unsigned for now no certificate charge retain explicit unknown-publisher/trust limits rather than claiming manifest signing solves them

    Sources: Microsoft's comparison, current Artifact Signing prerequisites, and SignPath's conditions. Microsoft's comparison and service quickstart currently disagree on the list of eligible organization regions, so eligibility should be checked directly. No SignPath acceptance for Longshot is assumed.

  3. Who holds and approves it? Please choose the legal certificate/account holder, a backup custodian, release approvers, budget owner and renewal/revocation contact. Both OV and EV now need suitable protected keys; the CA/Browser Forum rules permit approved hardware or qualifying cloud/signing services, not an ordinary exportable-key procurement plan. The prepared route selects a certificate already available through Windows' certificate store; it does not export a private key or implement Azure/SignPath APIs. A signing runner and its provider must deny PR workloads independently of workflow labels. Do not provision an identity on a general PR runner.

  4. Coverage and metadata policy. The launcher is built in its own repository, from one Windows program copied into setup and portable forms; it still needs its own signing integration. The setup's fixed 1.0.0 resources and missing ProductVersion/copyright strings need release-specific values and an agreed publisher. Which publisher should both products display?

Evidence so far: 12 signing decision/command/failure tests pass. An actual Linux stand-in signed a 1,536-byte authored PE with a temporary self-signed certificate (3,472 bytes after signing), verified its embedded signature and all three package paths with that certificate explicitly trusted for the test, and rejected a modified code section. It also checked the final zip's release checksum. The temporary keys were removed; no trust store was changed. This proves mechanics, not publisher trust. Windows PowerShell, a hardware/cloud provider, the timestamp server, SmartScreen/Defender behaviour and a real release workflow have not been exercised.

Microsoft's SmartScreen guidance still warns that new signed files can prompt. Signing these distributed tools also does not sign a player's locally compiled game. None of this recommends disabling security protection.

The release rework is now merged in [Longshot #13](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/13) and [LongshotLauncher #1](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/1). It uses one P-256 key over `SHA256SUMS`, not the earlier manifest/channel-pointer design. The public key is present. That authenticates release downloads to the launcher; it does not give a Windows EXE a verified publisher. The repository-side first slice is [pull request 98](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/98) (work in progress): optional signing of the compiled setup and the WPF builder apphost before packaging, followed by verification of Windows trust, the selected certificate and a timestamp. The setup's top-level `LongshotBuilder.exe` and Repair copy retain the same signed bytes. No third-party tools are re-signed. With no certificate configured, the log says `not signed: no certificate configured` and the build remains unsigned. PRs never enter the signing step. The decisions that remain with maintainers are: 1. **Buy/apply now, or stay explicitly unsigned?** The optional step changes no default. Once a channel promises signed Windows files, missing configuration must also stop publication; which channels should carry that promise? 2. **Which identity and service?** These are estimates, not quotes: | Option | Estimated cost | What needs deciding | |---|---|---| | Ordinary OV certificate | USD 150–300/year | the legal publisher, CA and token/HSM or cloud arrangement; hardware/service charges may be extra | | EV certificate | USD 400/year and up | whether stricter identity validation is useful; it no longer buys a SmartScreen bypass | | Azure Artifact Signing | about USD 9.99/month | eligibility, project account and service-specific integration | | SignPath Foundation | free if accepted | a Longshot/Forgejo application and verifiable-build/manual-approval requirements; the publisher would be SignPath Foundation | | Stay unsigned for now | no certificate charge | retain explicit unknown-publisher/trust limits rather than claiming manifest signing solves them | Sources: [Microsoft's comparison](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/code-signing-options), [current Artifact Signing prerequisites](https://learn.microsoft.com/en-us/azure/artifact-signing/quickstart#prerequisites), and [SignPath's conditions](https://signpath.org/terms.html). Microsoft's comparison and service quickstart currently disagree on the list of eligible organization regions, so eligibility should be checked directly. No SignPath acceptance for Longshot is assumed. 3. **Who holds and approves it?** Please choose the legal certificate/account holder, a backup custodian, release approvers, budget owner and renewal/revocation contact. Both OV and EV now need suitable protected keys; [the CA/Browser Forum rules](https://cabforum.org/working-groups/code-signing/requirements/) permit approved hardware or qualifying cloud/signing services, not an ordinary exportable-key procurement plan. The prepared route selects a certificate already available through Windows' certificate store; it does not export a private key or implement Azure/SignPath APIs. A signing runner and its provider must deny PR workloads independently of workflow labels. Do not provision an identity on a general PR runner. 4. **Coverage and metadata policy.** The launcher is built in its own repository, from one Windows program copied into setup and portable forms; it still needs its own signing integration. The setup's fixed `1.0.0` resources and missing `ProductVersion`/copyright strings need release-specific values and an agreed publisher. Which publisher should both products display? Evidence so far: 12 signing decision/command/failure tests pass. An actual **Linux stand-in** signed a 1,536-byte authored PE with a temporary self-signed certificate (3,472 bytes after signing), verified its embedded signature and all three package paths with that certificate explicitly trusted for the test, and rejected a modified code section. It also checked the final zip's release checksum. The temporary keys were removed; no trust store was changed. This proves mechanics, **not publisher trust**. Windows PowerShell, a hardware/cloud provider, the timestamp server, SmartScreen/Defender behaviour and a real release workflow have not been exercised. [Microsoft's SmartScreen guidance](https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/smartscreen-reputation) still warns that new signed files can prompt. Signing these distributed tools also does not sign a player's locally compiled game. None of this recommends disabling security protection.
Contributor

Evidence for this from one Windows 11 PC: Microsoft Defender's own detection history (Get-MpThreatDetection), Nov 7-10, for Hookshot files from GitHub. Defender engine 1.1.26100.4, signatures 1.463.271.0, real-time and cloud protection on (MAPS advanced), tamper protection on. A person downloading the releases, not a lab.

File Downloads What Defender called it
HookshotBuilder.exe, the setup (about 180 KB, unsigned, 5 different release builds) 7 detections Trojan:Win32/Wacatac.B!ml (x2), Wacatac.H!ml, Wacatac.C!ml, Sabsik.EN.A!ml, Sabsik.FL.A!ml, Trojan:Win32/Cloxer
HookshotBuilder.zip (release asset) 3 Trojan:Script/Sabsik.EN.A!ml
source zips from GitHub's tag download (v2.0.7, ultrawide) 2 Trojan:Script/Sabsik.FL.A!ml, Trojan:Script/Wacatac.H!ml
the game's hookshot.exe built on this PC by the Builder, in its build folder and in the installed game 2 Program:Win32/Contebrew.A!ml

What this says:

  • All but one are !ml: cloud machine-learning verdicts, not a signature matching some code in the file. And the same program gets a different family name from one release to the next (Wacatac B, H, C, then Sabsik EN, FL). That is what a reputation call on a new, unsigned, never-seen-before file looks like: every release is a new hash with no prevalence, so it starts from zero each time.
  • The setup does carry version info (company "Hookshot", product "Hookshot Builder", description "Hookshot Builder setup", version 1.0.0), so missing metadata isn't the trigger. It is unsigned (NotSigned), as is the installed HookshotBuilder.exe.
  • Even the source-code zips were flagged (Script/ detections), so it isn't only the setup's own behaviour (downloading and starting the Builder).
  • The game exe built on the player's PC is flagged too (Program:...!ml, a potentially-unwanted-program class). Authenticode on release files can't cover this one: it is compiled locally and never signed. That deserves its own row: a player whose build is quarantined sees "the game doesn't start" or a missing exe, not a download warning.

So signing (#98) is the right main fix: a stable publisher identity carries reputation across releases, where today every new hash starts over. Two cheaper things help meanwhile:

  1. Submit each release's files to Microsoft as the software developer (Microsoft Security Intelligence's file submission, "Software developer" / incorrect detection). It clears that hash for everyone, usually within a day or two. It has to come from whoever publishes the release.
  2. Ship the setup, not a zip of scripts, where there's a choice: the Script/ verdicts hit the zips.

I can re-run this on a Longshot release or a signed test build here when there is one (Defender on, downloaded through the browser, the detection read back the same way).

Evidence for this from one Windows 11 PC: Microsoft Defender's own detection history (`Get-MpThreatDetection`), Nov 7-10, for Hookshot files from GitHub. Defender engine 1.1.26100.4, signatures 1.463.271.0, real-time and cloud protection on (MAPS advanced), tamper protection on. A person downloading the releases, not a lab. | File | Downloads | What Defender called it | |---|---|---| | `HookshotBuilder.exe`, the setup (about 180 KB, unsigned, 5 different release builds) | 7 detections | `Trojan:Win32/Wacatac.B!ml` (x2), `Wacatac.H!ml`, `Wacatac.C!ml`, `Sabsik.EN.A!ml`, `Sabsik.FL.A!ml`, `Trojan:Win32/Cloxer` | | `HookshotBuilder.zip` (release asset) | 3 | `Trojan:Script/Sabsik.EN.A!ml` | | source zips from GitHub's tag download (`v2.0.7`, `ultrawide`) | 2 | `Trojan:Script/Sabsik.FL.A!ml`, `Trojan:Script/Wacatac.H!ml` | | the game's `hookshot.exe` **built on this PC by the Builder**, in its build folder and in the installed game | 2 | `Program:Win32/Contebrew.A!ml` | What this says: - **All but one are `!ml`**: cloud machine-learning verdicts, not a signature matching some code in the file. And the same program gets a different family name from one release to the next (Wacatac B, H, C, then Sabsik EN, FL). That is what a reputation call on a new, unsigned, never-seen-before file looks like: every release is a new hash with no prevalence, so it starts from zero each time. - **The setup does carry version info** (company "Hookshot", product "Hookshot Builder", description "Hookshot Builder setup", version 1.0.0), so missing metadata isn't the trigger. It is unsigned (`NotSigned`), as is the installed `HookshotBuilder.exe`. - **Even the source-code zips were flagged** (`Script/` detections), so it isn't only the setup's own behaviour (downloading and starting the Builder). - **The game exe built on the player's PC is flagged too** (`Program:...!ml`, a potentially-unwanted-program class). Authenticode on release files can't cover this one: it is compiled locally and never signed. That deserves its own row: a player whose build is quarantined sees "the game doesn't start" or a missing exe, not a download warning. So signing (#98) is the right main fix: a stable publisher identity carries reputation across releases, where today every new hash starts over. Two cheaper things help meanwhile: 1. **Submit each release's files to Microsoft as the software developer** (Microsoft Security Intelligence's file submission, "Software developer" / incorrect detection). It clears that hash for everyone, usually within a day or two. It has to come from whoever publishes the release. 2. **Ship the setup, not a zip of scripts**, where there's a choice: the `Script/` verdicts hit the zips. I can re-run this on a Longshot release or a signed test build here when there is one (Defender on, downloaded through the browser, the detection read back the same way).
Contributor

Follow-up: I tried to reproduce the detections on Longshot's own setup, and looked at what free signing exists. Same Windows 11 PC, Defender as before.

What I built and checked: LongshotBuilder-Setup.exe from main @ 316f9319, with build-windows.yml's own windres and clang commands, in two copies:

  • unsigned;
  • self-signed with a throwaway certificate: Set-AuthenticodeSignature, SHA-256, DigiCert timestamp. Windows reads it as UnknownError, an untrusted root, as expected.

Both were marked as downloads (Zone.Identifier, ZoneId 3). Each then went through two checks:

  1. An on-demand scan: MpCmdRun -Scan -ScanType 3 -File ... -DisableRemediation, report only.
  2. Windows' download check, the way browsers run it: IAttachmentExecute::Save() with a release download URL as its source. This is the call behind the webfile: entries in the history I posted.
unsigned self-signed
on-demand scan no threats no threats
download check (Save()) S_OK, nothing in Defender's history S_OK, nothing in Defender's history

The Hookshot setups that were flagged are 5 files, still on this PC after the player's allow. They now scan clean on demand too.

What this suggests:

  • The verdicts are made at download time and don't last. Every flagged file was flagged as a browser download (webfile:, cloud "first sight"). The same files pass days later, so their reputation has built up. A fresh build checked locally doesn't trip it either, so nobody can reproduce or test the false positive before release. The time it bites is the first hours after a release, when many people download a brand-new hash.
  • A self-signed signature changes nothing visible. Windows calls it untrusted, and SmartScreen gives no credit for an untrusted publisher. It is no stand-in for #98.
  • Submitting to Microsoft right after each release clears the window when it bites, until signing is in place. It costs nothing and needs only whoever publishes the release.

Free or cheap certificates, for whoever decides:

Option Cost Catch
SignPath Foundation free for OSI-licensed projects Only free option I found. The project applies. The certificate names SignPath Foundation as the publisher, not Longshot. Release signing must run from automated CI with origin verification, and each request is approved by hand. SignPath documents AppVeyor, GitHub and a generic REST route (build system integration). I found nothing on Forgejo Actions; worth asking them before applying, now that releases build on Forgejo. Hookshot's application was NotRexed's and doesn't carry over.
Certum Open Source Code Signing about €49/year (cloud) or €69 (card and reader) Issued to a named person; a cloud key fits #98's PKCS#11 path.
Microsoft Artifact Signing (was Trusted Signing) monthly fee Identity validation; eligibility for individuals varies by country.

Let's Encrypt doesn't issue code-signing certificates, and Sigstore signatures aren't Authenticode, so neither helps Defender or SmartScreen.

When a signed test build exists, I'll run it through the same two checks, and through a real browser download, here.

Follow-up: I tried to reproduce the detections on Longshot's own setup, and looked at what free signing exists. Same Windows 11 PC, Defender as before. **What I built and checked:** `LongshotBuilder-Setup.exe` from main @ 316f9319, with `build-windows.yml`'s own windres and clang commands, in two copies: - **unsigned**; - **self-signed** with a throwaway certificate: `Set-AuthenticodeSignature`, SHA-256, DigiCert timestamp. Windows reads it as `UnknownError`, an untrusted root, as expected. Both were marked as downloads (`Zone.Identifier`, ZoneId 3). Each then went through two checks: 1. **An on-demand scan:** `MpCmdRun -Scan -ScanType 3 -File ... -DisableRemediation`, report only. 2. **Windows' download check, the way browsers run it:** `IAttachmentExecute::Save()` with a release download URL as its source. This is the call behind the `webfile:` entries in the history I posted. | | unsigned | self-signed | |---|---|---| | on-demand scan | no threats | no threats | | download check (`Save()`) | S_OK, nothing in Defender's history | S_OK, nothing in Defender's history | **The Hookshot setups that were flagged** are 5 files, still on this PC after the player's allow. They now scan clean on demand too. What this suggests: - **The verdicts are made at download time and don't last.** Every flagged file was flagged as a browser download (`webfile:`, cloud "first sight"). The same files pass days later, so their reputation has built up. A fresh build checked locally doesn't trip it either, so nobody can reproduce or test the false positive before release. The time it bites is the first hours after a release, when many people download a brand-new hash. - **A self-signed signature changes nothing visible.** Windows calls it untrusted, and SmartScreen gives no credit for an untrusted publisher. It is no stand-in for #98. - **Submitting to Microsoft right after each release** clears the window when it bites, until signing is in place. It costs nothing and needs only whoever publishes the release. **Free or cheap certificates, for whoever decides:** | Option | Cost | Catch | |---|---|---| | [SignPath Foundation](https://signpath.org/) | free for OSI-licensed projects | Only free option I found. The project applies. The certificate names SignPath Foundation as the publisher, not Longshot. Release signing must run from automated CI with origin verification, and each request is approved by hand. SignPath documents AppVeyor, GitHub and a generic REST route ([build system integration](https://about.signpath.io/documentation/build-system-integration)). I found nothing on Forgejo Actions; worth asking them before applying, now that releases build on Forgejo. Hookshot's application was NotRexed's and doesn't carry over. | | [Certum Open Source Code Signing](https://shop.certum.eu/open-source-code-signing-on-simplysign.html) | about €49/year (cloud) or €69 (card and reader) | Issued to a named person; a cloud key fits #98's PKCS#11 path. | | [Microsoft Artifact Signing](https://azure.microsoft.com/pricing/details/artifact-signing/) (was Trusted Signing) | monthly fee | Identity validation; eligibility for individuals varies by country. | Let's Encrypt doesn't issue code-signing certificates, and Sigstore signatures aren't Authenticode, so neither helps Defender or SmartScreen. When a signed test build exists, I'll run it through the same two checks, and through a real browser download, here.
Member

From MagicBeanDev/LongshotLauncher#419 (closed as a duplicate of this one):

Launcher-specific follow-up to the same proposal: also enforce channel-specific keys for launcher self-updates, document key rotation so a launcher trusting both keys ships before retiring the old key, and decide who may merge to main or manually start releases.

From MagicBeanDev/LongshotLauncher#419 (closed as a duplicate of this one): Launcher-specific follow-up to the same proposal: also enforce channel-specific keys for launcher self-updates, document key rotation so a launcher trusting both keys ships before retiring the old key, and decide who may merge to main or manually start releases.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#46
No description provided.