The ways of viruses in Linux


Article from Issue 62/2006

Some say an attack is looming, and others say we don’t have to worry. What’s the real story on viruses in Linux?

Linux may not be as vulnerable as Windows, but if you think Linux viruses don't exist, you’d better think again. Virus writers have any number of possibilities for passing viruses into Linux, although the damage will be limited if you’re careful and follow a few simple rules. In this article, I’ll describe some examples of how Linux viruses work, and I’ll give you some tips for keeping your system safe. A Theoretical Linux Virus Most Linux distributions come with gzexe, a small utility that compresses executable files and automatically uncompresses them when they’re started. For example, you can copy /bin/date to /tmp and run gzexe /tmp/date to compress the executable file. The size of /bin/date and /tmp/date should differ, and the latter should be noticeably smaller. Now try to run both files. Do you notice any difference?

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Virus Checkers

    So you want a virus checker? We’ll show you what we found when we toured some of the top scanners for the Linux environment.

  • KlamAV

    Linux may not be as virus-ready as Windows, but who wants to harbor pointless malware? Now you can hunt for viruses with KDE's KlamAV, a desktop front-end for the ClamAV Open Source virus protection system.

  • Amavisd-new

    Sometimes the best time to stop bad mail is before it arrives. AmavisdNew is an Open Source interface for integrating spam and virus filtering with your mail server.

  • Live Distros with NTFS

    A Linux live distro may be just what you need to recover a Windows computer brought down by a system problem or virus attack. Knoppix creator Klaus Knopper gives you some tips for accessing NTFS from live Linux.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More