zlacker

[return to "A story on home server security"]
1. gobble+3c[view] [source] 2025-01-05 14:53:22
>>todsac+(OP)
> Fortunately, despite the scary log entries showing attempts to change privileges and delete critical folders, it seemed that all the malicious activity was contained within the container.

OP can't prove that. The only way is to scrap the server completely and start with a fresh OS image. If OP has no backup and ansible repo (or anything similar) to configure a new home server quickly, then I guess another valuable lesson was learned here.

◧◩
2. diggan+Nc[view] [source] 2025-01-05 15:01:44
>>gobble+3c
Not 100% what you mean with "scrapping" the server, you suggest just a re-install OS? I'd default to assuming the hardware itself is compromised somehow, if I'm assuming someone had root access. If you were doing automated backups from something you assume was compromised, I'm not sure restoring from backups is a great idea either.
◧◩◪
3. sgarla+me[view] [source] 2025-01-05 15:12:55
>>diggan+Nc
I think it’s reasonable to take a measured view of attacks. I doubt someone installing crypto miners has a hardware rootkit.
◧◩◪◨
4. diggan+Lf[view] [source] 2025-01-05 15:23:57
>>sgarla+me
I'm guessing it's an automated attack, where it found running services and then threw payloads at it until it got something. Once they're there, since docker isn't a real security barrier, I'd consider it all bets off.

Especially when it comes to my home network, I would rather be safe than sorry. How would you even begin to investigate a rootkit since it can clean up after itself and basically make itself invisible?

Particularly when it comes to Kinsing attacks, as there seem to been rootkits detected in tandem with it, which is exactly what OP got hit by it seems (although they could only see the coinminer).

◧◩◪◨⬒
5. sgarla+Wh[view] [source] 2025-01-05 15:41:13
>>diggan+Lf
For crypto miners, it’s pretty easy to tell if your servers are in your house. Even if they aren’t, if you have any kind of metrics collection, you’ll notice the CPU spike.

My general feeling is that if someone wants to install a hardware rootkit on my extremely boring home servers, it’s highly unlikely that I’ll be able to stop them. I can do best practices (like not exposing things publicly), but ultimately I can’t stop Mossad; on the other hand, I am an unlikely target for anything other than script kiddies and crypto miners.

◧◩◪◨⬒⬓
6. diggan+Fm[view] [source] 2025-01-05 16:19:03
>>sgarla+Wh
> For crypto miners, it’s pretty easy to tell if your servers are in your house. Even if they aren’t, if you have any kind of metrics collection, you’ll notice the CPU spike.

Sure, but if you already know since before that this specific cryptominer has been found together with rootkits, and you know rootkits aren't as easy to detect, what's your approach to validate if you're infected or not?

Maybe I'm lucky that I can tear down/up my infrastructure relatively easily (thanks NixOS), but I wouldn't take my chances when it's so close to private data.

[go to top]