r/linuxquestions • u/warmerspy • Apr 01 '19
If Linux had the same amount of users as Windows. Would we see more malware on Linux?
Just a late night thought I got. People claim Linux is more secure than Windows, which it probably is. But wouldn’t malware be more common on Linux if it was more mainstream?
52
u/shrimpster00 Apr 02 '19
The Linux kernel and GNU ecosystem are definitely much more secure than Windows. It's harder to develop a virus for Linux than for Windows, but that isn't to say that it doesn't ever happen. If you ever feel like killing 20 minutes, looking up rootkits is worth a Google.
But yes, if Linux were more popular, we would see more Linux malware than we do right now, to the point that some distros would probably ship with an antivirus program included.
42
u/wk4327 Apr 02 '19
There's as much shoddy code in Linux as anywhere else. People find problems in Linux apps all the time, and many of them are getting actively exploited. And if user base was larger, there would have been even more shoddy code written. I get it that we all here are proud for the OS we use, but to say it's "much more secure" is wishful thinking.
Source: writing code for Linux.
16
u/shyouko Apr 02 '19
Can confirm.
Source: reads and hates code for Linux and it's ecosystem.
Disclaimer: Hate it but that pays my bill so I'm fine doing this.4
u/bboone0217 Apr 02 '19
Lol you and me both!
3
u/shyouko Apr 02 '19
Probably we both'd prefer working with some cleaner code base but that's not something we can choose. Cheers mate.
1
u/DavidBittner Apr 02 '19
Considering nearly all software is downloaded from a package manager that is signed, and the signatures are verified locally, it's definitely more secure. Sure, there are sure as hell just as many OS vulnerabilities but when it comes to actually getting that software on the machine, it's much harder than Windows.
2
u/wk4327 Apr 03 '19
Can you explain how did you come to that conclusion?
1
u/DavidBittner Apr 03 '19
I mean, in Windows you don't use a package manager to install software. People search for "free google chrome download" and click the first link.
Now on Linux, you know that what you're downloading (with your package manager) is digitally signed and verified by the upstream package maintainers. There's much much more that has to go wrong to get malware.
But yeah, once you're down to running that executable unless you're using SELinux, both OS's are virtually the same. If you give root/administrator access to anything all bets are off.
3
u/wk4327 Apr 03 '19
but then you are comparing apples to oranges. Linux user only using software from package manager is akin to windows user only using software from windows store, and I would imagine windows store is heavily policed, so you are reasonably safe from exploits there.
This all comes back to OP, and I think he's onto something: linux right now has very few users and very different kind of users. Traditionally, linux was only for most tech-savvy folks, the ones who have a good idea about IT in general. They are more likely to spot infiltration and perhaps even trace back the attempt. In other words, hard targets. Why write malware for people who are a) careful and can fight back, and b) few? Much juicy and plentiful targets are the one on established platform. That I think is the main reason you don't see such a widespread malware epidemic on linux at this time, not necessarily the code quality, or stellar repository maintenance. We are yet to see what will happen once linux desktop gains more adoption in non-technical user space
7
u/Plasma_000 Apr 02 '19
No way - I definitely prefer the general layout of the linux kernel over windows kernel, but windows has plenty more sandboxing and exploit mitigation techniques implemented. Developing a virus for linux is arguably easier also, since it's all open source, so there's less research involved. (Speaking as someone who wrote a rootkit for another open source platform)
2
Apr 02 '19
It doesn't really matter if it's more secure, if a naive user clicks a link and just enters their password after downloading a file because that's what they're used to, then they've got some unknown package running as root.
3
u/edman007 Apr 02 '19
I disagree, Linux severally lacks protections against installing unknown code. OSX and Windows and Android all make it difficult to download an installer off some random website and install it, they give you a pop-up saying you didn't get it from a regular source. They also use code signing to help identify malware and ban it.
I do think Linux tends to be somewhat more secure, but that means nothing if you don't idiot proof the OS, because sketchy websites will always find a way to drive by download their "speedup" tool, if the user is running or installing random code everything can be bypassed and it's not a flaw. You need idiot checks for that, Linux has few if any.
12
u/sprkng Apr 02 '19
they give you a pop-up saying you didn't get it from a regular source
I don't think that has stopped anyone from installing anything, ever. You get these popups for pretty much anything you install (talking about Windows btw), including most drivers and trustworthy programs so the dialog just becomes a small annoying extra step. It's like those ToS dialogs where you have to press "accept" to continue with the installation, pressing that button doesn't mean that you've actually read the terms and agree to them. Experienced users know not to install software from untrusted sources, but we didn't learn that from a popup
I'm not disagreeing with you that an OS needs idiot proofing to be safe from malware, and that Linux would need more of it if it were to used by 50% of the population btw.
9
u/Tzig1 Apr 02 '19 edited Apr 02 '19
My Linux teacher once told us a story:
One day, grandma connects to her webmail and sees an email from "Your grandson" with the object "my holiday" and the attachment "look at my photos.exe". Grandma really wants to see the photos so she click on the .exe but something happens: a big window pops up, the rest of the screen goes black and she hears an error sound. On the big window, two buttons: "Yes" and "No"
Grandma remembers what everyone tells her constantly: "if you see a window with yes or no and you don't know why, always click no !!" So, like the smart grandma she is, she clicks no.
And she waits... But after five minutes she doesn't see any photo at all !!! So she clicks on the attachment again ! And the windows reappears. But grandma is smart, she knows if she clicks on "no" nothing is going to happen. So she clicks on yes !
Sure, if you give execution rights to a file it can fuck your PC up just as bad, the thing is: grandma won't know how to chmod or how to find the menu to change rights, and since all files downloaded (in theory) don't have execution rights she'll be able to open all the PNGs she wants but no virus at all.
Sure you can infect a Linux machine, but it's gonna need a bit more work than a bash script, you need to find a vulnerability first, just hoping a user will execute your program won't get you anywhere
0
Apr 02 '19
[deleted]
3
u/Tzig1 Apr 02 '19
Definitely yeah, but if your script is never executed it's completely useless
2
u/houghi Apr 02 '19
People will run
wget http://example.com/script && sh scriptif you tell them they get something for free. People still enter their credit card details to get a free iPhone.And don't believe that people just run a script? Just look how popular things like Pi-Hole and PiVPN are. For the beginners (who the websites are directed at) it will be unclear what actually is done. They will also be unable to understand it if they look at they script.
And the fact that they can safely use them lowers the idea that others might have less honest intentions.
And with the popularity of things like Gitgub, plenty of people have no idea what code they are running. With just using your distro, the risk is a lot lesser.
It would be good if distro's did a lot more of making things like PiHole and PiVPN a thing of their configuration. It shoulkd not be too difficult to implement it in e.g. YaST for openSUSE. And Ubuntu always claims to be user friendly, so why not add something that can do this, then open source it and let other distro's use it easily.
1
u/Tzig1 Apr 02 '19
You're definitely right, but it would still require them to open a terminal, obviously some would gladly do it for free money or free fortnite skins but those people are already installing viruses on there windows PC, sure have ways to prevent it altogether would be great, and I'm definitely on your side.
Sure Linux doesn't have a magic wand to make virus disappear but the grandma in the story wouldn't have an infected PC ! I think if more people use Linux there would be more security features, maybe bash would block weird commands or ask you some technical questions to prove to it that you know what "rm -rf /" does
24
Apr 02 '19
It's this simple. Computers are made to do whatever the user wants them to do.
If the user wants the computer to give elevated privileges to a program that pops up asking for them, then that computer is going to do that.
If that program is malware, then the computer is going to be infected.
So, the answer to your question is - yes. Look at Android.
5
u/Rafael20002000 Apr 02 '19
I know this is offtopic but, when the computer is designed to what u want, why the f*ck Odin's blocks stock firmware installations?
6
u/christoosss Apr 02 '19
Well technically it does but it's just working for a different definition of You.
1
3
u/Dangerous_Chance Apr 02 '19
I don't want my computer to randomly shut down and install updates yet it does it (Win10) so clearly computers are not made to do whatever I as the user wants but apparently they're made to do what some company wants.
2
1
Apr 02 '19
Thats why many users hate it and many only put up with it, because they have little or no choice...
13
u/PracticalPersonality Apr 02 '19
You'd certainly see more malware crafted for Linux, and you'd certainly see a rise in the successful penetration of Linux systems, but you'd never see the kind of widespread close-range shots to the head that Windows experiences. Just look at Mac's OSX as an example. It has a much larger market share for desktops than Linux, but even though there are many malwares for it, they don't take the keys and run as frequently as Windows malwares. The UNIX-like operating systems (UNIX, Linux, BSD, etc.) built around the concepts of least privilege and multiple users will always be harder to pop than something built for the single user expecting godlike control at all times.
15
u/Piportrizindipro Apr 02 '19
Most servers in the world composing the internet are running linux and still there isn't a rampant malware problem among them. The open source ecosystem behind Linux simply led to more secure code.
11
u/oneupninja Apr 02 '19
While I agree with your point friend, I would also like to point out that majority of Windows usage is on client devices (not servers). This means if Linux will become equally popular, it will have the same underlying problem - silly end users. You can build most secure system in the world, but if the user runs a malicious code by clicking on that email from "billionaire Nigerian prince", you cannot guarantee safety.
8
Apr 02 '19
That's also not the fault of the OS. Malicious code would need sudo to do anything destructive, and if the end user has that password it implies they know how and when to use it.
3
Apr 02 '19
Malicious code would need sudo to do anything destructive
To the system*. Without
sudo, you can still:
Steal the user's browser password autocomplete database or other account information.
Steal other miscellaneous secrets, including SSH keys and whatnot, that may allow privileged access to other machines.
Hijack the user's running X session entirely.
Set up a
sudowrapper that steals the password the next time the user enters it (if applicable).Exploit running code on the system to gain elevated privileges.
And more. Relevant XKCD.
2
u/da_predditor Apr 02 '19
Sudo uses the user’s own password. Why wouldn’t they have their own password?
5
u/TobTobXX Apr 02 '19
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.2
u/houghi Apr 02 '19
Well, sudo also needs to be given those rights. I still use
su -instead of sudo and have onlyt around 5 commands that I, as a user, can do with sudo and it does not need a password. All the rest will be declined. The password for user and root are different.Ubunutu decided this was not user friendly enough an gave up usability for security. That is a great tradeoff if you know what you are doing. Understandabaly (sp?) most new users do not have that knowledge.
To me, using
su -, doing my thing and logging out instead of usingsudo <whatever>and then entereing a password makes it more obvious that I am changing hats and am wearing a adminitrators head, instead of a users hat.So people could hack my system, get my rights and still be limited in what they are able to do. Even if I download something and run it without looking that does
sudo apt install somethingI will get an error, even if I entered the correct password.So I use sudo ONLY for things I want to have the user rights to do and not any special rights. One example is
tail, as some logfiles will be read only by root.0
Apr 02 '19
Think that’s a bit of a reach. As you say....on servers. Which are usually secured behind multiple redundant layers of security. And used directly by few. Only sysadmjns are installing software. If you had the majority of users using this as their main desktop experience that changes. People going no password. Multiple users. Email. It would definitely see a ton more malware as these normal users go about their daily business.
2
u/Piportrizindipro Apr 02 '19
We're talking about the operating system itself. It's true that having a weak password would still lead to vulnerabilities and the potential of being hacked. Sure, you can have a user that runs as root and opens themselves up to attacks. Perhaps there would be a little more malware than the present baseline, but definitely not on the scale of Windows presently. There are a sizable number of people using Linux now and proportionally the occurrence of malware doesn't seem to be anywhere near as rampant. I believe it would actually scale and still be much more secure than the present alternatives.
1
Apr 02 '19
No, we aren’t talking about the OS itself. The question was if Linux was in wide adoption like Windows would we see more malware. The answer is yes.
2
u/Piportrizindipro Apr 02 '19
I suppose I didn't interpret the implication of the question the same way that you did. Because I wouldn't answer it the same way.
8
u/ahk-_- Apr 02 '19
Let's assume that 70% of the desktop computer users started using different variants of GNU/Linux. While this will cause an increase in malware, this will also help produce more bug reports, and more investments to make the OS secure. We might even see the rise of "anti-malware" software that reads the deb, rpm, etc files and scans for potentially harmful code. Such anti-malware software would be far more effective for GNU/Linux compared to MS Windows.
With the rise in malware, distros will (optionally) start warning users when they try to install something via unofficial sources. Other "in-built" safety measure, which we aren't prioritizing right now will be implemented. Also, large investments will be made to develop software for GNU/Linux which will mean huge improvements to the security of our repositories, software, and huge improvements to the security of "build farms" that some distros deploy.
So yes, quantity and quality of malware will increase with the rise in user base, but so will the counter measures and overall security of the system. Therefore I don't think that malware will be a problem for GNU/Linux users.
A side note - Servers around the world run GNU/Linux - so it already has a large user base, but I assumed that you meant GNU/Linux PC users.
Also a side note - This was a fun hypothetical to think about. I wonder if there is a subreddit for discussing hypothetical scenarios.
0
Apr 02 '19
[deleted]
1
u/ahk-_- Apr 02 '19
Since software for GNU/Linux consists of a large number of scripts and other human-readable files, scanning them for malware would be much easier. Also, binary blobs/files can be securely scanned by free software security tools that are open to third-party audits.
15
Apr 02 '19
Linux is already the base of the most used mobile operating system.
-14
u/MorningCoffeeZombie Apr 02 '19
*systems
Android = based on Linux
CrApple stuff = Based on BSD
But yep- it's already everywhere
13
u/moderately-extremist Apr 02 '19
Maybe I'm misunderstanding what you are trying to say... but you know BSD is not Linux, right?
7
15
Apr 02 '19
I don't believe so. Windows users are accustomed to downloading random software from the internet while most Linux users download software from the official repositories. The repos would have to be compromised in order to spread anything.
10
u/Eleventhousand Apr 02 '19 edited Apr 02 '19
The repos would have to be compromised in order to spread anything.
I think that if Linux desktop PC marketshare was increased by 50 times, you would see other avenues for installing becoming more common though. I think that you would find more people downloading .deb files from random sites. Additionally, though I love snap and appimage, with a vastly larger marketshare, I think similar deployment mechanisms would exist that don't go through a traditional repo, but are more like a software store.
edit: I meant to say 50 times, not 50%
2
u/Phenoix512 Apr 02 '19
You would also see people finding vulnerabilities in the programs you install similar to heartbleed I think it was
1
u/superluig164 Apr 02 '19
There are, even now, quite a few programs out there that don't have PPAs that you can add yourself, and instead have you download a .deb file. Google Chrome is a prime example. So yes, people will always download .deb files.
3
u/bigfig Apr 02 '19
If Linux users had the same amount of users as windows, the user base would be more like the windows user base.
1
u/excentricitet Apr 02 '19
Don't you think that arch or equivalent can be sold to large corporation in order to promote their products?
0
u/wk4327 Apr 02 '19
I wouldn't be so certain everything repositories is secure. First off, there has been cases when malware was slipped into repositories without compromising them. There were cases, a very prominent being Linux mint, where a repository was actually compromised, and they were shipping tainted iso CD downloads for months. Sometimes you don't even need to compromise central distributor's repo, people are installing tons of PPAs; and if all of that want enough the malware could be in one of satellite repositories, like nodejs npm and such.
We really are at mercy of hundreds of unpaid individuals to do the good jobs vetting all these sources, but even if they were paid as much as Google pays, there is practically no way to review everything. There's just too much code. Malware happened in the past, and it will happen in future.
6
u/deifius Apr 02 '19
I believe that part of what makes linux secure is the open-ness. In terms of open source code, the potential vulnerabilities are testable by a much wider community than a similar closed source project.
In terms of open community, more people have more to gain by resolving security vulnerabilities than by exploiting them. No matter who you are, your code can be accepted by the linux dev team, as a matter of public record, building out your CV. in contrast, there are specific roles in the MS ecosystem that are allowed to benefit from security patches. Anyone outside that niche can only benefit by exploiting vulnerabilities.
2
u/LuisAyuso Apr 02 '19
In some way, linux already has more users than windows. Is just that is not for the desktop use. We have seen that linux based android machines suffer of quite a large amount of malware. Therefore yes. More potential "customers" for your malware justify expending some time on looking for the hole.
2
u/boy_bulabog Apr 02 '19
Isnt Linux already mainstream though? i mean most web servers and iot devices run some form of linux?
0
u/agentk0921 Apr 02 '19
In businesses, yes. Definitely not home users. Businesses invest lots of money into practicing security. Home Users don't know crap about security.
6
u/JonnyRocks Apr 02 '19
Yes it would
0
Apr 02 '19
[deleted]
7
u/fallwalltall Apr 02 '19
Those are sophisticated users. Consumers will still sudo anything to see hot, lonely singles in [insert city].
3
u/DerekB52 Apr 02 '19
You have to understand how viruses get installed. Most viruses are installed by users downloading programs from dodgy sites on the internet. That doesn't happen to most linux users, because linux users are a little more technically inclined. We install from repos or install software from source. Even when we download programs, (I download .debs, .rpms, and .AppImages), we are a little smarter than people who just click checkboxes in some windows installer. We go to trusted sites and get good binaries.
There is also the fact that Linux is just a more secure system. It's harder for viruses to get superuser(admin) rights to install stuff. If Linux market share jumped 20% more developers may try to write viruses, and I'm sure new backdoors would be discovered. But, they'll also get fixed faster. Linuxing being a FOSS community really helps with stuff like that.
3
u/cyber_rigger Apr 02 '19 edited Apr 02 '19
If Linux had the same amount of users as Windows
According to this (counting Android) Linux has reached plurality of market share
So, it has already happened.
0
u/KiWindows Apr 02 '19
He was asking for desktop market share...
0
u/cyber_rigger Apr 02 '19 edited Apr 02 '19
He was asking for desktop market share...
Where is "desktop" said?
If Linux had the same amount of users as Windows. Would we see more malware on Linux? (self.linuxquestions)
submitted 13 hours ago by warmerspy
Just a late night thought I got. People claim Linux is more secure than Windows, which it probably is.
But wouldn’t malware be more common on Linux if it was more mainstream?
0
u/KiWindows Apr 02 '19
I'm agree on the fact that it wasn't explicitly asked, but it was
... Or I think so, as by "users" he would mean desktop user, not sysadmins / developers / others for me
1
u/yotties Apr 02 '19
If linux uptake increases on the desktop the malware will increase as well. Both pull (more attractive targets will choose linux) and push factors (some malware makers will give linux a try) will be at play.
As ChromeOS is closing in on Linux and in many countries overtaking linux in marketshare it is bound to start attracting attention as well. Though by picking Wayland/Sommelier over X, enforcing secureboot and user-separation and limiting the functionality it will remain quite hard to "break". Criminals be also be less interested because they consider the uptake mainly amongst schoolchildren which they may not perceive to be "high-value" targets.
In many ways the high level of uptake of linux in backends has already drawn in people whose intentions are less than benevolent. Professional crooks, state operators they all know linux is big in the back-end side of things.
1
Apr 02 '19
Maybe a little, but not that much. People get most Linux software out of the distribution's repository, not just any random website. So there is much less chance to catch malware while downloading software. That said, Windows these days is reasonably fully featured and almost all games moved onto Steam or other platforms, so there is much less need to go to random websites as well. Patching also happens mostly automatic too. So whatever advantage Linux once had is clearly shrinking, if it still exists at all.
1
u/forsaN_ Apr 02 '19
Windows is an especially juicy target because the vast majority of large companies use it to run both their work machines and servers. Especially from the perspective of large state sponsored groups, you're really going after the juiciest targets, which isn't a random guy tinkering with Linux. There's no reason why malware wouldn't be much more prevalent on Linux if it had the same market share.
1
u/DancingPickle Apr 02 '19
Short answer, yes.
It's not really as black and white as all that, however. While more bad actors would be compelled to create malware on a system with higher rates of usage, it's important to look at distribution models written considering risk.
For one thing, almost all Linux software on modern distributions is circulated through curated repositories. This system naturally limits risk when compared to the windows model. Factor in the reality that the vast majority of software is also open source (and hence subject to scrutiny by any interested parties), and what we have is as close to perfect as a software ecosystem could want to be.
Nothing is bulletproof, but until and unless the software distribution paradigm changes radically within Linux distributions, I wouldn't spend much energy worrying about exposure on the platform. It seems like the more concerning attack vectors for most people are platform agnostic (social engineering).
1
Apr 02 '19
You'd see more malware for sure, but I might be wrong in this however due to Linux permissions I think it's much harder to get untrusted code to run?
So web browser based drive by injection attacks and such wouldn't be as viable.
You'd be looking to fool the user into running stuff much more than you'd have to when attacking windows.
Please correct me if I'm wrong in this belief.
1
u/fugawf Apr 02 '19
Linux is SUPER mainstream when it comes to servers... especially the ones most people use everyday. Facebook, Insta, Google - all Linux servers on the backend
1
1
u/adamathefrog Apr 02 '19
Yes, and it would be much worse because there'd be no coordinated effort to prevent it.
1
1
u/ILikeLenexa Apr 02 '19
It depends on the kind of users.
If you're talking about people who only send HTTP requests and get responses, then Linux probably has more users already.
If linux expands and it's still machines where people don't have root access and use a mainframe style, it still probably won't lead to a huge influx.
If you mean Linux systems where people who don't know what sudo or insmod do have home computers with Linux and desktop systems with root access, that's where it'll start exploding.
1
u/hiljusti Apr 02 '19
Yes absolutely. It's the same reason you see 300~400 CVEs (Common Vulnerability/Exploit) for the Linux kernel every year, but only 10~20 CVEs in a year for BSDs.
People actively do write malware and try to hack Linux when it's used as a server platform. The reason desktops don't get targeted is the user base is so small that it's not worth the effort.
http://gs.statcounter.com/os-market-share
Think of scale. If the odds of someone falling for a Nigerian Prince scam are 1,000,000:1, that means send it to several million people and probably you're gonna get some money.
The same goes for malware. If the goal is to cause disruption or get money or something, then scale is a huge deciding factor in what platform to attack.
1
1
Apr 02 '19
Unix was designed as a multi user operating system (same with GNU/Linux), windows was not. Every linux virus that does anything requires root access.
Yes you would see more; however, it would likely be inversely proportional to what you see on windows for two reasons; everything already runs on windows, so more people would still be using it. The second is that linux users tend to be more educated about technology in general than your standard windows or mac user; this doesn't prevent a virus, but it helps prevent one from propagating...where as your standard windows user falls for the chain letter forwarding emails still.
1
u/mohitelement Apr 02 '19
In Ubuntu i use apt (package manager) for installing packages which are verified (so no malware) but if you are using 3rd party applications then theres a possibility of malware.
If Linux gets as popular as windows then maybe there is a chance of more 3rd party apps and higher possiblity of malware.
1
u/dJones176 Apr 02 '19
Your argument is somewhat correct. Linux being less mainstream gives it the appearance of being secure not because malware is not made for it, but because the users are mostly experienced enough to not fall for them.
1
u/Reygle Apr 02 '19
There would be more out there, in the wild, sure.
It would have far less real-world influence however, because the OS's we're using don't rely on the hot garbage that is User Account Control to restrict code from running. Some users just turn UAC off. Few of us use our machines as root 24-7.
1
u/mikiofujioka Apr 02 '19
As long as you get packages from repository there wouldn't be lots of malwares.
1
u/zombieauthor Apr 02 '19
Of course. The more users for anything, the more a negative element grows into that userbase.
1
u/Linux4ever_Leo Apr 02 '19
Hackers would target it more but given Linux's inherent security model they wouldn't be as successful as often as they are with Windows.
1
1
u/Barafu Apr 02 '19
Linux has fast and convenient containerization. With things like bubblewrap, firejail, chroot I can safely run an application even if I know that it is a malware. New distribution channels, like flatpak, are bringing android-like security model to Linux. Each app has as little access to system as possible while keeping it useful. You don't need root access to system to install an app from flatpak, too.
These things will prevent mass epidemics of malware.
1
u/AskJeevesIsBest Apr 02 '19
Yes. If there's more users, the opportunity to affect more users with your malware goes up. That is one reason why Windows has tons of malware.
1
0
u/Thinkmoreaboutit Apr 02 '19
More people, more attack vectors, more normies to trick into copying and paste this obfuscated innocuous script and run it :)
-2
u/FaultyQuisby Apr 02 '19 edited Apr 02 '19
Most definitely yeah. I can imagine ppl git cloning malware, building it and installing it without even looking. Like « man I need this rare kde widget » like full -Y style.
0
Apr 02 '19
Yes it would! But the difference still remains in the fact that a security failure in Linux is much faster to fix because of the open source code and the public feedback. Microsoft is depending on their staff or bug bounty hunters to fix things and it makes the whole process slower and less reliable.
0
u/bananaEmpanada Apr 02 '19
Personally I find it far easier to write and run code for Linux, than Windows. So therefore it's probably easier to write malware for Linux.
(E.g. if you get access to a user account, just add an alias for sudo to ~/.basrc, then next time the users uses sudo, boom! You've ow got the password for root access. There's no equivalent for that on Windows.)
1
u/houghi Apr 02 '19
That would create an error each time I use it. This because the only
sudoI use as a user will be through an alias that will point to e.g. `alias tail = "/bin/sudo /bin/tail".Sure, you could change that /bin/sudo to something else, but then you already have access and it would sure as hell make me wonder why I am suddenly demanded a password.
That happens every time I am on a new system. I need to edit sudoers. For that you need to be root. So now you need to add su - to the bashrc as well. And hope I do not notice it.
0
u/bartturner Apr 02 '19
No. That has always been just an excuse for the poor security with Windows.
Similar to the idea Siri is poor because Apple respecs privacy.
-5
0
Apr 02 '19
[deleted]
40
u/ase1590 Apr 02 '19
Gone are the days of traditional 'viruses' and in are the days of software exploits chained to deliver payloads.
18
4
u/gryphus-one Apr 02 '19
software exploits chained to deliver payloads
Can you expand on this? Am I screwed if I casually use Firefox to view mostly established sites?
16
Apr 02 '19
It's very rare but it happens, and if your browser is out of date for some reason, then I guess it will happen sooner or later.
An adblocker helps, as ad networks get compromised every now and then to deliver malware through a bunch of sites.
I prefer to block javascript by default (with uMatrix or NoScript) as nearly all exploits rely on javascript, and this also eliminates unwanted tracking scripts.
1
Apr 02 '19
Sometimes they also rely on the Browser and its behaviour on dealing with wrong <div> <script> tags.
1
Apr 02 '19
[removed] — view removed comment
1
u/DerekB52 Apr 02 '19
You should have typed u/---yes. I read your comment and had no idea what it meant.
192
u/computer-machine Apr 02 '19
I don't understand why half of the comments are saying no.
Of course there would be more malware. That says nothing to the quality or successfulness of malware, but there sure would be an awful lot more of it.