Virus scan of my executable is a concern

Everything else that doesn't fall into one of the other PB categories.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Virus scan of my executable is a concern

Post by PB »

Hi all. Today I decided to submit one of my exes to two online virus scanners,
to see what they'd report. I'm not very happy at all. :( Here are the reports:

http://virusscan.jotti.org/en/scanresul ... 30280ae642

Image

http://www.virustotal.com/analisis/0ac6 ... 1280039195

Image

As you can see, both make my app look like it's virus-ridden with malware. :(
My question is: if my potential customers showed me the results above, how
would I convince them that my app is safe? I don't even know what some of
those alerts are, or why they're there. I'm just creating the exe using a clean
PureBasic install with a DLL compressed with UPX, and I made the DLL using
PureBasic too. I don't get it. My system is not infected from what I can tell,
after doing a full system scan with Avira AntiVir. Doesn't make sense. (And
I only named it Calc.exe for the upload to these sites, so the real name is
kept unknown to them).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: Virus scan of my executable is a concern

Post by djes »

Try without using UPX, and don't call it like a Windows app.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Virus scan of my executable is a concern

Post by netmaestro »

Both good points. A good antivir will know that isn't the well-known calc.exe and raise flags on that alone. Just like if you walked into a bank with a check you wanted cashed and when they asked your name you said Tom Selleck. They know you aren't him and eyebrows go up. On the UPX issue, there are two main concerns right off the bat. The first is that the antivir programs know it's packed and scrambled and that because of that they can't give it a clean bill of health- They don't know what's in there. The second is that packing results in bytes being jammed together in all manner of random patterns. The likelihood of one of those patterns resembling a known virus signature is quite good.
BERESHEIT
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Virus scan of my executable is a concern

Post by PB »

Okay, so I ditched UPX and did a rebuild of the DLL and EXE, and the results are
still pretty much the same... only 1 or 2 virus apps showed no concern now. See:

http://virusscan.jotti.org/en/scanresul ... e47f2d8856

Image

http://www.virustotal.com/analisis/ffee ... 1280067870

Image

This really sucks. :( Is it because I'm using GetAsyncKeyState and things like that?
Maybe those API commands are raising "suspicious" flags. This is really depressing.
How can I release this app if it looks like malware? Has anyone else suffered this?

Maybe my PC really is infected and I just don't know it? But that wouldn't explain
why a freshly-built EXE would have so many infections as soon as it's created...
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Virus scan of my executable is a concern

Post by c4s »

It's all a heuristical alert (see "heur" and "gen") so you shouldn't have a real virus in your software. ;)
The only thing you can do now is to contact those antivirus manufacturers and report yours as a false-positive. All of them should have a report e-mail, web formular etc. I remember we already collected some of the addresses here in the forum!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: Virus scan of my executable is a concern

Post by Thorium »

UPX's isnt a problem, virus scanners can unpack it and analyse the code, same with most other packers. They can even unpack morphine without problems.

The problem is the heuristic of the scanners, only thing you can do is send the .exe or .dll or whatever is detected as virus to the company that develops the virus scanners that detect it as maleware. They likely will fix it with one of the next updates.

Most of them have special e-mail addresses for sending false positives to them.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Virus scan of my executable is a concern

Post by PB »

Thanks for the info, guys. So I assume I'd just let the companies know before
I do a general release of my app? How do they know I'm telling the truth and
that my app ISN'T malware?

I've been doing some search/replace of API calls in my app, because I want to
see exactly WHAT is causing these false alerts. It's a time-consuming process.

The only result I've got so far, is that if I remove the DeleteFile_() API command,
and use PureBasic's DeleteFile() instead, then NOD32 doesn't report Win32/Genetik
anymore. Weird that it complains about an API command, because I assumed that
PureBasic was just a wrapper for it?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: Virus scan of my executable is a concern

Post by Thorium »

they know that it isnt maleware because they analyse it. You have to send the compiled .exe to them and they run it in a VM and check what it do.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Virus scan of my executable is a concern

Post by PB »

> You have to send the compiled .exe to them and they run it in a VM and check what it do

I see. Hmm. So they need access to a registered version of my app? I don't like that.
Who knows what they'll do with it. "Here Bob, take this home with you after I've had
a play in the VM." :(

Also, that's kinda silly, because my app could simply have a time delay and do the
damage after X months. So prior to that time they're marking it as safe to all their
users. Hmm... could be a good way to kill an anti-virus vendor's reputation! :twisted:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
zogre
New User
New User
Posts: 7
Joined: Fri Jun 18, 2010 1:55 pm

Re: Virus scan of my executable is a concern

Post by zogre »

It's more likely they will look manually at the locations flagged in the binary file (decompiled to asm) by their internal slow&deep scanning tools in order to see what the code is doing at those locations.
PB wrote:> You have to send the compiled .exe to them and they run it in a VM and check what it do

I see. Hmm. So they need access to a registered version of my app? I don't like that.
Who knows what they'll do with it. "Here Bob, take this home with you after I've had
a play in the VM." :(

Also, that's kinda silly, because my app could simply have a time delay and do the
damage after X months. So prior to that time they're marking it as safe to all their
users. Hmm... could be a good way to kill an anti-virus vendor's reputation! :twisted:
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: Virus scan of my executable is a concern

Post by djes »

Maybe one of us could create a list of functions definitively flagged as bad by heuristics...
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Virus scan of my executable is a concern

Post by Rook Zimbabwe »

I may have missed something... do you get the same reports when you run it through a virus scanner NOT on the internet???

Some of them really want to sell you their product/service... :D

Looking at the list of what hit it as BAD... I become suspicious... none of them found the same thing. And only 3 of them declared they found anything at all...

Avast and AVG reported clear... AntiVir wants to sell you their software... I never heard of the others so I would not worry about it!!! :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Virus scan of my executable is a concern

Post by PB »

> do you get the same reports when you run it through a virus scanner NOT on the internet?

I use Avira AntiVir and yes, it matches what the online scan says.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Virus scan of my executable is a concern

Post by DoubleDutch »

If I compile my ER program with PB v4.4x, there are no virus warnings. But with 4.5x I get the warnings too. Pretty annoying, but not PB's fault.

Anyone know if there is a complete list of submission email addresses for the false-positives?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Virus scan of my executable is a concern

Post by KJ67 »

I remembered that I installed VirusTotal’s uploader some time ago and newer really found a use for it, until now.
If included in PB I can check small snippets of code just by a quick copy-paste into a new source tab then press F5, and then both find where and what triggers different anti viruses & then also give them a collection of false detection to sort out of their signature files.
Ex;
Image
The best preparation for tomorrow is doing your best today.
Post Reply