Solved

Antivirus blocking my exe in C#

Posted on 2013-01-16
5
2,389 Views
Last Modified: 2013-11-22
Dear All

I have a query.

Actually I have created an exe in C# code.But when I execute it,Antivirus stops my exe,then the options antivirus provides.Among them,I need to choose " open normally" option, to run my exe normally.

Why antivirus is detecting the exe as malware?Can in C#,we can prevent this stopping?
0
Comment
Question by:BYTECHINDIA
5 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38785993
>Can in C#,we can prevent this stopping?
no. otherwise ANY "virus" could do the same.

>Why antivirus is detecting the exe as malware?
is it really antivirus app, or just windows security?
this may be just the "question" as it's a "new" application to the user if the app is trused or not ...
0
 

Author Comment

by:BYTECHINDIA
ID: 38786071
Actually Avast Antivirus is showing a window indicating that "the application can be unsafe ,open it in sandbox",that is why I wrote antivirus.How can I know which line of statement is blocking the application?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38786102
you would need to either contact Avast to find out, or debug their scanning tool about what "functions" inside your exe are found "potentially suspiceous.

other than that, you can "remember this decision" when choosing to run the app normally.
0
 
LVL 9

Accepted Solution

by:
the_b1ackfox earned 500 total points
ID: 38786205
I had this same thing happen to me about 6 months ago.  I had repackaged someone elses install to make it easier on the pepole who had to push it out.  Thinkning I was being quite slick, I decided to cleanup the left over icons from the initial install on the desktop.  So I wrote a method to clean only those two icons.  It took about two weeks for it to get flagged as a malicious file, andI had to rewrite it not delete anything.

Check out your methods and see if they are modifying files, registry or checking out ports on external hosts.

Fox
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 38788296
You can manually add your application to Avast's whitelist as well. If you are publishing this to a lot of other people though, then you should make note of this and tell them or find what system stuff you are changing that causes this.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now