Windows Smart App Control blocks the official CTranslate2 4.9.0 DLL (WinError 4551)

Open
#2,152 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, python

Research direction

The problem is a Windows Smart App Control block on the unsigned native ctranslate2.dll in the 4.9.0 wheel, not a code defect. A newcomer would first confirm how the wheel is built and packaged in the release pipeline, then check whether any signing step exists. Done means a documented answer or a signing plan, which needs maintainer and certificate decisions.

Written by the indexing model from the issue text.

Description

Hello CTranslate2 maintainers,

I'm trying to use Faster Whisper on Windows 11 with Smart App Control enabled.

Importing Faster Whisper fails because Windows blocks the CTranslate2 native DLL:

OSError: [WinError 4551] An Application Control policy has blocked this file

Environment

  • Windows PowerShell 5.1
  • Python 3.12.10 (64-bit)
  • faster-whisper 1.2.1
  • ctranslate2 4.9.0
  • pip 26.3
  • Visual C++ Redistributable x64 installed

Investigation results

  1. Downloaded the official CTranslate2 4.9.0 Windows wheel from PyPI.
  2. Extracted ctranslate2/ctranslate2.dll from the wheel.
  3. Compared the extracted DLL with the installed DLL.
  4. Both SHA256 hashes match exactly:

A9009AD682A2C5A11F6942C3B8DAC68189D629685EF02FBC3E1AB6E4C6082AB8

  1. Get-AuthenticodeSignature reports NotSigned for both DLLs.
  2. Windows Code Integrity logs show events 3077, 3033 and 3118 associated with the blocked DLL.

Questions

  1. Is an Authenticode-signed Windows DLL or wheel available?
  2. Are there plans to sign the native Windows binaries in future releases?
  3. Is there an officially supported solution for users who need to keep Windows Smart App Control enabled?

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

Thank you for your help.

Dominant language
C++
Stars
4.8k
Forks
557
Avg merge
1d 6h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenNMT/CTranslate2

All issues in OpenNMT/CTranslate2

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.