Linux malware includes viruses, trojans, worms and other types of malware that affect the Linux operating system. Linux, Unix and other Unix-like computer operating systems are generally regarded as very well-protected against, but not immune to, computer viruses.12
There has not yet been a widespread Linux malware infection of the type that Microsoft Windows software has; this is attributable generally to the malware's lack of root access and fast updates to most Linux vulnerabilities.2
- 1 Linux vulnerability
- 2 Anti-virus applications
- 3 Threats
- 4 See also
- 5 References
- 6 External links
Like Unix systems, Linux implements a multi-user environment where users are granted specific privileges and there is some form of access control implemented. To gain control over a Linux system or to cause any serious consequences to the system itself, the malware would have to gain root access to the system.2
In the past, it has been suggested that Linux had so little malware because its low market share made it a less profitable target. Rick Moen, an experienced Linux system administrator, counters that:
[That argument] ignores Unix's dominance in a number of non-desktop specialties, including Web servers and scientific workstations. A virus/trojan/worm author who successfully targeted specifically Apache httpd Linux/x86 Web servers would both have an extremely target-rich environment and instantly earn lasting fame, and yet it doesn't happen."3
The amount of malware targeting Linux has seen an increase in recent years, however. Shane Coursen, a senior technical consultant with Kaspersky Lab, claims, "The growth in Linux malware is simply due to its increasing popularity, particularly as a desktop operating system ... The use of an operating system is directly correlated to the interest by the malware writers to develop malware for that OS."4
Tom Ferris, a researcher with Security Protocols, commented on one of Kaspersky's reports, stating, "In people's minds, if it's non-Windows, it's secure, and that's not the case. They think nobody writes malware for Linux or Mac OS X. But that's not necessarily true,"4
Some Linux users do run Linux-based anti-virus software to scan insecure documents and email which comes from or is going to Windows users. SecurityFocus's Scott Granneman stated:
...some Linux machines definitely need anti-virus software. Samba or NFS servers, for instance, may store documents in undocumented, vulnerable Microsoft formats, such as Word and Excel, that contain and propagate viruses. Linux mail servers should run AV software in order to neutralize viruses before they show up in the mailboxes of Outlook and Outlook Express users.1
Because they are predominantly used on mail servers which may send mail to computers running other operating systems, Linux virus scanners generally use definitions for, and scan for, all known viruses for all computer platforms. For example the open source ClamAV "Detects ... viruses, worms and trojans, including Microsoft Office macro viruses, mobile malware, and other threats."5
The viruses listed below pose a potential, although minimal, threat to Linux systems. If an infected binary containing one of the viruses were run, the system would be infected. The infection level would depend on which user with what privileges ran the binary. A binary run under the root account would be able to infect the entire system. Privilege escalation vulnerabilities may permit malware running under a limited account to infect the entire system.
It is worth noting that this is true for any malicious program that is run without special steps taken to limit its privileges. It is trivial to add a code snippet to any program that a user may download and let this additional code download a modified login server, an open mail relay, or similar program, and make this additional component run any time the user logs in. No special malware writing skills are needed for this. Special skill may be needed for tricking the user to run the (trojan) program in the first place.
The use of software repositories significantly reduces any threat of installation of malware, as the software repositories are checked by maintainers, who try to ensure that their repository is malware-free. Subsequently, to ensure safe distribution of the software, checksums are made available. These make it possible to reveal modified versions that may have been introduced by e.g. hijacking of communications using a man-in-the-middle attack or via a redirection attack such as ARP or DNS poisoning. Careful use of these digital signatures provides an additional line of defense, which limits the scope of attacks to include only the original authors, package and release maintainers and possibly others with suitable administrative access, depending on how the keys and checksums are handled.
The classical threat to Unix-like systems is vulnerabilities in network daemons, such as SSH and web servers. These can be used by worms or for attacks against specific targets. As servers are patched quite quickly when a vulnerability is found, there have been only a few widespread worms of this kind. As specific targets can be attacked through a vulnerability that is not publicly known there is no guarantee that a certain installation is secure. Also servers without such vulnerabilities can be successfully attacked through weak passwords.
Linux servers may also be used by malware without any attack against the system itself, where e.g. web content and scripts are insufficiently restricted or checked and used by malware to attack visitors. Typically a CGI script (meant for leaving comments) by mistake allows inclusion of code exploiting vulnerabilities in the web browser.
Older Linux distributions were relatively sensitive to buffer overrun attacks: if the program did not care about the size of the buffer itself, the kernel provided only limited protection, allowing an attacker to execute arbitrary code under the rights of the vulnerable application under attack. Programs that gain root access even when launched by a non-root user (via the setuid bit) were particularly attractive to attack. However as of 2009 most of the kernels include address space layout randomization (ASLR), enhanced memory protection and other extensions making such attacks much more difficult to arrange.
An area of concern identified in 2007 is that of cross-platform viruses, driven by the popularity of cross-platform applications. This was brought to the forefront of malware awareness by the distribution of an OpenOffice.org virus called Badbunny.
Stuart Smith of Symantec wrote the following:
As is the case with any operating system, Linux is vulnerable to malware that tricks the user into installing it through social engineering. In December 2009 a malicious waterfall screensaver was discovered that contained a script that used the infected Linux PC in denial-of-service attacks.7
There are a number of anti-virus applications available which will run under the Linux operating system. Most of these applications are looking for exploits which could affect users of Microsoft Windows.
These applications are useful for computers (typically, servers) which will pass on files to MS Windows users. They do not look for Linux-specific threats.
- Avast! (proprietary; freeware version available)
- AVG (proprietary; freeware version available)
- Avira (proprietary; freeware version available)
- BitDefender (proprietary; freeware version available)
- Comodo (proprietary; freeware version available) 8
- ClamAV (free and open source software)9
- Dr.Web (proprietary) 10
- EScan for Linux (proprietary)
- F-Prot (proprietary; freeware version available)11
- F-Secure Linux (proprietary)
- Kaspersky Linux Security (proprietary)12
- McAfee VirusScan Enterprise for Linux (proprietary)13
- Panda Security for Linux (proprietary)14
- Symantec AntiVirus for Linux (proprietary)15
- Trend Micro ServerProtect for Linux (proprietary)
These applications look for actual threats to the Linux computers on which they are running.
- chkrootkit (free and open source software)16
- ESET (proprietary) (detects OS X, Windows malware as well)171819
- rkhunter (free and open source software)20
- Sophos (proprietary) (detects Windows malware, too)21
Linux malware can also be detected (and analyzed) using memory forensics tools, such as the following.
The following is a partial list of known Linux malware. However, few if any are in the wild, and most have been rendered obsolete by Linux updates or were never a threat. Known malware is not the only or even the most important threat: new malware or attacks directed to specific sites can use vulnerabilities previously unknown to the community or unused by malware.
- 42 3132
- Arches 33
- Alaeda - Virus.Linux.Alaeda34
- Bad Bunny - Perl.Badbunny635
- Binom - Linux/Binom36
- Bliss - requires root privileges
- Caveat 3940
- Coin 4142
- Diesel - Virus.Linux.Diesel.96243
- Hasher 4445
- Kagob a - Virus.Linux.Kagob.a46
- Kagob b - Virus.Linux.Kagob.b47
- Lacrimae (aka Crimea) 4849
- MetaPHOR (also known as Simile)50
- Nuxbee - Virus.Linux.Nuxbee.140351
- Podloso - Linux.Podloso (The iPod virus)5455
- RELx 56
- Rike - Virus.Linux.Rike.162757
- RST - Virus.Linux.RST.a58 (known for infecting Korean release of Mozilla Suite 1.7.6 and Thunderbird 1.0.2 in September 200559)
- Satyr - Virus.Linux.Satyr.a60
- Vit - Virus.Linux.Vit.409661
- Winter - Virus.Linux.Winter.34162
- Winux (also known as Lindose and PEElf)63
- Wit virus64
- ZipWorm - Virus.Linux.ZipWorm65
- Adm - Net-Worm.Linux.Adm66
- Cheese - Net-Worm.Linux.Cheese68
- Linux.Darlloz - Targets home routers, set-top boxes, security cameras and industrial control systems.7071
- Mighty - Net-Worm.Linux.Mighty73
- Millen - Linux.Millen.Worm74
- Ramen worm - targeted only Red Hat Linux distributions versions 6.2 and 7.0
- SSH Bruteforce76
- Granneman, Scott (October 2003). "Linux vs. Windows Viruses". Retrieved 2008-03-06.
- Yeargin, Ray (July 2005). "The short life and hard times of a linux virus". Retrieved 2008-06-24.
- "Virus Department". Retrieved 2009-10-11.
- Patrizio, Andy (April 2006). "Linux Malware On The Rise". Retrieved 2008-03-08.
- ClamAV (2010). "Clam AntiVirus 0.96 User Manual". Retrieved 2011-02-22.
- Smith, Stuart (June 2007). "Bad Bunny". Retrieved 2008-02-20.
- Kissling, Kristian (December 2009). "Malicious Screensaver: Malware on Gnome-Look.org". Retrieved 2009-12-12.
- Comodo Group (2012). "Comodo Antivirus for Linux". Retrieved 17 October 2012.
- "ClamAV". Retrieved 2011-02-22.
- "Dr.Web anti-virus for Linux". Dashke. Retrieved 2010-05-25.
- FRISK Software International (2011). "F-PROT Antivirus for Linux x86 / BSD x86". Retrieved 13 December 2011.
- "Kaspersky Linux Security - Gateway, mail and file server, workstation protection for Linux/FreeBSD". Kaspersky Lab. Retrieved 2009-02-11.
- "McAfee VirusScan Enterprise for Linux". McAfee. Retrieved 2012-12-27.
- "Panda Security Antivirus Protection for Linux". Panda Security. Retrieved 2009-01-13.
- Symantec (January 2009). "System requirements for Symantec AntiVirus for Linux 1.0". Retrieved 2009-03-07.
- "ESET File Security - Antivirus Protection for Linux, BSD, and Solaris". Eset. Retrieved 2008-10-26.
- "ESET Mail Security - Linux, BSD, and Solaris mail server protection". Eset. Retrieved 2008-10-26.
- "ESET NOD32 Antivirus for Linux Gateway Devices". Eset. Retrieved 2008-10-26.
- "Root Kit Hunter".
- "Botnets, a free tool and 6 years of Linux/Rst-B | Naked Security". Nakedsecurity.sophos.com. 2008-02-13. Retrieved 2013-08-11.
- "Second Look".
- Leyden, John ( 21 November 2012), Evildoers can now turn all sites on a Linux server into silent hell-pits, The Register, retrieved 21 November 2012
- https://blogs.rsa.com. "Thieves Reaching for Linux—"Hand of Thief" Trojan Targets Linux #INTH3WILD » Speaking of Security - The RSA Blog and Podcast". Blogs.rsa.com. Retrieved 2013-08-11.
- Vaughan, Steven J. "Linux desktop Trojan 'Hand of Thief' steals in". ZDNet. Retrieved 2013-08-11.
- Florio, Elia (February 2006). "Linux.Backdoor.Kaiten". Retrieved 2008-03-08.
- Florio, Elia (December 2007). "Linux.Backdoor.Rexob". Retrieved 2008-03-08.
- Vervloesem, Koen (December 2009). "Linux malware: an incident and some solutions". Retrieved 2010-09-16.
- herm1t (August 2008). "Linux.42: Using CRC32B (SSE4.2) instruction in polymorphic decryptor".
- Ferrie, Peter (September 2008). "Life, the Universe, and Everything".
- herm1t (August 2006). "Infecting ELF-files using function padding for Linux".
- Kaspersky Lab (May 2007). "Virus.Linux.Alaeda". Retrieved 2008-03-08.
- Smith, Stuart (May 2007). "Perl.Badbunny". Retrieved 2008-03-08.
- McAfee (December 2004). "Linux/Binom". Retrieved 2008-03-08.
- Rieck, Konrad and Konrad Kretschmer (August 2001). "Brundle Fly 0.0.1 - A Good-Natured Linux ELF Virus". Retrieved 2008-03-08.
- de Almeida Lopes, Anthony (July 2007). "Project Bukowski". Retrieved 2008-03-08.
- herm1t (February 2008). "Caveat virus".
- Ferrie, Peter (July 2009). "Can you spare a seg?".
- herm1t (October 2007). "Reverse of a coin: A short note on segment alignment".
- Ferrie, Peter (September 2009). "Heads or tails?".
- Kaspersky Lab (February 2002). "Virus.Linux.Diesel.962". Retrieved 2008-03-08.
- herm1t (October 2007). "Hashin' the elves".
- Ferrie, Peter (August 2009). "Making a hash of things".
- Kaspersky Lab (April 2001). "Virus.Linux.Kagob.a". Retrieved 2008-03-08.
- Kaspersky Lab (undated). "Virus.Linux.Kagob.b". Retrieved 2008-03-08.
- herm1t (June 2008). "README".
- Ferrie, Peter (February 2008). "Crimea river".
- The Mental Driller (February 2002). "Metamorphism in practice or "How I made MetaPHOR and what I've learnt"". Retrieved 2008-03-08.
- Kaspersky Lab (December 2001). "Virus.Linux.Nuxbee.1403". Retrieved 2008-03-08.
- herm1t (November 2007). "INT 0x80? No, thank you!".
- Ferrie, Peter (September 2009). "Flying solo".
- Ferrie, Peter (April 2007). "Linux.Podloso". Retrieved 2008-03-08.
- Ferrie, Peter (April 2007). "The iPod virus". Retrieved 2008-03-08.
- herm1t (December 2009). "From position-independent to self-relocatable viral code".
- Kaspersky Lab (August 2003). "Virus.Linux.Rike.1627". Retrieved 2008-03-08.
- Kaspersky Lab (January 2002). "Virus.Linux.RST.a". Retrieved 2008-03-08.
- "The ways of viruses in Linux HOW SAFE?". Retrieved 2009-08-21.
- Kaspersky Lab (March 2001). "Virus.Linux.Satyr.a". Retrieved 2008-03-08.
- Kaspersky Lab (March 2000). "Virus.Linux.Vit.4096". Retrieved 2008-03-08.
- Kaspersky Lab (October 2000). "Virus.Linux.Winter.341". Retrieved 2008-03-08.
- Rautiainen, Sami et al. (March 2001). "F-Secure Virus Descriptions: Lindose". Retrieved 2008-03-08.
- "The Wit Virus: A virus built on the ViT ELF virus". Retrieved 2008-12-31.
- Kaspersky Lab (January 2001). "Virus.Linux.ZipWorm". Retrieved 2008-03-08.
- Kaspersky Lab (May 2001). "Net-Worm.Linux.Adm". Retrieved 2008-03-08.
- Rautiainen, Sami (April 2001). "F-Secure Virus Descriptions: Adore". Retrieved 2008-03-08.
- Kaspersky Lab (May 2001). "Net-Worm.Linux.Cheese". Retrieved 2008-03-08.
- Rautiainen, Sami (April 2001). "F-Secure Virus Descriptions: Kork". Retrieved 2008-03-08.
- Mohit Kumar (2013-11-30). "Linux worm targeting Routers, Set-top boxes and Security Cameras with PHP-CGI Vulnerability". The Hacker News. Retrieved 2013-12-04.
- Joe Casad (3 December 2013). "New Worm Attacks Linux Devices". Linux Magazine. Retrieved 4 December 2013.
- McAfee (June 2005). "Linux/Lupper.worm Description". Retrieved 2010-10-10.
- Kaspersky Lab (October 2002). "Net-Worm.Linux.Mighty". Retrieved 2008-03-08.
- Perriot, Frederic (February 2007). "Linux.Millen.Worm". Retrieved 2008-03-08.
- Rautiainen, Sami et al. (September 2002). "F-Secure Virus Descriptions: Slapper". Retrieved 2008-03-08.
- Voss, Joel (December 2007). "SSH Bruteforce Virus by AltSci Concepts". Retrieved 2008-03-13.dead link
- Linuxvirus on the Official Ubuntu Documentation