10 ms·
Before you dismiss this as not serious due to the fact that it needs a server to be compromised first: it isn't rare at all to see companies giving access to ea
by jacquesm 5y ago
Before you dismiss this as not serious due to the fact that it needs a server to be compromised first: it isn't rare at all to see companies giving access to each others' servers for instance to help with the maintenance of bespoke applications, or for situations where systems administration is outsourced. And of course those are exactly the kind of clients that are at risk of having their infrastructure compromised in the first place, otherwise they wouldn't have to outsource this work. And once you manage to gain access to the support teams' computers you also now have a gateway into all the other machines that they support. So this has the potential to rapidly escalate to something far more serious.
- Neil44 5y agoThe far more interesting scenario is via the hyper-v console viewer, you could call OVH or Azure or whoever and get support to console your machine, then escape your VM onto their hyper-v host.
- codetrotter 5y ago> once you manage to gain access to the support teams' computers you also now have a gateway into all the other machines that they support Speaking of which, what is everyone here’s view on allowing passwordless sudo on Linux servers? In my mind, if someone has already gained access to my user on the server, which has sudo privileges, they are only a couple of steps away from be able to take control over the server anyways. So I allow sudo without password on my servers. sudo password is basically nothing but an annoyance. Likewise, my ssh keys are also not password protected. If you are able to read my ssh keys, you have already won anyways. No point to me in having a password on them. Where I do take extra steps instead include: - I disable password based authentication for sshd, allowing only keybased authentication. - On some servers I have sshd listening on WireGuard interfaces only. - My personal devices use full disk encryption. - I lock computers and other devices when I walk away from them. - I use 2FA for any third-party services of importance such as mail etc, preferring TOTP/HOTP if available. Or SMS based if that’s the only option even though it’s not very good it’s something. - I use an adblocker in the browser on my computers. - I am careful not to get tricked by phishing emails, phishing SMSes and other scam messages. - I install software from trusted sources mainly. - I use an iPhone, not Android. I’m pretty satisfied about my own computer security. Next step I need to handle is proper backups. I have too many files that are stored in n=1 locations. I have some of the most important files in n>=2 locations, but still there are many important files that I don’t.
- hsbauauvhabzb 5y agoPassworded ssh keys can be valuable - if I steal your laptop while it’s on, I can use DMA hacking or frozen ram kind of techniques to extract secrets out of memory. If your SSH keys have a password on them, I have a limited time to perform said attacks. For that reason, I’d prefer passphrase backed keys, even if they had very long (36h+) expiry time. Edit: one cool hack I use is a conplex FDE password, but relatively simple /etc/shadow password - this saves a huge amount of effort.
- dx034 5y agoIf you're a sysadmin for a large company or if you're a public person then I'd agree, but I believe for 99% of us, no one would spend the time to perform these attacks on stolen hardware. And even for large companies, they'd just look for the next sysadmin who has their password on a post-it on the laptop or in their bag (still happens enough).
- hsbauauvhabzb 5y agoYeah but op was questioning real security model without context. I don’t disagree with you, security and threat models are highly contextual.
- Eelongate 5y ago> In my mind, if someone has already gained access to my user on the server, which has sudo privileges, they are only a couple of steps away from be able to take control over the server anyways. This seems like sound logic to me. If you have write permission to their bashrc, it's trivial to change their path to include a keylogging wrapper for sudo. The next time they use sudo, you have their password. If an attacker has gotten that far, a password on sudo seems like closing the barn doors after the horses already ran off.
- staticassertion 5y agoYeah but you can harden against that. You can: 1. Audit writes to paths like bashrc (I've written this alert and many others like it) 2. Audit writes from processes under uid X to files in uid Y's home 3. Limit the need to sudo in the first place 4. Add a TOTP auth to sudo 5. Limit the ability for arbitrary processes to write to arbitrary files (containerize your shells, services, etc). The thing is that all of the above assume the attacker isn't already root. If the attacker is root, this all becomes a lot harder.