Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: czeshirecat on June 26, 2008, 01:44:15 PM

Title: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: czeshirecat on June 26, 2008, 01:44:15 PM
Hi, I'm a developer trying to build a setup project in visual studio 2005 on my desktop. I am receiving warnings while VS builds the setup.exe file.
I also received the same warning this morning on my laptop for uninst.exe on a bittorrent installation sat on my c:\program files\bittorrent subdirectory.
(I only have Avast set up for on access scanning, tho I am currently running a full scan of the laptop. So I'm wondering why it picked up on the uninst.exe.)
I sent setup.exe to a colleague who scanned it with another anti-virus product and he's receiving a clean bill of health on the file.
At the moment I'm wondering if I'm getting false positives, I've no idea what went out in todays Avast updates (26th June 2008). Anyone else suffering the same?
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: DavidR on June 26, 2008, 02:09:36 PM
Confirm that it is an FP by further scanning.

- Upload to VirusTotal - Multi engine on-line virus scanner (http://www.virustotal.com/) and report the findings of these files here.

Create a folder called Suspect in the C:\ drive, e.g. C:\Suspect. Now exclude that folder in the Standard Shield, Customize, Advanced, Add, type (or copy and paste) C:\Suspect\* That will stop the standard shield scanning any file you put in that folder. You should now be able to export any file in the chest to this folder and upload it to VirusTotal without avast alerting.

If it is indeed a false positive, see http://forum.avast.com/index.php?topic=34950.msg293451#msg293451 (http://forum.avast.com/index.php?topic=34950.msg293451#msg293451), how to report it to avast! and what to do to exclude them until the problem is corrected.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: igor on June 26, 2008, 05:25:46 PM
Is the problem still present with the latest VPS?
If yes, please send us a sample.
Thanks.
Title: i have met homologous problem,other anti-virus scanned of a clean bill
Post by: xujun99663311 on June 26, 2008, 08:12:07 PM
 i am so confused,you know ,avast is famous here in China, but now .....i could say ..
 i need your reply
 thank you
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: igor on June 26, 2008, 08:14:46 PM
You didn't post any question.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: czeshirecat on June 27, 2008, 09:50:35 AM
Thanks for your reply :)

I renamed the file (setup.exe) to something else and uploaded it to virustotal.
Out of the 33 tests, only 2 were positive. Avast reported Win32:Trojan-gen {Other} and GData reported Win32:Trojan-gen
It's still reporting as a virus this morning (and every time I build the project).
I've emailed the file to Avast for testing.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: igor on June 27, 2008, 10:09:59 AM
Yes, it certainly looks like a false positive; to fix it, however, we need the sample file.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: Lisandro on June 30, 2008, 12:49:16 AM
we need the sample file.
Send an email to virus@avast.com and in the message body, write down a link to this thread.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: phunction on December 09, 2008, 11:07:14 PM
I am having the exact same problem. This just started with a recent update from Avast. It obviously now thinks the windows setup file is a trojan.
And why can't I override the stupid scanner? Yay, it thinks it found a virus, why can't I choose ignore instead of it telling me my only choice is to delete or repair?
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: Lisandro on December 10, 2008, 12:54:46 AM
I am having the exact same problem. This just started with a recent update from Avast. It obviously now thinks the windows setup file is a trojan.
And why can't I override the stupid scanner? Yay, it thinks it found a virus, why can't I choose ignore instead of it telling me my only choice is to delete or repair?
Well, the antivirus can take some false positives from time to time. Not a software is perfect. But this does not make it stupid. It's doing it's job.

To know if a file is a false positive, please submit it to  VirusTotal (http://www.virustotal.com/xhtml/index_en.html) and let us know the result. If it is indeed a false positive, send it in a password protected zip to virus@avast.com. VirusTotal has a file size limit of 10Mb. Please, mention in the body of the message why you think it is a false positive and the password used. Thanks.

Maybe you need to disable Hide protected operating system files (http://www.xtra.co.nz/help/0,,4155-1916458,00.html) and enable View hidden files and folders (http://www.bleepingcomputer.com/tutorials/tutorial62.html#winxp) to manage the file(s).

As a workaround, you can add these files to the Standard Shield provider (on-access scanning) exclusion list.
Left click the 'a' blue icon, click on the provider icon at left and then Customize. Go to Advanced tab and click on Add button...
You can use wildcards like * and ?. But be careful, you should 'exclude' that many files that let your system in danger.

This link is a tutorial on how to help correct a virus detection that you believe to be false:
http://forum.avast.com/index.php?topic=25009.msg204838#msg204838
or http://forum.avast.com/index.php?topic=7779.msg62586#msg62586
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: phunction on December 10, 2008, 01:17:23 AM
I was hoping that this was resolved with the op.
I meant stupid in that it doesn't let me make a choice of what I want to do with a file, it wants to decide for me like I am an idiot. There should be an option to allow me to make my own choice in what to do.
I am pretty sure older version of the software allowed me a better choice, but I may be wrong.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: DavidR on December 11, 2008, 01:11:27 AM
I meant stupid in that it doesn't let me make a choice
For sure this must be there. Only the Professional version has automated (no user interaction) actions.

You are misreading the quoted text, e.g. 'it doesn't let me make a choice' not that the OP would like the choice to be automatic.

Also the only choice given is Ignore or Delete, which would indicate that this is part of the anti-rootkit scan either at boot (8 minutes after) or as part of the on-demand scan. Sine the rootkit scan uses a different process and also employs a heuristic style the choices given are restricted.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: Alex189 on December 04, 2023, 12:48:00 PM
Hi guys, I have a problem with AVAST claiming that my msi installer contains a trojan.

Luckily I found that the problem is in the 3rd party library, the code of which is open source and is included as it is to my assembly.
Digging dipper I have found the problematic area which performs math calculations relative to geolocation.

Here is the problematic block of code:

            double radius = GetRadius(distanceUnit);
            return Math.Round(
                    radius * 2 *
                    Math.Asin(Math.Min(1,
                                       Math.Sqrt(
                                           (Math.Pow(Math.Sin(originLatitude.DiffRadian(destinationLatitude) / 2.0), 2.0) +
                                            Math.Cos(originLatitude.ToRadian()) * Math.Cos(destinationLatitude.ToRadian()) *
                                            Math.Pow(Math.Sin((originLongitude.DiffRadian(destinationLongitude)) / 2.0),
                                                     2.0))))), decimalPlaces);


Substituting the code above with something simple as "return 10; " solves the problem which makes me think you can analize it and improve your scanning algorythm.

Here is a link to the source code on github:
https://github.com/scottschluer/geolocation/blob/master/Geolocation/GeoCalculator.cs
method GetDistance

Would be really appreciated for your reply and reaction
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: DavidR on December 04, 2023, 01:08:49 PM
It isn't advisable breathing life into a topic that is over 15 years old.
Quote from: Notice
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

If this takes more than this response you should start your own new topic.

-  Reporting a Possible False Positive File or Website - https://www.avast.com/false-positive-file-form.php (https://www.avast.com/false-positive-file-form.php).
You should get a response in a day or two.
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: Alex189 on December 04, 2023, 01:32:02 PM
Looks like some problems were not solved since then)
Anyway, thanks for your recommendation.
I did as you suggested
Title: Re: Win32:Trojan-gen {Other} warning when building setup.exe in visual studio 2005
Post by: DavidR on December 04, 2023, 03:04:26 PM
You're welcome.