Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17 threats found by Virustotal in downloaded 32bit zip #1102

Closed
omnimind opened this issue Jan 21, 2020 · 17 comments
Closed

17 threats found by Virustotal in downloaded 32bit zip #1102

omnimind opened this issue Jan 21, 2020 · 17 comments

Comments

@omnimind
Copy link

Hi,
first of all, thanks for all of your effort - no offense but virustotal seems to find several suspicious engines in https://github.com/Genymobile/scrcpy/releases/download/v1.12.1/scrcpy-win32-v1.12.1.zip linked on https://github.com/Genymobile/scrcpy

Pls. referr: https://www.virustotal.com/gui/file/0f4b3b063536b50a2df05dc42c760f9cc0093a9a26dbdf02d8232c74dab43480/detection

I know 64bit version is completely threat-free confirmed by virustotal itself so 32bit version is clean for sure just ment to let you know.

Anyway, keep up the good work!
chris

@rom1v
Copy link
Collaborator

rom1v commented Jan 21, 2020

Thank you for your report.

I also checked older releases, win32 versions also trigger some antivirus in virustotal (not always the same, not always with the same malware/trojan). The files triggering them in the zip are (as expected) the .exe.

The Windows releases are cross-compiled from Linux using MinGW.

It seems all win32 binaries generated by MinGW trigger some antivirus (probably false positives?). Here is a minimal sample:

#include <stdio.h>
int main(void) {
    printf("hello world!\n");
    return 0;
}

I compile it with:

i686-w64-mingw32-gcc a.c

The resulting a.exe file triggers 35 engines: https://www.virustotal.com/gui/file/504d75e616ae12011e14cfcbb16eb1f471ce0afdfe0a00c9e003cbed6fead319/detection

Relevant discussions:
https://sourceforge.net/p/mingw-w64/discussion/723798/thread/e1717611/
https://stackoverflow.com/a/24662189/1987178

Could someone do the same test on their computer, and send the file to virustotal to confirm it is also detected as suspicious, please?

@omnimind
Copy link
Author

omnimind commented Jan 21, 2020

Thanks for your feedback, I did a quick test regarding to your recommendations: so I compiled the tiny "Hello world!" example of yours on a Win64 machine using the following compiler: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/i686-w64-mingw32-gcc-4.7.4-release-win64_rubenvb.7z/download

Checking a.exe on Virustotal resulted in finding 4 suspicious engines: https://www.virustotal.com/gui/file/a8122a09a839bacf0d601b4a71675474e6c3b460e458fc7faded3c225a263a87/detection

Just to make it more stranger life took good care of confusing us: the compiler itself (i686-w64-mingw32-gcc.exe) triggered no alerts on Virustotal: https://www.virustotal.com/gui/file/1b82dbf858359098a1ef298237e2ba6b02e961a51d66dae6f619060ffb564803/detection

@rom1v
Copy link
Collaborator

rom1v commented Jan 21, 2020

Cross-ref: https://www.reddit.com/r/Malware/comments/erricw/binaries_generated_by_mingw32_detected_as_trojan/

@cvanstone
Copy link

cvanstone commented Jan 29, 2020

Windows Defender is removing ScrCpy on a few test machines (from the x86 zip). I'm guessing its picking up the same issue outlined above.

Here is the screenshot of the threat report I'm receiving.

ScrCpy Win Defender Threat

@stilljack
Copy link

different reported threats... hope this contribution helps any, love the program, extremely useful!

image
image

rom1v added a commit that referenced this issue Mar 3, 2020
Binaries created with MinGW (even a simple Hello World) are detected as
malware by some anti-virus. For some reason, only the 32 bits version of
scrcpy is impacted.

Since users should use the 64 bits version by default anyway, remove the
link to the 32 bits version from the main page.

The 32 bits release is still available in the "releases" tab.

See <#1102>
@rom1v
Copy link
Collaborator

rom1v commented Mar 3, 2020

I removed the link to the 32 bits version from the README: c396758

@Biswa96
Copy link
Contributor

Biswa96 commented Mar 19, 2020

From where did you download 32bit and 64bit ADB for Windows?

@rom1v
Copy link
Collaborator

rom1v commented Mar 19, 2020

There is only one version (32 bits I guess):

@./prepare-dep https://dl.google.com/android/repository/platform-tools_r29.0.5-windows.zip \

@Biswa96
Copy link
Contributor

Biswa96 commented Mar 19, 2020

If the scrcpy client is compiled msys2/mingw-w64 mode it does not show any virus alert in Virustotal. But it finds scrcpy-server in /usr/share folder. Any way to instruct it to use current path?

@rom1v
Copy link
Collaborator

rom1v commented Mar 19, 2020

Build with meson x -Dportable=true to use scrcpy-server from the same directory as scrcpy.exe.

At runtime, you can change by using the env variable SCRCPY_SERVER_PATH.

@Biswa96
Copy link
Contributor

Biswa96 commented Mar 19, 2020

Anyone having this issue, I have compiled the scrcpy.exe binary in msys2/mingw-w64 toolchain. Can you test those binaries from here https://github.com/Biswa96/scrcpy-msys2/releases?

@UNIVAC-Colonel-Panic
Copy link

Could someone confirm that the ones compiled by @Biswa96 will not trigger a virus alert?

This was referenced Apr 21, 2020
@Go5egK
Copy link

Go5egK commented Apr 29, 2020

Ref problem with malwarebytes
My support request to MWB included the link to scrcpy with me saying that it was legit. Subsequent to that on Saturday my MWB stopped rejecting scrcpy. scrcpy ok every day since.
Saturday evening I had request from MWB to send a diagnostic which I’ve done. No response yet from them.
Additionally on the same day as MWB started rejecting scrcpy so did W Defender later that day (I accepted and have not had any from Defender since)

@rom1v
Copy link
Collaborator

rom1v commented Apr 29, 2020

@Go5egK Thank you for your feedbacks. Is it still rejected today?

@Go5egK
Copy link

Go5egK commented Apr 29, 2020 via email

@rom1v
Copy link
Collaborator

rom1v commented Apr 29, 2020

Not rejecting since Saturday evening

Cool, thank you 👍

@psychoreactorq
Copy link

psychoreactorq commented Jul 31, 2020

Very recently, I browsed mingw.org and downloaded mingw-get-setup.exe 2017-09-06, then installed gcc, g++, and MSYS. After reading this post, i compiled two examples, they got over 20 positives each on virustotal.com. here is what i used to create them within the MSYS shell:

#include <stdio.h>
int main(void) {
    printf("hello world!\n");
    return 0;
}

$ gcc --version
gcc.exe (MinGW.org GCC Build-2) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ --version
g++.exe (MinGW.org GCC Build-2) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc vct.c -o out.c.exe

$ g++ vct.cpp -o out.cpp.exe

https://www.virustotal.com/gui/file/561a3bdcef261beb2a58dca5d51d4d7d561d555d4caa6606eb3e481bf1141e16/detection
https://www.virustotal.com/gui/file/176cf53ca0564af53fbde5ee65963dbdfb4ea426bac821bbba2c71148cdb9806/detection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants