texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Qt DLL(s) flagged by Windows Defender in 4.8.5 (Qt 6.8.1)

Open eljokun opened this issue 1 year ago • 24 comments

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

chrome_LRGg50iUqs

ApplicationFrameHost_PhNFfDSwlf

eljokun avatar Jan 08 '25 12:01 eljokun

I also had to allow Qt6Gui.dll to run after being blocked by Windows Security for Texstudio to work properly.

ngtngh avatar Jan 08 '25 15:01 ngtngh

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.

xR2 avatar Jan 08 '25 16:01 xR2

just to clarify, we are talking about the official texstudio installer from this page ?

sunderme avatar Jan 08 '25 16:01 sunderme

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.

eljokun avatar Jan 08 '25 16:01 eljokun

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.

sunderme avatar Jan 08 '25 16:01 sunderme

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:

401181685-77a5c0dd-ffc3-46b1-9b3f-b817fb553662

and then fails to run:

401183054-70ada0f2-8ca7-414d-8431-3af0f461ba2d

Apparently the dll was (automatically) removed. I'm using the Windows installer.

rensink avatar Jan 08 '25 16:01 rensink

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:

401181685-77a5c0dd-ffc3-46b1-9b3f-b817fb553662

and then fails to run:

401183054-70ada0f2-8ca7-414d-8431-3af0f461ba2d

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.

eljokun avatar Jan 08 '25 17:01 eljokun

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

image

4Sentinel avatar Jan 08 '25 18:01 4Sentinel

I scanned my current msys64 folder (Win10 with defender). Same result as above:

grafik

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

octaeder avatar Jan 08 '25 19:01 octaeder

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.

octaeder avatar Jan 08 '25 19:01 octaeder

same question with Win11 . But last month everything went right

leleyqy avatar Jan 08 '25 20:01 leleyqy

Same problem on MacOS Sequoia.

mouse07410 avatar Jan 09 '25 03:01 mouse07410

qt6dll - Copy

ronnie-oldgit avatar Jan 09 '25 15:01 ronnie-oldgit

anybody any idea how to stop microsoft's rampage ?

sunderme avatar Jan 09 '25 16:01 sunderme

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.

eljokun avatar Jan 09 '25 16:01 eljokun

Since I bascially work on linux, where do you need to add the txs inclusion ?

sunderme avatar Jan 09 '25 17:01 sunderme

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)

eljokun avatar Jan 09 '25 17:01 eljokun

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

delcampoana avatar Jan 10 '25 12:01 delcampoana

! 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"

eljokun avatar Jan 10 '25 12:01 eljokun

Whoops, reopening to keep it visible.

eljokun avatar Jan 10 '25 13:01 eljokun