My programs are blocked by avast anti-virus

老子叫甜甜 提交于 2019-11-28 06:12:28

A nice way to increment the confidence of all AV software is to digitally sign your code. Thawte has the cheapest well-recognized certificates starting below 100 € / year.

-- update after @Herr_Doktor's comment nearly two years later --

I recently ran into a new situation when code signing was not an option - I write open source for Joomla in php. After I received the first indications that Avast marked my file as a (false) positive, I contacted them and they whitelisted my file within hours.

In order to make my life easier, I am creating a separate file with the supposedly "dangerous" function, so that future changes to the program won't require to re-submit it for whitelisting.

Possibly the speed in their response was helped by the fact that reading a short php file is faster than reverse engineering compiled code; nonetheless they were kind, quick and effective.

AV programs work by analyzing files for patterns of known "bad behaviour".

If your program is dereferencing pointers, writing 200 bytes into a 100 byte buffer or similar, chances are you will generate code that is similar to a signature of a known attack. (since most attacks exploit these kinds of programming errors)

You should debug your code (if on linux try valgrind or efence) and make sure that memory is handled correctly.

You can be interested in this article:

http://www.codeproject.com/Articles/71128/The-Case-of-Evil-WinMain

It illustrate how antivirus can literally go nuts when dealing with small programs linking a simple C run-time library.

The only thing you can do is signal the problem to the antivirus makers and hope in a fair behavior from them.

Alright figured it out go to your avast settings and there is an area where you can add exceptions settings>antivirus then you scroll down that menu and there is an area titled EXCLUSIONS where you can browse to your visual studio path ie. c:>john>documents>visualStudio2010>projects::: select your project path and it will add it to a list of scanning exceptions and you should be able to test run your files... worked well for me. I also disabled deep scan in the same menu due to a suggestion from another member

go to avast 'file system sheild' and click 'expert settings' button. then find and click the 'exclusions' option from the menu at left side. Add your project foldr in the file exclusion list. This is safe unless dangerous viruses crawls in to your project folder without ur knowldge :P

I recently encountered an issue where some of my applications would not run. They would show up as processes (under windows), but never under the application tab within the Task Manager. The Processes typically had around 120K memory size, and sometimes there would be multiple processes.

The culprit is Avast DeepScreen. From Avast: "The DeepScreen Technology allows Avast to make real-time decisions when an unknown file is executed".

In my case Matlab was blocked, as were some other applications.

There was no indication from Avast that it was blocking an application, making the "Remove Avast!" comment above quite appropriate.

You need to go to your anti virus account->settings->exclusions or something similar and type in the file path as mentioned by others. I did it with avast. The 1st time around it didn't work so I uninstall and install and then went to exclusions and it works now.

A comment above refers to 'if you're de-referencing pointers'. If you use C or C++ that's what your program will do - that's how they work.

And as carpetsmoker says it's no use fixing your own Avast settings, it's all the people who want to download your software but are spooked by Avast.

Avast has a feature called cybercapture/deep scan.

This is what's causing your troubles.

It doesn't even bother with the heuristics.

If there is no authenticode signature, it WILL consider it suspicious, and send it to avast for them to scan, and until they declare its' okay you won't be able to run it. Once they have declared it okay, then all other with avast can run it safely if it matches their version.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!