Anti-virus false-positive tip

Everything else that doesn't fall into one of the other PB categories.
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Anti-virus false-positive tip

Post by BarryG »

A new app I was making had an anti-virus false-positive today, which was being reported as "TrojanSpy.Carberp.eut" by Jiangmin on VirusTotal.

After spending all day trying to work out why, including by compiling with a few older PureBasic versions, I randomly decided to remove the icon used in the Compiler Options for it, and BINGO - the false positive was gone! I put the icon back and recompiled the exe again and yep, the false-positive came back.

To be 100% sure, I opened the ".ico" file in IcoFX and changed ONE SINGLE PIXEL and resaved it, recompiled the exe, and uploaded it to VirusTotal. NO false-positive from Jiangmin! Crazy. Then I tried the old pre-edited icon again, yep, Jiangmin flagged it again. All for one single pixel difference in an image - not in any executable code!

I can only assume that some malware exists out there that's using the same free icon that I was using. So this is definitely something to be aware of when you're using free resource offerings from other places: sure, they're convenient; but that's probably why malware authors use them.

And it's good to know that it's not necessarily PureBasic's fault that is causing the alerts (which would be a relief for Fred).
Little John
Addict
Addict
Posts: 4789
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Anti-virus false-positive tip

Post by Little John »

Interesting! Thanks for the detailed information.
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Anti-virus false-positive tip

Post by Bitblazer »

Thanks for this interesting info.
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Anti-virus false-positive tip

Post by Denis »

@BarryG

Very interesting :!:
A+
Denis
User avatar
blueb
Addict
Addict
Posts: 1116
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Anti-virus false-positive tip

Post by blueb »

Maybe... steganography. :?:
An encrypted message inside a plain message, this is steganography.

See JHP's work with this topic.
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Anti-virus false-positive tip

Post by Quin »

Very interesting, thanks for the info!
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Anti-virus false-positive tip

Post by RSBasic »

@BarryG
Thank you for the detailed information.
Image
Image
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Anti-virus false-positive tip

Post by Caronte3D »

Wow! :shock:
Thanks! :wink:
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Anti-virus false-positive tip

Post by Kuron »

Thanks Barry! Wow, we can bypass the legendary AV authority Jiangmin by simply flipping a pixel. Brilliant!
Best wishes to the PB community. Thank you for the memories. ♥️
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Anti-virus false-positive tip

Post by BarryG »

It's nuts, isn't it? I don't know what made me decide to test the icon. This was a new app and still relatively small (under 2000 lines) so I just figured keep removing procedures of it, part by part, until the false-positive went away. I was so shocked that removing the icon did it! That's when I guessed there must be a byte sequence in the icon that was matching whatever Jiangmin considered to be malware, so edited a pixel to see, and it worked - no more malware warning!

I'm wondering now whether maybe if I saved the original icon with a different icon editor (other than IcoFX) would produce the same file checksum or not? Will have to test later (although, I like IcoFX and am very used to it).
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Anti-virus false-positive tip

Post by Tenaja »

There is the vector icon library, too... I think Little John started it, iirc

viewtopic.php?f=12&t=65091

Here's a designer collector Dave posted
viewtopic.php?p=487423
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Anti-virus false-positive tip

Post by NicTheQuick »

I hate AntiViruses. They should be forbidden. They do not help anybody, they are only annoying all the time. :evil:
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Anti-virus false-positive tip

Post by Kuron »

BarryG wrote: Mon Oct 16, 2023 11:06 am It's nuts, isn't it?
It is beyond nuts. I was happily ignorant of Jiangmin until your post. But if they are flagging executables simply because of an icon, it shows how poor their product really is.

Hands down, you are the world's best beta tester!
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
NicTheQuick
Addict
Addict
Posts: 1519
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Anti-virus false-positive tip

Post by NicTheQuick »

It's all because of these damn heuristics. They display viruses or Trojans just because they think they might be. In reality, however, only some pattern was found that they already know from another virus or Trojan. This does not have to mean anything. Apparently, this Jiangmin even scans resources for patterns without paying attention to what type the resource is. An image cannot be a virus, yet it is treated as such. Really stupid.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Anti-virus false-positive tip

Post by Kuron »

It's all because of these damn heuristics.
Which sometimes plays into being used as a marketing gimmick. "Our AV program can detect more viruses than the competition."
Best wishes to the PB community. Thank you for the memories. ♥️
Post Reply