MetaTrader5 Python API blocked by Windows 11 Smart App Control — unsigned _core.pyd

Hello MetaQuotes Team and MQL5 Community,

I am experiencing a Windows 11 Smart App Control compatibility issue with the official MetaTrader5 Python package.

Environment

  • Windows 11, Smart App Control enabled

  • Python 3.12.10 (64-bit)

  • MetaTrader5 Python package 5.0.6090

  • Native extension: _core.cp312-win_amd64.pyd

Error

When importing MetaTrader5, Python reports:

ImportError: DLL load failed while importing _core: An Application Control policy has blocked this file.

Confirmed Windows Code Integrity evidence

The Windows Code Integrity event logs identify the native _core module as the blocked file.

  • Event ID 3033: Signing-level requirement not satisfied

  • Event ID 3077: Enforced Code Integrity block

  • Event ID 3089: Signature count 0

  • Event ID 3118: Smart App Control block details

  • Policy: VerifiedAndReputableDesktop

  • Blocked module SHA256: 053C0F5667DED95EFBB80E04120E5D38A100CB7F6D2B02E27BBC21FBE198B22B

Additional investigation

I downloaded the official Windows CPython 3.12 AMD64 wheels for MetaTrader5 versions 5.0.6090, 5.0.6180 and 5.0.6231 from PyPI.

All downloaded wheels matched their published SHA256 hashes.

Static inspection showed that the native _core.cp312-win_amd64.pyd modules in all three releases have no Authenticode signature.

I have not installed or executed the newer releases, so I cannot confirm whether Windows Smart App Control would accept them based on reputation.

Questions

  1. Is this Smart App Control compatibility issue known to MetaQuotes?

  2. Is an officially signed or Smart App Control-compatible Python extension available?

  3. Is there a supported solution that allows the MetaTrader5 Python API to work while keeping Smart App Control enabled?

  4. Would upgrading to version 5.0.6231 help, despite its native module being unsigned?

  5. If no compatible package is available, what alternative integration method does MetaQuotes recommend?

I would prefer to keep Windows security protections enabled rather than disable Smart App Control.

Any guidance from MetaQuotes developers or community members would be greatly appreciated.

Thank you.

PD
Googling  Smart App Control exclude

**Smart App Control does not support an exclusion whitelist or per-app overrides.** Microsoft’s FAQ confirms there is currently no way to bypass Smart App Control protection for individual applications or create an allow list.

To run an app blocked by Smart App Control, you must either **turn the feature off completely** or **contact the developer** to sign the app with a valid certificate.

### Workarounds for Blocked Apps

*   **Disable Smart App Control:** You can turn the feature off entirely via **Windows Security > App & browser control > Smart App Control settings**. Starting with **Windows 11 build 26100.8116 (24H2)** and later, you can toggle this on and off without reinstalling Windows.
*   **Use Defender Exclusions:** While Smart App Control itself cannot be excluded, you can add the app’s folder to the **Microsoft Defender Antivirus exclusion list** (Virus & threat protection > Manage settings > Exclusions) to prevent Defender from interfering with the same files.
*   **Registry Override:** If the Smart App Control toggle is greyed out, you can force it off by setting the `VerifiedAndReputablePolicyState` DWORD in `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CI\Policy` to `0`.


AI cam make mistake, 
Soewono Effendi #:
Googling  Smart App Control exclude

**Smart App Control does not support an exclusion whitelist or per-app overrides.** Microsoft’s FAQ confirms there is currently no way to bypass Smart App Control protection for individual applications or create an allow list.

To run an app blocked by Smart App Control, you must either **turn the feature off completely** or **contact the developer** to sign the app with a valid certificate.

### Workarounds for Blocked Apps

*   **Disable Smart App Control:** You can turn the feature off entirely via **Windows Security > App & browser control > Smart App Control settings**. Starting with **Windows 11 build 26100.8116 (24H2)** and later, you can toggle this on and off without reinstalling Windows.
*   **Use Defender Exclusions:** While Smart App Control itself cannot be excluded, you can add the app’s folder to the **Microsoft Defender Antivirus exclusion list** (Virus & threat protection > Manage settings > Exclusions) to prevent Defender from interfering with the same files.
*   **Registry Override:** If the Smart App Control toggle is greyed out, you can force it off by setting the `VerifiedAndReputablePolicyState` DWORD in `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CI\Policy` to `0`.


AI cam make mistake, 

Thank you for your reply and helpful information.