3 ms·
> From a bad guy's perspective, they just need a foot in the door and move laterally if possible. How does the bad guy get a foot in the door?
by pdonis 7y ago
> From a bad guy's perspective, they just need a foot in the door and move laterally if possible.
How does the bad guy get a foot in the door?
- deleted 7y ago[deleted]
- badrabbit 7y agoDepends on the bad guy. Social engineering is the best way on desktops. And this is what I meant by assumptions, on windows I can tell you phishing and removable drives are the easiest way. On Linux desktop it simply isn't targeted enough to be confident which attack vectors are common. But you're missing the point, there will always be vulnerabilities. Even if everything is written in Rust, logical vulns exist, default config issues will exist (mongodb and internet exposure for example) and even the smartest people can be phished. Even with a yubikey,if I can trick you into opening a link that will have you download and open a file that will execute code on your machine, I don't need your login because I have your session cookies and I can reverse tunnel traffic through your IP. And I may not even care about that, maybe I just want your ssh private key and I will be on my way.
- pdonis 7y ago> Social engineering is the best way on desktops. Nobody uses my Linux desktop/laptop computers but me, and I have no reason to tell anyone else anything about them, so I don't. So I'm not vulnerable to this attack vector. > if I can trick you into opening a link that will have you download and open a file that will execute code on your machine I never click on links unless I know their source. So I'm not vulnerable to this attack vector either. If all that is wrong with the desktop Linux security model is "some users do dumb things", then that's not fixable by any OS. And even with that said, Linux is much better at containing the damage from doing dumb things than, say, Windows.
- badrabbit 7y agoI guarantee you, you will fall for a clever phish. You can't outsmart a good spearphish. You are wrong when you think stupidity is the vuln, the vuln is basic human psychology. But even if you're right, it's not like Linux desktop is made only for people like you right? It wouldn't be "some people are dumb" it would be "almost all people are dumb" even if being dumb was the issue.
- pdonis 7y ago> I guarantee you, you will fall for a clever phish. You can guarantee no such thing. Not getting caught by phishing just isn't that hard. It requires a little self-discipline, yes. So do most worthwhile things. > It wouldn't be "some people are dumb" it would be "almost all people are dumb" even if being dumb was the issue. That's still not an OS issue. No amount of clever programming will help if people are that determined to do something dumb.
- staticassertion 7y agoYou ever run a pip install? Maybe an apt-get install?
- pdonis 7y ago> You ever run a pip install? On my regular desktop, not of anything that wasn't Python code I had written myself. In development containers, yes, sometimes I've installed third-party Python programs to test them (and of course in Python it's easy to read the source code since what you install is the source code), but that's isolated from my regular desktop. > Maybe an apt-get install? Never of anything that wasn't from my distro's signed package repository.
- danieldk 7y agoThat's still not an OS issue. No amount of clever programming will help if people are that determined to do something dumb. And yet, a malicious iOS cannot typically take over the OS, other applications, or exfiltrate data from other applications. Sure, someone's bank account can be fished. But systems like iOS show that it is possible to protect users against a large numbers of attacks. One of the goals of an OS is to provide meaningful isolation boundaries. This is why we have a separation between ring 0 and 3, isolation of process address spaces, a separation between UID 0 and UID > 0. There is no reason why we should not introduce new forms of isolation invented after the 70ies.
- znpy 7y ago> How does the bad guy get a foot in the door? If you were using Ubuntu Linux in 2007-2008 you will remember the compiz/beryl craze. Everybody and their dog wanted the latest version of compiz. Adding random repositories was not a problem if that got you the latest version of compiz/beryl. Until a guy, one of the maintainers of a popular repository, tricked everybody: in the install scripts he added code to change the desktop background to an image with a text reading: don't add random repositories from the internet. Think about all the random repositories and PPAs that people add to their systems without thinking. That is an example of how you get a foot in the door.
- pdonis 7y ago> Think about all the random repositories and PPAs that people add to their systems without thinking. This doesn't seem like a "desktop Linux security" problem. It seems like a "some users do dumb things" problem. You can't fix that with an OS. But I can "fix" it easily by not adding random repositories and PPAs.
- ironmagma 7y agoLots of security issues are fixed not by “fixing” them but by adding mitigations which include user approval, surfacing otherwise hidden activity, and other crutches. At the end of the day it is an automated system and must do things without the human in the loop, so the best you can do is make “the loop” visible to the user.
- pdonis 7y ago> user approval Adding a repository/PPA does require user approval. You can't do sudo without knowing you're doing it. > surfacing otherwise hidden activity Yes, and Linux gives you plenty of tools to do that, like, say, "ps aux" and "top" (or the many GUI equivalents in various desktop environments). > At the end of the day it is an automated system Remember we're talking about desktops here, not servers. Desktops are not "automated" in any relevant sense for this discussion.
- angry_octet 7y ago
- ksk 7y agoUsing malformed PDFs, documents, mp3s, etc. Exploiting browser, ssh, php, mysql, mail server vulnerabilities, etc, etc. By no means a trivial task, but the attack surface is large enough that sec bugs keep being introduced. https://www.cvedetails.com/product/47/Linux-Linux-Kernel.html?vendor_id=33 https://www.cvedetails.com/product/47/Linux-Linux-Kernel.htm... https://www.cvedetails.com/product/36/Debian-Debian-Linux.html?vendor_id=23 https://www.cvedetails.com/product/36/Debian-Debian-Linux.ht... https://www.cvedetails.com/product/20550/Canonical-Ubuntu-Linux.html?vendor_id=4781 https://www.cvedetails.com/product/20550/Canonical-Ubuntu-Li... https://www.cvedetails.com/product/79/Redhat-Enterprise-Linux-Desktop.html?vendor_id=25 https://www.cvedetails.com/product/79/Redhat-Enterprise-Linu...