Solved

Antivirus blocking my exe in C#

Posted on 2013-01-16
5
2,340 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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ā€¦
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

746 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

13 Experts available now in Live!

Get 1:1 Help Now