You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: MSI Installer blocked by Smart App Control #3130
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.
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.
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).
Activity
[-]Windows: MSI blocked by Smart App Control[/-][+]Windows: MSI Installer blocked by Smart App Control[/+]infeo commentedon Sep 28, 2023
There exists some Microsoft documentation, how we can test our installer: https://learn.microsoft.com/en-us/windows/apps/develop/smart-app-control/test-your-app-with-smart-app-control
infeo commentedon Sep 28, 2023
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:
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.
infeo commentedon Sep 28, 2023
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.
infeo commentedon Sep 28, 2023
I found the tool WDAC Policy Wizard, which can create from event logs (whitelist) policy files!

It's true, due to jpackage we having this
wixhelper.dll:cryptomator/dist/win/resources/main.wxs
Lines 73 to 74 in bbe7255
Guess, we need to sign it too, even thou it is embedded.
infeo commentedon Sep 28, 2023
I created a test installer in https://github.com/cryptomator/cryptomator/actions/runs/6337064766, which signs the
wixhelper.dllfile. The test installer passes the SmartAppControlAuditNoISG policy, creating no event in the event log.infeo commentedon Sep 28, 2023
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).
fixes #3130
fixes #3130
infeo commentedon Sep 28, 2023
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
SmartAppControlAuditNoISGpolicy still logs an event about not meeting "Enterprise requirements or violated code integrity".infeo commentedon Sep 28, 2023
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.
Really fixes #3130