Anti-virus false-positive tip
Anti-virus false-positive tip
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).
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).
-
- Addict
- Posts: 4789
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Anti-virus false-positive tip
Interesting! Thanks for the detailed information.
Re: Anti-virus false-positive tip
Thanks for this interesting info.
Re: Anti-virus false-positive tip
Maybe... steganography.
An encrypted message inside a plain message, this is steganography.
See JHP's work with this topic.

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
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
Re: Anti-virus false-positive tip
Very interesting, thanks for the info!
Re: Anti-virus false-positive tip
Wow! 
Thanks!

Thanks!

Re: Anti-virus false-positive tip
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. 
Re: Anti-virus false-positive tip
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).
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).
Re: Anti-virus false-positive tip
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
viewtopic.php?f=12&t=65091
Here's a designer collector Dave posted
viewtopic.php?p=487423
- NicTheQuick
- Addict
- Posts: 1519
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Anti-virus false-positive tip
I hate AntiViruses. They should be forbidden. They do not help anybody, they are only annoying all the time. 

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.
Re: Anti-virus false-positive tip
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. 
- NicTheQuick
- Addict
- Posts: 1519
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Anti-virus false-positive tip
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.
Re: Anti-virus false-positive tip
Which sometimes plays into being used as a marketing gimmick. "Our AV program can detect more viruses than the competition."It's all because of these damn heuristics.
Best wishes to the PB community. Thank you for the memories. 