orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: Application blocked by Windows Smart App Control (SAC) due to missing digital signature

Open mantaroh opened this issue 5 months ago • 7 comments

Environment

  • OS: Windows 11 (23H2 / 24H2 or newer)
  • Feature enabled: Smart App Control (SAC)
  • App Version: v1.4.102 (Latest binary built on June 27, 2026)

Description

The Windows 11 desktop application (orca.exe) is being blocked immediately upon execution by Windows Smart App Control (SAC).

Since the binary does not possess a trusted digital signature (Code-Signing Certificate), Microsoft's cloud-based AI infrastructure automatically treats it as an untrusted or low-reputation application and prevents it from running completely.

Furthermore, because the file is deployed under AppData\Local\Programs\orca, Windows treats the issue strictly as an SAC cloud block rather than a simple download (ZoneID / Mark-of-the-Web) issue. As a result, the standard "Unblock" checkbox does not even appear in the file properties, meaning users cannot easily whitelist it without permanently turning off Smart App Control at the OS level.

Steps to Reproduce

  1. Enable Smart App Control on Windows 11.
  2. Download and install/extract the latest Windows .exe build of Orca.
  3. Attempt to launch orca.exe.
  4. Windows Security intercepts the process and throws a "Smart App Control blocked an app that may be unsafe" error message.

Temporary Workaround Found

During testing, we discovered a specific workaround that allows the app to launch without permanently disabling system security:

  1. Turn OFF Smart App Control in Windows Settings.
  2. Launch orca.exe at least once while SAC is disabled.
  3. Turn Smart App Control back ON and reboot the PC.
  4. After this sequence, Windows bypasses the block and allows orca.exe to run normally even with SAC active.

While this unblocks individual users who find this trick, it is a tedious process and most general users will simply be blocked and unable to use the app.


References & Additional Context

To support this report, here are official resources and examples from other prominent open-source projects facing the exact same block due to Windows 11 Smart App Control (SAC).

1. Official Microsoft Documentation on SAC

2. Mechanics of Cloud-Based Reputation

While unverified apps might gain reputation over time as telemetry data accumulates, each new binary release resets this reputation counter to zero. Relying on cloud-based trust accumulation is therefore unsustainable for active projects with frequent updates.

3. Prior Precedents in Other OSS & Developer Tools

This is a widespread issue for legitimate, unsigned open-source desktop applications:

mantaroh avatar Jun 27 '26 08:06 mantaroh

Diving into this issue.

Investigation Note:

After reviewing the release flow: Orca's Windows builds are already code-signed via SignPath Foundation. So it isn't strictly "no digital signature at all" — there are actually two separate problems stacked on top of each other.

1. Only the installer is signed; the extracted orca.exe is likely unsigned

The current release flow performs signing outside electron-builder:

  • electron-builder only packages with --publish never and does not actually sign anything (no signing certificate is provided to the Windows job).
  • The only file sent to SignPath is orca-windows-setup.exe (the NSIS installer wrapper), and the only thing verified afterward is that wrapper's signature.

This issue reports AppData\Local\Programs\orca\orca.exe being blocked — i.e. the extracted application executable, not the installer. Unless SignPath's artifact configuration is set to recursively sign the nested PE files inside the NSIS installer, the inner orca.exe (plus the uninstaller, elevate helper, etc.) ships unsigned. That matches the report exactly.

→ Fix: enable recursive PE signing in the SignPath artifact configuration, and add a CI step that verifies the inner exe's signature (no such gate exists today).

2. SignPath Foundation issues an OV certificate; SAC needs more than that

Even with the inner exe signed, SAC is unlikely to be satisfied. SAC trust is driven by Microsoft's Intelligent Security Graph (ISG) cloud reputation, and an OV certificate (what SignPath Foundation provides) does not auto-bypass SAC.

The key point: this issue's "reputation resets every release" concern only happens for unsigned binaries (reputation is keyed to the file hash). With a stable, trusted publisher identity, reputation accrues to the certificate and carries across releases.

→ Fix: move to a signing identity SAC trusts.

  • Azure Trusted Signing (recommended — CI-friendly, no hardware token, low cost, integrates with signtool)
  • or a traditional EV certificate

On the workaround

The documented workaround (turn SAC OFF → launch once → turn it back ON) just writes a local ISG cache entry on that machine — it's per-device and doesn't generalize to other users. The description is accurate.

Summary

  1. Enable nested signing so orca.exe itself is signed + verify it in CI (partial fix).
  2. Migrate to Azure Trusted Signing or an EV certificate (the real fix for SAC blocking).

mantaroh avatar Jun 27 '26 09:06 mantaroh

Proposed CI fix — sign the inner Orca.exe, not just the installer

This addresses the half of the problem where the extracted application executable ships unsigned (see investigation notes above). It does not by itself satisfy SAC — that still requires moving to a signing identity SAC trusts (Azure Trusted Signing / EV). This is the prerequisite cleanup.

Constraint

SignPath signs an uploaded artifact according to its server-side artifact configuration (github-actions-windows-installer). Today the release uploads only the outer NSIS wrapper (orca-windows-setup.exe) and verifies only that wrapper's signature. Unless the artifact configuration recurses into the installer, the embedded Orca.exe (the file SAC blocks under AppData\Local\Programs\orca) stays unsigned.

Two-part changes:

a. Part A — SignPath artifact configuration (dashboard, manual):

Update github-actions-windows-installer to recursively sign the nested PE files inside the NSIS installer (Orca.exe, embedded uninstaller stub, helper exes). SignPath supports recursive NSIS signing. This lives in the SignPath dashboard, not the repo, so it must be documented as a required step in the release workflow.

b. Part B — CI verification gate (.github/workflows/release-cut.yml):

Add a step after the existing "Verify signed Windows installer" that extracts Orca.exe from the signed installer and asserts it is Authenticode-signed by SignPath Foundation — so Part A can't silently regress.

# Why: SignPath only signs the outer NSIS wrapper unless its artifact
# configuration recurses into nested PE files. SAC blocks the *extracted*
# Orca.exe, so assert the inner binary is signed — fail the release if not.
- name: Verify signed inner application executable
  if: matrix.platform == 'win'
  shell: pwsh
  run: |
    $work = New-Item -ItemType Directory -Path inner-verify -Force
    7z x 'dist/orca-windows-setup.exe' "-o$($work.FullName)\lvl1" -y | Out-Null
    $nested = Get-ChildItem "$($work.FullName)\lvl1" -Recurse -Filter 'app-*.7z' |
      Select-Object -First 1
    if ($null -eq $nested) { throw 'Could not locate embedded app archive in installer.' }
    7z x $nested.FullName "-o$($work.FullName)\app" -y | Out-Null
    $exe = Get-ChildItem "$($work.FullName)\app" -Recurse -Filter 'Orca.exe' |
      Select-Object -First 1
    if ($null -eq $exe) { throw 'Could not locate Orca.exe inside the installer payload.' }
    $sig = Get-AuthenticodeSignature -FilePath $exe.FullName
    if ($sig.Status -ne 'Valid') {
      throw "Inner Orca.exe is not validly signed: $($sig | Format-List * | Out-String)"
    }
    if ($sig.SignerCertificate.Subject -notlike '*CN=SignPath Foundation*') {
      throw "Unexpected inner signer: $($sig.SignerCertificate.Subject)"
    }
     $sig.SignerCertificate | Format-List Subject,Issuer,Thumbprint

mantaroh avatar Jun 27 '26 09:06 mantaroh

A Note for the Maintainers

Since these changes directly impact your release pipeline, core deployment flow, and project infrastructure, I will defer entirely to the development team to make the final call on how to address this.

Whether you prefer to stick with SignPath and fix the nested artifact configuration, or eventually migrate the certificate identity toward Azure Trusted Signing / EV, the implementation choice is yours.

I wanted to provide these investigation notes and the verification script above to give you a solid foundation for whenever you decide to tackle this Windows 11 SAC friction.

Let me know if you need any clarification on the script or the findings! 🚀

mantaroh avatar Jun 27 '26 09:06 mantaroh

thanks for the detailed analysis! it's very helpful. @nwparker will look into this based on your notes

AmethystLiang avatar Jun 27 '26 09:06 AmethystLiang

Agent reproduction package (Windows orchestration 2026-07-16)

Host context: Windows 11 / Orca 1.4.143.0 / repo path used: docs/bug-reproductions/
Labels applied: see issue labels (has_repro or cannot_repro).
Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.


Issue 6487 — Blocked by Windows Smart App Control (SAC)

Status: needs_setup / treated as cannot_repro on this host until prerequisites land
Host: Windows 11, Orca 1.4.143
Label: cannot_repro (attempted; blocked)

What we tried

Machine SAC policy unknown; no blocked install event reproduced. Signing/Authenticode issue is environment-specific.

What is needed Machine with SAC enforcement; attempt install of unsigned/oddly-signed build; capture Smart App Control event + signature details of Orca.exe (Get-AuthenticodeSignature).

Machine with SAC enforcement; attempt install of unsigned/oddly-signed build; capture Smart App Control event + signature details of Orca.exe (Get-AuthenticodeSignature).

Notes

  • Docs live under docs/bug-reproductions/. Re-run once prerequisites exist.
  • Security: do not run untrusted issue attachments.

How another agent should use this

  1. Read this comment fully (status, expected vs actual, blockers).
  2. If a script is included above, copy it to a temp file and run it on a Windows 11 host with Orca installed (prefer production install under %LOCALAPPDATA%\Programs\orca).
  3. Capture evidence (CLI --json, screenshots, logs) under a local folder; optionally comment results back here.
  4. If status is cannot_repro / needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: remove cannot_repro, add has_repro when conclusive.

OrcaWin avatar Jul 17 '26 00:07 OrcaWin

@mantaroh did you notice this happening again in the past month? :-D

AmethystLiang avatar Jul 23 '26 18:07 AmethystLiang

Grouped under #23999, a tracking issue that sorts every antivirus/EDR report against Orca by root cause (unsigned inner binaries, relay.js script heuristics, our own PowerShell spawn shapes, certificate reputation gates, macOS endpoint agents). This issue stays open on its own merits — the tracker is for routing new reports and for not fixing the same cause five times.

nwparker avatar Sep 30 '26 04:09 nwparker