Never expose your server IP directly to the internet, vps or baremetal.
I got hacked: My Hetzner server started mining Monero
31–40 of 422 posts
Re: I got hacked: My Hetzner server started mining Monero
#32> Here’s the test. If /tmp/.XIN-unix/javae exists on my host, I’m fucked. If it doesn’t exist, then what I’m seeing is just Docker’s default behavior of showing container processes in the host’s ps output, but they’re actually isolated. /tmp/.XIN-unix/javae & rm /tmp/.XIN-unix/javae This article’s LLM writing style is painful, and it’s full of misinformation (is Puppeteer even involved in the vulnerability?).
Yeah fair, I asked claude to help because honestly this was a little beyond my writing skills. I'm real though. Sorry. Will change
Re: I got hacked: My Hetzner server started mining Monero
#33Is there ever a reason someone should run a docker container as root ?
Re: I got hacked: My Hetzner server started mining Monero
#34> The Reddit post I’d seen earlier? That guy got completely owned because his container was running as root. The malware could: [...] Is that the case, though? My understanding was, that even if I run a docker container as root and the container is 100% compromised, there still would need to be a vulnerability in docker for it to “attack” the host, or am I missing something?
Docker containers with root have rootish rights on the host machine too because the userid will just be 0 for both. So if you have, say, a bind mount that you play fast and loose with, the docker user can create 0777 files outside the docker container, and now we're almost done. Even worse if "just to make it work" someone runs the container with --privileged and then makes the terminal mistake of exposing that conta…
Re: I got hacked: My Hetzner server started mining Monero
#35Re: I got hacked: My Hetzner server started mining Monero
#36> Here’s the test. If /tmp/.XIN-unix/javae exists on my host, I’m fucked. If it doesn’t exist, then what I’m seeing is just Docker’s default behavior of showing container processes in the host’s ps output, but they’re actually isolated. /tmp/.XIN-unix/javae & rm /tmp/.XIN-unix/javae This article’s LLM writing style is painful, and it’s full of misinformation (is Puppeteer even involved in the vulnerability?).
Yeah fair, I asked claude to help because honestly this was a little beyond my writing skills. I'm real though. Sorry. Will change
Re: I got hacked: My Hetzner server started mining Monero
#37> The Reddit post I’d seen earlier? That guy got completely owned because his container was running as root. The malware could: [...] Is that the case, though? My understanding was, that even if I run a docker container as root and the container is 100% compromised, there still would need to be a vulnerability in docker for it to “attack” the host, or am I missing something?
The core of the problem here is that process isolation doesn't save you from whole classes of attack vectors or misconfigurations that open you up to nasty surprises. Docker is great, just don't think of it as a sandbox to run untrusted code.
Re: I got hacked: My Hetzner server started mining Monero
#38Re: I got hacked: My Hetzner server started mining Monero
#39Is mining via CPU even worthwhile for the hackers? I thought ASICs dominated mining
Re: I got hacked: My Hetzner server started mining Monero
#40Is mining via CPU even worthwhile for the hackers? I thought ASICs dominated mining