News for hackers. Stuff that matters.
Re:Windows is the malware compatibility layer for everything by mindslight on Wednesday July 12, 2023 @02:41PM (#36699703)
* * *
Re:Windows is the malware compatibility layer for everything by the_af on Wednesday July 12, 2023 @03:15PM (#36700205)
What about things that are not in their package manager, like most games?

"Only download through this walled garden [Steam, GOG Galaxy, etc]"? So walled gardens are the answer?

Re:Windows is the malware compatibility layer for everything by mindslight on Wednesday July 12, 2023 @03:32PM (#36700414)
Yes, gardens are one answer, and likely the best one currently for non-webapps. Distro package mangers themselves are the original gardens. They get a pass because having good incentives have kept them decently honest, but that's fundamentally what they are.

Gardens allow you to make a small number of trust decisions, and then trust all the software they have vetted by extension.

Note that I'm leaving out "walled" because multiple software sources can coexist. "Walled" only comes about when some company tries to constrain you to their singular source.

Re:Windows is the malware compatibility layer for everything by mcpackieh on Wednesday July 12, 2023 @04:02PM (#36700855)
Gardens are the solution, but people shouldn't be locked into any garden against their will. Users should be free to choose the garden they prefer any time they wish, or to start their own garden and invite other's to visit it.

I choose the F-droid garden and the OpenSUSE garden. Other people may prefer other gardens, and they should be free to choose the ones they prefer as I am free to choose mine.

When people criticize walled gardens, it's because the wall is like the Berlin Wall; a wall designed to keep people in against their will.

Re:Windows is the malware compatibility layer for everything by the_af on Wednesday July 12, 2023 @06:24PM (#36702499)
> When people criticize walled gardens, it's because the wall is like the Berlin Wall; a wall designed to keep people in against their will.

Fair enough. You are right there.

But in essence, it's not that Linux is "safer" than Windows against malware. It's that it's a nerdier culture with different practices that don't translate well to the mainstream. Like user kbenson above who suggested "reviewing the installer"... I hope we all agree that's ridiculous, right?

Re:Windows is the malware compatibility layer for everything by kbenson on Wednesday July 12, 2023 @07:30PM (#36703109)
That is not what I said, there was a conditional on that sentence. The real point I was making was the last paragraph of what I posted. Don't use that method if you care about security, it's never, ever been the sole option in any case I've seen which wasn't meant to be nefarious (at a minimum, there should be directions to manually do step by step what the script automates).

That everyone jumped on the "review what you run" part because they weren't paying attention to what I actually said and it looked similar to other arguments when this comes up I think has less to do with what I said and more to do with people wanting to argue that discussion yet again.

The bottom line is that Linux is no different than Windows in this respect (look at the Deno install directions if you want to see the powershell equivalent of curl piped to bash), and this is more a matter of the developer communities being okay with this method, and promoting it regardless of OS. In that respect, saying "Linux security best practices of curl | bash" was just inflammatory and wrong, and deserved to be called out as such. It's not only a Linux thing, it's not anything like a best practice (it's a convenience method provided that trades away security), and as such the statement is just plain wring.

Re:Windows is the malware compatibility layer for everything by the_af on Wednesday July 12, 2023 @07:46PM (#36703246)
Ok, I'll readily admit I misunderstood that part of your comment then. I stand corrected.

So let me rephrase what I think is the key point here:

Linux is only "safer" than Windows because it has fewer users and they tend to be more technically minded.

However, were Linux to somehow become as mainstream a desktop OS as Windows, two things would happen:

- The userbase would become less technically minded and security aware. I don't want to call them "stupid" however, they likely know other stuff instead. I can't drive a car for example, am I stupid?

- It would become a juicier target for malware creators, and therefore malware would be as widespread as in Windows-land.

There's nothing magical in Linux that would protect a large and careless enough userbase.

Re:Windows is the malware compatibility layer for everything by kbenson on Wednesday July 12, 2023 @08:27PM (#36703538)
I would say Linux and Windows are likely roughly equivalent in almost all safety concerns for regular users (if we normalize for how good a target they are which makes Windows get targeted more in absolute terms, and ignore technical merits of the kernel and secure access/ACL systems, which I think aren't really what this discussion is about).

There might be a slight edge in Linux in that the main way of getting software, the base OS repos and package manager, are about as trustworthy as you can get if you trust the OS to run in the first place, and generally they are packaging and shipping a lot more software that they've vetted, and built themselves and verified with the system than Windows does, which allows the regular user to not lower that trust as much.

Windows is getting closer, in that they have their store now and you can even use winget to install things from it, but those things aren't packages by MS (even if they might be vetted to some degree), so it's note quite the same. In some aspects it's better and in some worse, actually (there's a benefit to the OS maintainers tracking and building stuff themselves).

Beyond the main OS software, it gets into trust relationships and quickly becomes the exact same regardless of OS, as long as you're allowed to install arbitrary software. This is as opposed to a walled garden, which is explicitly trading away convenience (of one type) and choice for security (and uniformity, but that's not a given), in the same way but the opposite direction as curl piping a script to bash which is trading away security for convenience. I wrote elsewhere in this thread (multiple times, to various degrees) how the trust relationship to the source is the real question, and not really different in the desktop OS cases (in case I wasn't clear and you want more words on it to clarify my opinion).

> There's nothing magical in Linux that would protect a large and careless enough userbase.

Nope, there isn't, just as there isn't in Windows or Mac OS (yet, but they're both heading that direction to some degree with their stores).

Re:Windows is the malware compatibility layer for everything by pessimizer on Wednesday July 12, 2023 @04:34PM (#36701259)
If someone gives you a guarantee of safety, you get to blame them when things go wrong. If you demand to strike out on your own, you have no one to blame but yourself. And you should honestly be proud of taking the risk; it's literally the only reason to use all this proud, evocative language about being trapped and needing to be free.

You want to be cutting edge, but not get cut.

Re:Windows is the malware compatibility layer for everything by the_af on Wednesday July 12, 2023 @06:26PM (#36702512)
Wait. Linux users "strike on their own" all the time!

Who here is a Linux user and never downloaded stuff outside the repo, or compiled sources and run them without reviewing every security loophole? Linux users are the most "demand-ey" of users, even starting flamewars over being forced to do things this way or that way!

I'm really skeptical that this wouldn't introduce malware if malware authors deemed Linux a worthy target.

Re:Windows is the malware compatibility layer for everything by ilyt on Wednesday July 12, 2023 @05:01PM (#36701620)
Just gardens. Package repositories are just that, you can pick whatever you want.

Games are a bit of special case as they don't exactly play nice with Linux and many of them are also run thru emulation like Proton

Re:Windows is the malware compatibility layer for everything by the_af on Wednesday July 12, 2023 @06:28PM (#36702530)
But that's it. Games and games downloaded from dubious sources are one of the primary infection vectors. It doesn't happen enough in Linux because there aren't enough Linux users to make it a worthwhile target for malware authors!
Re:Windows is the malware compatibility layer for everything by zzo38computer on Thursday July 13, 2023 @03:40AM (#36706122)
For this and other reasons (including compatibility issues), when I want to download a game, I will prefer a version for DOS, NES/Famicom, Game Boy Advance, etc, instead of native code on Linux or Windows. (I also prefer FOSS when available, especially for native code; I will not run any non-FOSS program on my computer that is not running as native code.) (And, in some cases, the game might follow rules that I can just reimplement myself instead. For some types of puzzle games, it is relatively easy to reimplement it in Free Hero Mesh, so I am glad I wrote that program. Other times, other reimplementations can be written.)
Re:Windows is the malware compatibility layer for everything by ilyt on Thursday July 13, 2023 @10:44AM (#36709961)
<citation needed>

Most people don't go on random torrent sites to get their games.

And most people that do also don't get infected because usually the top rated torrent is just fine. I pirated a lot as a dumb kid without income and haven't managed to catch anything at least.

Re:Windows is the malware compatibility layer for everything by gspencley on Wednesday July 12, 2023 @03:15PM (#36700207)
Yeah this conversation is borderline philosophical. What does "secure software" mean? As a software engineer I've always thought about secure software as software that does not have bugs that can be exploited by non-authorized users. Be it privilege execution, code injection, remote code execution etc.

As an end-user, I choose to use Linux because it does not stand between me and my computer. I am the master of the machine. I tell it what to do, and it obeys. That is the relationship I want to have with a piece of tangible property that I paid money for.

So if I do something unsafe, even through ignorance or naivety, I still see that as being my fault. Not the software's. In other words, the software was behaving as expected. There were no bugs. It did what the authorized user told it to do.

But I can see the point of view that secure software could also mean software that makes it difficult for the authorized user to do dangerous things. Especially in an organization setting where the user is not actually the owner of the machine, but is using company equipment and software.

Re:Windows is the malware compatibility layer for everything by pessimizer on Wednesday July 12, 2023 @04:30PM (#36701198)
> That blame still appropriately lies with maladaptive behaviors learned from Windows. The only way to completely stop users being susceptible to the "attack" of them phrasing their desires as web searches and then blindly following whatever malicious instructions come up is to fully remove administrator privileges and lock them out of "their" computers.

And making it a class at school. We have universal education in most places, we can use it for something useful. There's no reason that we have to capitulate to corporations and their moats. We can teach children how the devices that surround them and order them around work, and how to deal with the predators that they'll encounter while interacting with them.

Re:Windows is the malware compatibility layer for everything by ilyt on Wednesday July 12, 2023 @04:57PM (#36701575)
The way of solving it would be streamlining adding new repositories for the 3rd party stuff.

Way too often it's "download some dumbass script running some half-assed autodetection just to add a line of text to config and a GPG key.

Re:Windows is the malware compatibility layer for everything by haswell on Thursday July 13, 2023 @09:52AM (#36709146)
> That blame still appropriately lies with maladaptive behaviors learned from Windows.

As a Linux nerd who started tinkering around 2001, I’m having a hard time with this framing. Being a Linux user around that era involved regularly compiling code that practically I couldn’t review. While the steps involved were different, the behaviors associated with installing software were not inherently more secure than windows at the time.

The main differences were: 1) I was more technically savvy and thus not as likely to install something obviously dangerous and 2) One just wasn’t very likely to run into a repo impacted by supply chain compromise or somesuch. Those same behaviors today are pretty risky in comparison, leading to threads like this one.

I’d argue that it’s less about windows being a source of maladaptive behavior, and more about windows attracting users who don’t know better than to behave the way they do. If those same low-tech users were somehow using Linux at the time, I don’t think they’d have learned anything more adaptive, and/or Linux would have been a much larger target, changing the threat landscape entirely.

But to go a step further, I guess the question that comes up for me is: why does it matter if it’s the fault of Windows? The typical “OS war” rhetoric never made much sense to me.

To me, the point of running Linux or really any desktop OS is to allow me to go beyond walled gardens.

My brother is a non-technical artist/creator type. If he relied only on the system package manager, he might as well use an iPad.

What you’re framing here as “violating rules” is really just “using the computer for its intended purpose”.

Following those rules may fix the security problem, in the same way that never leaving my apartment will probably protect me from most seasonal illnesses.

We need better ways to universally indicate trust in distributed software beyond system package managers.

Re:Windows is the malware compatibility layer for everything by the_af on Thursday July 13, 2023 @04:46PM (#36715747)
> The main differences were: 1) I was more technically savvy and thus not as likely to install something obviously dangerous and 2) One just wasn’t very likely to run into a repo impacted by supply chain compromise or somesuch. Those same behaviors today are pretty risky in comparison, leading to threads like this one.

Yes, and I would add 3) there was no meaningful malware made for Linux back then, because it wasn't a target for malware authors. Otherwise you (and I!) would have been hit. I didn't understand half the stuff I installed on my Linux box back then, and many install instructions were positively arcane.

> To me, the point of running Linux or really any desktop OS is to allow me to go beyond walled gardens. My brother is a non-technical artist/creator type. If he relied only on the system package manager, he might as well use an iPad.

Fully agreed! Furthermore, anyone using Linux back then would have found your opinion entirely uncontroversial. The point of Linux back then was freedom to do whatever. Gardens -- even non-walled gardens -- were not the point.

Re:Windows is the malware compatibility layer for everything by mindslight on Friday July 14, 2023 @02:34PM (#36728071)
Sure, if you turned the 90's/2000's herd of Windows users loose on Linux, you'd likely run into many of the same issues. But still modulo needed software being available in a package manager or at least with a higher barrier to entry of developing substantive source code, rather than needing to use sketchy warez or "legitimate" download sites that added in less-severe malware.

But the real condemnation of Windows isn't just an "OS war", but rather the fight is about the virtue of understanding the software in front of you. This is critical to security - not in the small (the idea that an individual can audit every line of code they run is a fallacious straw man), but rather on the large scale. Having published source code allows the building of a distributed consensus that something can be trusted, not beholden to the existing power structure, whereas without that you're stuck trusting the word of a single company and/of their auditors.

Like today we see malware continually being bundled with proprietary software, so often that it's considered banal and just how things are (eg web surveillance). Yet in Libre land when it happens it's still seen as an exceptional occurrence that needs to be stomped down hard. That directly follows from the underlying attitudes of unilateral "trust us" versus community consensus.

> We need better ways to universally indicate trust in distributed software beyond system package managers.

I'd love to hear you expound on this. The only two solutions I can see are are trusting and sandboxing. Sandboxing and capability security was a radical pie in the sky idea two decades ago, but now we've got two extremely popular implementations - web javascript and Android. So it feels like a lot less lofty, despite the current failings (both of those implementations have shirked being secure against many types of attacks!).

Is there some third way, especially that isn't just a combination of the two basic existing approaches? I'd love to hear one!