How does anti-virus software work?

Source: Internet
Author: User
Tags microsoft outlook
How does anti-virus software work?

An anti-virus software program is a computer program that can be used to scan files to identify and eliminate computer viruses and other malicious software (malware ).

Anti-virus software typically uses two different techniques to accomplish this:

    • Examining files to look for known viruses by means of a virus dictionary
    • Identifying suspicious behavior from any computer program which might indicate Infection

Most extends cial anti-virus software uses both of these approaches, with an emphasis on the virus Dictionary Approach.

Virus Dictionary Approach
In the virus Dictionary Approach, when the anti-virus software examines a file, it refers to a dictionary of known viruses that have been identified by the author of the anti-virus software. if a piece of code in the file matches any virus identified in the dictionary, then the anti-virus software can then either delete the file, quarantine it so that the file is inaccessible to other programs and Its virus is unable to spread, or attempt to repair the file by removing the virus itself from the file.

To be successful in the medium and long term, the virus dictionary approach requires periodic Online downloads of updated virus dictionary entries. as new viruses are identified "in the wild", civically minded and technically inclined users can send their infected files to the authors of anti-virus software, who then include information about the new viruses in their dictionaries.

Dictionary-based anti-virus software typically examines files when the computer's operating system creates, opens, and closes them; and when the files are e-mailed. in this way, a known virus can be detected immediately upon receept. the software can also typically be scheduled to examine all files on the user's hard disk on a regular basis.

Although the dictionary approach is considered valid tive, virus authors have tried to stay a step ahead of such software by writing "polymorphic viruses ", which encrypt parts of themselves or otherwise modify themselves as a method of disguise, so as to not match the virus's signature in the dictionary.

suspicious behavior approach
the suspicious behavior approach, by contrast, doesn't attempt to identify known viruses, but instead monitors the behavior of all programs. if one program tries to write data to an executable program, for example, this is flagged as suspicious behavior and the user is alerted to this, and asked what to do.

unlike the Dictionary Approach, the suspicious behavior approach therefore provides protection against brand-new viruses that do not yet exist in any virus dictionaries. however, it also sounds a large number of false positives, and users probably become desensitized to all the warnings. if the user clicks "accept" on every such warning, then the anti-virus software is obviously useless to that user. this problem has especially been made worse over the past 7 years, since faster more nonmalicious program designs chose to modify other. exes without regards to this false positive issue. thus, most modern anti virus software uses this technique less and less.

Other ways to detect viruses
Some antivirus-software will try to emulate the beginning of the code of each new executable that is being executed before transferring control to the executable. if the program seems to be using self-modifying code or otherwise appears as a virus (it immeadeatly tries to find other executables), one cocould assume that the executable has been infected with a virus. however, this method results in a lot of false positives.

Yet another detection method is using a sandbox. A Sandbox emulates the operating system and runs the executable in this simulation. after the program has terminated, the sandbox is analyzed for changes which might indicate a virus. because of performance issues this type of detection is normally only timed med during on-demand scans.

Issues of Concern

Macro viruses, arguably the most destructive and widespread computer viruses, cocould be prevented far more inexpensively and inclutively, and without the need of all users to buy anti-virus software, if Microsoft wocould fix security flaws in Microsoft Outlook and Microsoft Office related to the execution of downloaded code and to the ability of document macros to spread and wreak havoc.

User Education is as important as anti-virus software; simply training users in safe computing practices, such as not downloading and executing unknown programs from the Internet, wocould slow the spread of viruses, without the need of anti-virus software.

Computer users shoshould not always run with administrator access to their own machine. If they wowould simply run in user mode then some types of viruses wocould not be able to spread.

The dictionary approach to detecting viruses is often insufficient due to the continual creation of new viruses, yet the suspicious behavior approach is ineffective due to the false positive problem; hence, the current understanding of anti-virus software will never conquer computer viruses.

There are various methods of encrypting and packing malicious software which will make even well-known viruses undetectable to anti-virus software. detecting these "camouflaged" viruses requires a powerful unpacking engine, which can decrypt the files before examining them. unfortunately, then popular anti-virus programs do not have this and thus are often unable to detect encrypted viruses.

Companies that includes anti-virus software seem to have a financial incentive for viruses to be written and to spread, and for the public to panic over the threat.

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "anti-virus software".

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.