Are viruses in Linux that unlikely?

roland's picture

I want to beat on Linux for a minute. Sure, there are not many viruses out there for Linux, but that doesn't mean much.
The fact that linux has a system/user mode doesn't mean much either. Most vulnerabilities source from applications which may run in kernel mode and have issues. Also, does a virus need to have a root privileges to screw up your day? Of course not

Also, most distros come with a sudo feature which gives some sense of security. (i.e. switch to kernel mode) but that's in itself very unsafe. Here's the pseudocode for a virus.

Start in user mode and go into the background.
Do evil stuff.
Keep calling sudo until successful.
Do evil stuff.

The problem with all operating systems is that they are flawed, not necessarily because of coding issues, but because of people make mistakes. It doesn't matter what you run so much as how much you understand about operating systems and security.