Qt DLL(s) flagged by Windows Defender in 4.8.5 (Qt 6.8.1)
Environment
- TeXstudio: 4.8.5
- Qt: 6.8.1
- OS: Windows 11 IoT Enterprise LTSC
- TeX distribution: MikTeX
Description
Texstudio broke today with a 0xc0000906 error and many "entry point not found" errors. After a long process i found that using a portable version didn't work either, for which i tried disabling defender. It still didn't work, but after re-installing with defender disabled, it worked.
Defender is not flagging a specific detection unless you manually trigger a scan, and users may not be aware unless they scan the txs directory specifically.
The issue comes from Qt6Gui.dll, and a sample of the file has been submitted for analysis on the microsoft page to report the detection
I also had to allow Qt6Gui.dll to run after being blocked by Windows Security for Texstudio to work properly.
I didn't do any manual scan, but got Defender's warning and requesting restart. Can't even submit the file to virustotal analysis, windows shell won't let me.
just to clarify, we are talking about the official texstudio installer from this page ?
just to clarify, we are talking about the official texstudio installer from this page ?
Yes, 4.8.5, both installer and portable, Qt6Gui.dll triggers the detection.
the dll corresponds the msys2 delivery, so the txs package pristine. The naming of the virus suggests a false positive. Qt6Gui.dll has nothing to do with visual basic.
Looks like the same problem I encountered. Om my machine, installing TexStudio 4.8.5 initially goes through but subsequently generates a warning from Windows Security:
and then fails to run:
Apparently the dll was (automatically) removed. I'm using the Windows installer.
Looks like the same problem I encountered. Om my machine, installing TexStudio 4.8.5 initially goes through but subsequently generates a warning from Windows Security:
and then fails to run:
Apparently the dll was (automatically) removed. I'm using the Windows installer.
The inconsistencies between users' experiences would lead me to believe the false positive is triggered on runtime, (heuristics?), as people are able to execute and in many cases the DLL doesn't get caught during read-write in real-time protection like you would see with most detections in present-day defender.
I've submitted a report to WDIS.
I'm having exactly the same issue. All was working fine yesterday, but when I tried to open TexStudio (4.8.5, official texstudio installer) today, Windows had quarantined the Qt6Gui.dll
I scanned my current msys64 folder (Win10 with defender). Same result as above:
Even so, neither building txs nor running final txs showed any alerts. Scanning another PC (Win10 with AVG) did throw two other alerts, which said that the two files (in some archive in folder cache) may have been removed or so. Otherwise building and executing the result throws no alerts. In the past I often observed warnings from AVG while building after updating msys2 package base. Now defender found such an archive: file: C:\msys64\var\cache\pacman\pkg\mingw-w64-ucrt-x86_64-qt6-base-6.8.1-2-any.pkg.tar.zst->(ZStandard)->ucrt64/bin/Qt6Gui.dll
it seems that libquazip1-qt6.dll was removed, too. Reinstalled package mingw-w64-ucrt-x86_64-quazip-qt6.
to get Qt6Gui.dll I needed to reinstall mingw-w64-ucrt-x86_64-qt6-base.
same question with Win11 . But last month everything went right
Same problem on MacOS Sequoia.
anybody any idea how to stop microsoft's rampage ?
anybody any idea how to stop microsoft's rampage ?
Nada. It's pretty much the heart of qt6. I did file a report on WDIS about the false positive but no reply from analysts yet. For now if there's a method available, your best bet is to issue an alert to windows users for the false positive and instruct them to add txs to exclusions.
Since I bascially work on linux, where do you need to add the txs inclusion ?
Since I bascially work on linux, where do you need to add the txs inclusion ?
Users just need to either scan the directory and choose to allow the detection on the device or go to windows security, virus and threat protection, manage exclusions and add the file (or folder)
Thanks @eljokun, for Windows users in Spanish and very ignorant of computers, it is fixed with these steps: Seguridad de Windows / Protección antivirus y contra amenazas / Historial de protección / Amenaza en cuarentena / Restaurar
! EDIT: NOT FIXED
Apparently some are still getting detected even after updating.
False-positive fixed!
As of security definition(intelligence) version 1.421.1291.0, Qt6Gui.dll, along with all components of texstudio is no longer falsely flagged as a virus.
How to update
Your defender should receive updates automatically on-the-fly, but you can trigger a manual update by right clicking the windows defender taskbar icon and clicking on "Check for Protection Updates"
Whoops, reopening to keep it visible.

