Welcome to TechForums.info!   


Do Linux Machines Get Virueses?

Linux Discussion

Do Linux Machines Get Virueses?

Postby Beachy » Tue Oct 10, 2017 10:09 pm

Taken From WHY LINUX IS BETTER http://www.whylinuxisbetter.net/

Forget about viruses

If your computer shuts itself down without asking you, if strange windows with text you don't understand and all kinds of advertisements appear when you don't ask for them, if emails get sent to all your contacts without your knowing it, then your computer probably has a virus. The main reason for this is because it runs Windows.

Linux hardly has any viruses. And that's not like "Oh well, not very often, you know". That's like "If you've ever heard of a real Linux virus, please tell me". Of course, a Linux virus is not impossible to get. However, Linux makes it very hard for this to happen, for several reasons:

Most people use Microsoft Windows, and pirates want to do as much damage (or control) as possible: therefore, they target Windows. But that's not the only reason; the Apache web server (a web server is a program located on a remote computer that sends web pages to your browser when you ask for them), which is open source software, has the biggest market share (against Microsoft's IIS server), but it still suffers from much fewer attacks/flaws than the Microsoft one.

Linux uses smart authorization management. In Windows you (and any program you install) usually have the right to do pretty much anything to the system. If you feel like punishing your PC because it just let your precious work disappear, you can go inside the system folder and delete whatever you want: Windows won't complain. Of course, the next time you reboot, trouble begins. But imagine that if you can delete this system stuff, other programs can, too, or just mess it up. Linux doesn't allow that. Every time you request to do something that has to do with the system, an administrator password is required (and if you're not an administrator on this system, you simply can't do it). Viruses can't just go around and delete or modify what they want in the system; they don't have the authorization for that.

More eyes make fewer security flaws. Linux is Open source software, which means that any programmer in the world can have a look at the code (the "recipe" of any program), and help out, or just tell other developers "Hey, what if blah blah, isn't this a security flaw?".

Posts: 17
Joined: Fri Feb 21, 2014 1:48 am

Do Linux Machines Get Virueses?

Postby Freman » Wed Oct 11, 2017 11:03 am

Well the virus can be on the computer, but most viruses are made for Windows.
Due to the of the differences between Linux and Windows it probably won't be able to run.
Not only will the files the virus uses be absent or in different places but it is much harder for a program to affect your computer in Linux.
Posts: 11
Joined: Thu Feb 06, 2014 9:58 pm

Do Linux Machines Get Virueses?

Postby Glifieu » Wed Oct 11, 2017 3:10 pm

It is possible for somebody to write a virus for Linux.
One group did it as a proof of theory. To date no Linux virus has ever been found in the wild. Worms however have occasionally struck apps which are traditionally found on Linux. PHP for example was the victim a few times of worms. There are also worms that take advantage of exploits for software traditionally found on Linux machines which then use security flaws in Linux to take control of the system. Sendmail for example runs on all platforms and occasionally has security problems which have compremised machines By default most Linux distros have sendmail enabled. By default most Windoze machines do not have sendmail installed at all.
I personally turn off the sendmail service right after install as I do not use it and it's just something that can go wrong.

It is possible to write a keylogger or other spyware for Linux, just more difficult. It does happen from time to time. Linux by design cannot get most types of viruses and worms which plague windows. Linux has real segragation of memory. With windows this is only a suggestion.
Most services in Linux run as separate users which means typically the worst you can do with a vulnerability in that app is crash it, not gain access to the machine as the user context it is running in has no local login privlages. In short it's a fence around apps run this way which makes it far more difficult to exploit any flaws in the software.

A common myth is that hackers do not target Linux machines. This is not true. In reality Linux boxes are prized both as a badge of honor and because of the built in capabilities they possess. Linux machines with most distros come default with a large arsonal of tools which are a treasure chest for both white and black hats alike. Gaining control of a Linux machine gives a hacker a very powerful platform to launch further attacks from. As such they are heavily targeted but it takes considerably more skill to hack one. Most real hackers run Linux as their primary OS. Script kiddies are not hackers. They barely qualify as computer users.

Most windows viruses today rely on common attacks which M$ refuses to fix or design flaws in the core of windows which M$ is unable to fix. Shattered for example, to fix this would require a complete rewrite of interapplication communication. This would cost M$ tens of millions of dollars to do. So they don't. They merely patch any exploits found in the wild to prevent that specific means of using the Shattered exploit but the serious security flaw is still there waiting for the next exploit to be designed.

Another common problem is M$'s inability to understand the concept of a sandbox. It's been around for 30 years now and is used by everybody else. M$ refuses to use sandboxes for any of their apps.

The fact that almost everybody runs windows in admin mode makes windoze extremely vulnerable. In Nix such as Linux, if you run some sort of malware it cannot touch system files without first finding some other security flaw and gaining root access. In windows anybody can modify system files pretty much at will and viruses take full advantage of that.

In Linux you see EVERYTHING that is running. In windoze most system level apps are hidden. So as a user you can hunt down and root out suspicious software running on your machine under Linux but not under windoze.

OSX and Linux are both versions of Unix.
Posts: 21
Joined: Wed Jan 15, 2014 10:04 am

Do Linux Machines Get Virueses?

Postby Odwolf » Wed Oct 11, 2017 8:15 pm

well it depends what environment you run on, the ones that mainly get keyloggers are Ubuntu, Kubuntu, Xbuntu and Mythbuntu. UNIX rarely get any viruses.
Posts: 13
Joined: Wed Mar 12, 2014 8:10 am

Do Linux Machines Get Virueses?

Postby Selig » Thu Oct 12, 2017 3:28 am

They can, but not usually the same ones that hit Windows or OSX.
Viruses are just programs that exploit certain weaknesses inherent on all platforms to cause problems or usurp control.

In theory you could recompile a Windows virus for Linux.
Early computers were DEX/VMS/Unix boxes and they did get the occasional worm or break in.
If you classify broadly, some of those early programs and exploits *could* be counted as viruses.
Posts: 25
Joined: Thu Jan 16, 2014 8:31 pm

Do Linux Machines Get Virueses?

Postby Fachnan » Fri Oct 13, 2017 5:01 am

Yes they can but since a large majority or people use Windows virus writers target this much larger group and usually get quicker results.
Posts: 16
Joined: Fri Feb 28, 2014 3:00 am

Do Linux Machines Get Virueses?

Postby Horado » Fri Oct 13, 2017 7:53 pm

virus can attack any os, what special for linux?
Posts: 13
Joined: Fri Apr 11, 2014 7:20 pm

Return to Linux


  • Related topics
    Last post