Why Linux users should worry about malware and what they can do about it

Don't drop your guard just because you're running Linux.

Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If you’ve migrated to Linux or Mac seeking refuge from the never-ending stream of threats that seems to target Windows, you can breath a lungful of fresh air—just don’t let your guard down.

Though UNIX-like systems such as Mac OS X and Linux can claim fewer threats due to their smaller user bases, threats do still exist. Viruses can be the least of your problem too. Ransomware, like the recent version of KillDisk, attacks your data and asks you to pay, well, a king’s ransom to save your files. (In the case of KillDisk, even paying the ransom can’t save you if you’re running Linux.)

Keep your system updated

As I’ve written before, keeping your system updated will ensure that any security holes stay patched. Depending on the software you have installed, updates may be available daily. I recommend running an update at least once every two weeks.

If for some reason you’d prefer to keep the current versions of your software, you should still update your kernel at minimum.

Don’t trust strange networks

Next time you go to a college campus or coffee shop, take a look around. You’ll probably see a collection of shiny, relatively new laptops, with people busily clicking, typing, and swiping away. It’s a jackpot for thieves, but not the kind you might imagine.

Open Wi-Fi networks are a big liability. Anyone with the right software and wireless setup can sniff the unencrypted Wi-Fi traffic buzzing though the air. A virtual private network (VPN) should be a first line of defense whenever you’re on a network away from home or the office. If you’re unfamiliar with what a VPN does, take a minute to read up on them. When in doubt, VPN up.

If you want to use a VPN on Linux, you’ll have to make sure you have the right packages installed. Most consumer VPNs will likely use the OpenVPN or IPSec protocols, but corporate VPNs may use Cisco’s AnyConnect. You can even set up a VPN at home on the cheap. Be sure to consult your distribution’s package database to install the right plugin for the protocol you’re using. Fedora’s manual has a step-by-step description of how to connect to a VPN with the Gnome 3 desktop.

Keep your guard up

You can also install and run firewalls in Linux. Firewalls can help keep outsiders from making unwanted connections through the network. Unless your desktop or laptop is running a specific service (like Samba to share files with Windows machines), it’s best to make sure the firewall denies access to incoming connections.

Linux users have a number of tools to choose from. I like Fedora’s Firewalld because it is both versatile and easy to use, and allows a degree of granular control that’s not overwhelming. The program allows the user to set zones based on connection or interface, and to define and control what services are allowed to accept traffic. Firewalld is available for several distributions through GNOME Software or other package managers. Gufw is another firewall that allows far less granularity, but surpasses Firewalld in simplicity. 

Run antivirus scans once in a while

Wait, what?

That’s right, there are indeed viruses that target Linux. However, few of those viruses target desktop Linux, since the platform represents such a small percentage of market share. (Servers are another issue.) While Windows viruses may not affect a Linux machine, a Linux PC can still be a “carrier” for a virus that’s hiding in an executable file, script, or compromised document. 

Since Linux and UNIX-like servers are so popular, the platform is targeted by viruses. However, given the application of said servers, antivirus solutions for Linux are often meant for the enterprise and business world. Consumers that run Linux are largely left out of the anti-malware market on Linux.

But of course, there’s the open-source alternative. ClamAV is available for free (and is in most distribution repositories), but requires a little configuration to get working correctly.

Back up your data

Last but not least, be sure to back up your data. A good backup can be a life saver, sparing you the significant expense and headache of having to recover lost data from a dead or irreparable drive.

If you’ve got a backup of your data, you can pull a Sigourney Weaver and write off the PC’s filesystem as lost and start from scratch.

Since most of the software you’ll use with Linux can be downloaded from the internet for free, your data and configuration files are really the only things that matter. There are are several ways to back up data to an external source, including rsync and automatic backup services. However, the software you use often matters a lot less than the safety of the backup media and frequency of backup.

Linux is a rock-solid computing platform, but it’s not indestructible or impervious to attack. By keeping an eye on your system and using appropriate defensive measures when warranted, you can ensure that your Linux PC (and the Windows PCs you share files with) stays squeaky clean of digital creepy crawlies.

Join the PC World newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Alex Campbell

PC World (US online)
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?