A hello world wxWidgets application is marked as malicious/a virus by various AV vendors (Issue #22147)

97 views
Skip to first unread message

BullyWiiPlaza

unread,
Feb 20, 2022, 1:29:45 PM2/20/22
to wx-...@googlegroups.com, Subscribed

Describe the bug
When I compile the simple hello world example statically and upload it to VirusTotal, I get 9 AV detections: https://stackoverflow.com/questions/71193681

Expected vs observed behaviour
A expect a hello world application to yields 0 AV detections.

Patch or snippet allowing to reproduce the problem
See the StackOverflow post above for the full source code.

Skip this step if the problem can be reproduced in one of the samples without any changes.

To Reproduce
Steps to reproduce the behaviour, please make them as detailed as possible, e.g.

  1. Create a new Visual C++ project and make sure the SubSystem is set to Windows (/SUBSYSTEM:WINDOWS)
  2. Install the vcpkg wxWidgets package via e.g. vcpkg install wxWidgets:x64-windows-static
  3. Copy and paste the hello world source code into the Main.cpp file
  4. Compile the project
  5. Upload the generated EXE (~ 4MB) to VirusTotal
  6. Observe the AV detections

Platform and version information


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22147@github.com>

PB

unread,
Feb 20, 2022, 2:29:32 PM2/20/22
to wx-...@googlegroups.com, Subscribed

I do not use vcpkg and I was unable to reproduce the issue with self-built wxWidgets.

Step 1. I built wxWidgets 3.1.5 in 64-bit static configuration with MSVC 2019 16.11.10 using solution WXDIR/build/msw/wx_vc16.sln.
Step 2. I then copied the Hello Word code to my project linking to wxWidgets built in Step 1 and built the project.
Step 3. I checked the resulting executable with the VirusTotal website, which reported no issues at all.

So my conclusions are, assuming those issues are not false alarms (which I would not be surprised at) that either the wxWidgets vcpkg package or your computer are compromised. wxWidgets vcpkg package is not maintained by wxWidgets team so the issues must be reported to its maintainers, i.e., the vcpgkg team.

However, I am not sure what exactly you mean by "compile statically", I linked wxWidgets statically but the CRT is still linked dynamically. Not sure what vcpkg does for "static" and how linking the CRT statically may affect the malware check.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22147/1046305060@github.com>

BullyWiiPlaza

unread,
Feb 20, 2022, 4:32:43 PM2/20/22
to wx-...@googlegroups.com, Subscribed

However, I am not sure what exactly you mean by "compile statically", I linked wxWidgets statically but the CRT is still linked dynamically. Not sure what vcpkg does for "static" and how linking the CRT statically may affect the malware check.

I also compiled with a static CRT since it seemingly doesn't let you mix a dynamic CRT with a static library (when using vcpkg libraries). The linker error would be LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in wxWidgetsHelloWorld.obj.

I'll open an issue for vcpkg but you can finally also try using vcpkg and see if you can then reproduce the AV detections. I highly doubt my PC is infected in any way or even in this strange fashion. There is also no malware in the compiled EXE at all, just false AV detections.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22147/1046325231@github.com>

VZ

unread,
Feb 20, 2022, 6:35:14 PM2/20/22
to wx-...@googlegroups.com, Subscribed

I have no idea what could we possibly do about this, so the only course of action I can suggest is to try contacting the AV vendors.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22147/1046346858@github.com>

Reply all
Reply to author
Forward
0 new messages