Skip to content

Windows: MSI Installer blocked by Smart App Control #3130

Closed

Description

@infeo

Please agree to the following

Summary

I am unable to install Cryptomator with the MSI, because it is blocked by Smart App Control.

What software is involved?

  • Operating System: Windows 11
  • Cryptomator: 1.10.1

Volume Type

None

Steps to Reproduce

Prerequisites: Smart App must be turned on.

  1. Run Cryptomator msi installer

Expected Behavior

Welcome screen of installer is shown and user is able to continue installation.

Actual Behavior

Windows Smart App screen pops up, stating that "installation is being blocked by Smart App Control as the Cryptomator.msi file is unknown to Windows and they don't know who published it". A link provided in the screen sends you to the following site: https://support.microsoft.com/en-us/topic/smart-app-control-has-blocked-part-of-this-app-0729fff1-48bf-4b25-aa97-632fe55ccca2

Reproducibility

Always

Relevant Log Output

No response

Anything else?

Was already reported in our community some time ago, but without resolution: https://community.cryptomator.org/t/smart-app-control-blocks-fuse-and-webdav/10834

Activity

  1. added
    misc:installer
    on Sep 28, 2023
  2. changed the title [-]Windows: MSI blocked by Smart App Control[/-] [+]Windows: MSI Installer blocked by Smart App Control[/+] on Sep 28, 2023
  3. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor
  4. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    Testing on a clean Windows 11 VM with the SmartAppControlAuditNoISG.bin policy provided in the above article, the Windows event log contains the following line:

    Code Integrity determined that a process (\Device\HarddiskVolume4\Windows\System32\msiexec.exe) attempted to load \Device\HarddiskVolume4\Users\User\AppData\Local\Temp\MSIEB62.tmp that did not meet the Enterprise signing level requirements or violated code integrity policy (Policy ID:{5283ac0f-fff1-49ae-ada1-8a933130cad6}). However, due to code integrity auditing policy, the image was allowed to load.

    I wonder what these "Enterprise signing level requirements" are. There exists EV certificates, while we use a "standard" code signing certificate. But the first are only needed when creating windows drivers.

  5. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    Searching on the web, i found the following github issue: Azure/azure-powershell#18112

    We might have an unsigned file in our installer, unfortunately, i have currently no idea how to squeeze the event log for more information about the failed code integrity check.

  6. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    I found the tool WDAC Policy Wizard, which can create from event logs (whitelist) policy files!
    grafik

    It's true, due to jpackage we having this wixhelper.dll:

    <Binary Id="JpCaDll" SourceFile="wixhelper.dll"/>
    <CustomAction Id="JpFindRelatedProducts" BinaryKey="JpCaDll" DllEntry="FindRelatedProductsEx" />

    Guess, we need to sign it too, even thou it is embedded.

  7. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    I created a test installer in https://github.com/cryptomator/cryptomator/actions/runs/6337064766, which signs the wixhelper.dll file. The test installer passes the SmartAppControlAuditNoISG policy, creating no event in the event log.

  8. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    Okay, seems like the JDK flavor (Eclipse Temurin) used in our CI contains this dll unsigned. I opened a bug ticket on their issue tracker:
    adoptium/temurin-build#3489

    In the meantime, Amazon Coretto JDK provides a signed version and is distributed under the GPL (with CE).

  9. added 2 commits that reference this issue on Sep 28, 2023
    8d6c0ed
    ce466e7
  10. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    It seems like it is not enough, that the wixhelper is signed by some trusted authority. I created an installer in https://github.com/cryptomator/cryptomator/actions/runs/6338442729, but the SmartAppControlAuditNoISG policy still logs an event about not meeting "Enterprise requirements or violated code integrity".

  11. infeo commented on Sep 28, 2023

    @infeo
    MemberAuthor

    In run https://github.com/cryptomator/cryptomator/actions/runs/6341462570, i created again an msi installer where wixhelper is signed by us. This installer passes the policy.

  12. added a commit that references this issue on Sep 28, 2023
    7bc47fe
  13. added this to the 1.11.0 milestone on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    misc:installeros:windows

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions