Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there no reports ever of a single Linux machine getting any spyware and or malware / adware on it? I just don't want to be nieve to thinking I am safe because I use Linux. I don't really worry about any viruses because, well...there is no registry but am worried I may have spyware and or malware on my box that could lead to bigger problems.
I've never seen firsthand or even heard any reports of linux spyware either. There definitely are Linux viruses, but they are exceedingly rare. If you have windows shares on your system (like Samba) then antivirus is a good idea as the Samba share can become a vector for virus infection on the Windows boxes.
In linux, the most crucial security measure is really to keep your box updated with security patches. Most cracked Linux systems that we see are compromised using an exploit for a known vulnerability that has a patch already released for it. I'd also recommend taking a look at the general hardening guides in the Security References thread at the top of the forum.
Windows gets murdered with malware and spyware for one simple reason ... most Windows users:
Run with all passwords completely turned-off.
Run with Administrator status!
In other words, despite Windows' considerable and sophisticated security model (no, really!), they are .. needlessly and avoidably .. sitting ducks.
When any program out-of-the-blue comes along and asks to do something nasty, the computer obediently replies, "Yes, master."
All you really gotta do, both in Windows and in Linux, to cut-out most of this nonsense, is this:
Actually set up and use user-names and passwords. Don't use words drawn straight from a dictionary.
Use root (or Administrator) privileges only on one account, used only for system maintenance, and actually log-in to that account only when performing these activities. Carefully log-out again.
As your primary login, set up a "Limited account" for yourself. This account is a pure-and-simple ordinary-Joe, with no special privileges, no special access rights whatsoever.
If you routinely wear several hats at your company, set up a separate user-id for each role that you play. For instance, the Accountant routinely deserves a separate office from the CEO, doesn't she? And the sales-guy has his own cube? Spread stuff out according to their "need to know and use." ("The system maintainer" also deserves an account of his own, for everything that is related to the maintenance and installation of software on the system except what demands root.) Yes, all their passwords are different. Yes, every single one of these separate roles may be done by "you."
Carefully review the list of user accounts that exist on your system, and remove or disable unnecessary ones. Don't support a "guest."
Carefully review the list of services, or daemons, running on your machine and permanently disable all the ones you don't need.
Know where and how and from whom any "system updates" come. Vendors never use e-mail, for instance. Provably secure update-mechanisms do exist, and all OS vendors use them.
Be skeptical.
Now, when adware and malware wants to do something nasty to the system, they simply cannot do it. They don't have the privilege to do so. If they want to infect a system file, again they can't do it: no write-access. All they can do is to create mayhem with your files, and to defend against that, set up a simple system of on-disk backups. (And, USB 2.0 hard disks that fit in your pocket, or in a safe-deposit box, and hold gigabytes of info are available for cheap.)
Most of the time, the threat you're defending against is an automated cat-burglar, who is simply "playing the numbers," combing through thousands of IP-addresses per second looking for vulnerabilities. By the very simple fact that you are using security, and therefore show the slightest indication that you have given it some thought, you immediately and greatly reduce the probability that anyone will "bother to bother you." They'll try the locks and windows, find them bolted, and ... move on to the next house.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.