Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I need a brief explanation about the differences between antiviruses and firewalls

share|improve this question
6  
"differences between antiviruses and firewalls" gives many such results in a number of popular search engines –  OrangeDog Dec 3 '13 at 13:55
    
→ OrangeDog: Is there one of these many to recommand with appreciated qualities like: brief, clear, analytical? A candidate good answer to this question perhaps? –  daniel Azuelos Dec 4 '13 at 12:18
add comment

4 Answers 4

Firewall and antivirus software are two fundamentally different and complementary kinds of security applications.

Firewall :

Also known as a 'packet filter'. Basically, software which monitors network traffic and connection attempts into and out of a network or computer and determines whether or not to allow it to pass. Depending on the sophistication, this can be limited to simple IP/port combinations or do full content-aware scans.

A firewall can be thought of as a screen or sieve that categorically strains out potentially harmful data.

Antivirus:

A software which will find programs/files/software/etc that might compromise your computer, either by being executable or by exploiting a vulnerability in the program normally supposed to process them -- Rootkits, trojans, or other types of malware.

It detects these kinds of harmful programs that are already installed on your computer or about to be installed.

It can perform various protective measures (based on the security settings in the Anti-virus software) such as quarantine, permanent removal, fix, etc.,

It will also look for potentially harmful files that are downloaded from the internet or attached to an email and notifies/removes it to protect your computer.

NOTE: Antivirus software has to be updated frequently; each new strain of virus will likely have different signatures.

share|improve this answer
add comment

File ≠ network

An antivirus is working at the file level where a firewall is working at the network protocol level. An antivirus will analyze web pages downloaded (which are local files), and E-mail attachments (which are also local files) to detect if they contain known signatures. A firewall will decide how the protocols 80/tcp or 161/udp (for example) will be allowed or not toward the internal network.

Late ≠ early

An antivirus is an afterward security approach. An antivirus will detect malware with signatures which are edited by anti-virus R & D team. This approach is most notably between 24 and one week late relative to the malware date of appearance. In some cases anti-virus signatures took months to be worldwide broadcasted. A firewall is an in advance security approach. A firewall will block bad (i.e. unwanted because they are most notably used to drive attacks) network protocols or network protocols that are inappropriatly used (for example to build a Denial of Service attack).

An oversimplified analysis is that an anti-virus approach is rather late and a firewall one is rather anticipated relatively to the attackers production of malware. On the other hand, an anti-virus permit to make another full filesystem check with a new signature database. An anti-virus will permit an afterward analysis (late isn't always a weakness). A firewall won't permit such an afterward analysis.

Everywhere ≠ border

To be efficient an anti-virus must be installed on all computers within a fleet to bring to a given level of security. A firewall has to be placed at any border delimiting network area of different security levels. The most traditionnal firewall positionning is at the border router to connect to the Internet.

share|improve this answer
    
No longer entirely accurate -- the latest generation of industrial-quality firewalls do what's generally termed 'application level content scan' and have a reasonably high success rate at spotting, say, a cross-site scripting attempt or a javascript exploit attempt in a HTTP request. –  Shadur Dec 3 '13 at 9:33
    
Right. Level 7 analysis isn't a network protocol analysis. Hence I name these softwares or appliances applicative firewall. –  daniel Azuelos Dec 3 '13 at 9:47
add comment

An antivirus will usually recognize a file's binary signature (roughly speaking, "it contains a byte sequence that's typical of XYZ virus").

For greater protection, many antiviruses are able to check system operation and block suspicious activity patterns (e.g., "this process is trying to write to a system file!").

A firewall could be considered a different implementation of the same "recognition" concept: instead of file systems, it can monitor network traffic and recognize both binary signatures and activity patterns, and block or allow, say, Web connections that start with GET or POST, but not CONNECT, or connections to services (such as Web) but not mail, unless your IP address matches the CEO office, and so on and so forth.

Both antiviruses and firewalls may have deeper inspection capabilities in order to unravel encrypted/compressed/stealthed/obfuscated executables (antiviruses) and complex Internet protocols (firewalls), and of course signature recognition is not so simple as this due to considerations about false positives, false negatives, efficiency, memory footprint, update capability and so on.

Commercially, a security product may integrate both - some would say that it should integrate both - and be referred to as either (or maybe "internet security", "complete security" and so on). So you'll see "the firewall options of the antivirus", or "virus defense capabilities of the firewall".

I've heard antiviruses referred to as filewalls :-)

share|improve this answer
    
It would take a specialized firewall to recognize binary signatures. It is misleading to say that a firewall is a specialized antivirus. –  schroeder Dec 3 '13 at 21:14
    
You're correct, of course. I tried to express it better. –  lserni Dec 3 '13 at 21:37
add comment

A Firewall is a part of a computer system that is designed to block unauthorized communications. Firewall will not protect our system from viruses or spyware and adware. A properly configured Firewall can minimize damage caused by spyware by blocking unauthorized access ; while, Antivirus is a software application used for the prevention, detection, and removal of malicious software, including Computer viruses, Trojan horses, spyware, and adware ; Firewall can be implemented in both software and hardware ; while Antivirus program is a software application program.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.