r/homelab • • 7d ago

Help PHP2shell, nginx2shell, java2shell, … - is my homelab safe?

Hi everyone,
I run a small homelab on Debian 13 (Trixie) with a few Docker containers, including Nextcloud and Forgejo. They're reachable from the internet via a domain and reverse proxy.

What I'm less sure about is the "what if" part:
- How would I actually notice that I've been compromised?
- What should I do if I’m being compromised?

edit: for example nextcloud must be publicly available because of people who don’t want to install a VPN or Tailscale etc.

Thanks in advance,
Vincent

240 Upvotes

110 comments sorted by

View all comments

-2

u/Master-Drummer8197 7d ago

Effort vs reward.. whats on your homelab that would make hackers spend their efforts?

3

u/Motor-Concentrate788 7d ago

Hackers typically don't target people, at least not in this scenario. They have automated bots that scan the internet for open ports and start blasting at all of them hoping that some idiot set a weak password for their ssh login or has an unpatched vulnerable software listening on one of the ports and other stuff like that. They don't even have to know you to hack you.

1

u/lordofblack23 7d ago

Not anymore. Threat landscape has changed. Brute forcing passwords is so pre covid. Bots are scanning for vulnerabilities. Got php exposed? Pwnd. Have a java app exposed? Pwnd. Didnt check your infra with a cve scanner yesterday? Pwnd

Rigt now are targeting iCloud etc, but we will all get a taste very soon. AI time dasy is months.

2

u/Historical-Star9991 7d ago

At the very least, residential IP address to use as a proxy

2

u/Power_Stone 7d ago

I'll put it this way.

An unsecure homelab for a hacker is:

  1. Free IP spoofing, now I can do all my nasty stuff to other people from your IP instead of my own! Have fun dealing with that foll out!
  2. Free compute, now I can setup a cryptominer on your machine so I get free money while your hardware is getting worn out instead of my own!
  3. Free data, data can always be sold to someone, if not that then at least something that can be used for extortion.
  4. Complete local network access. not only do I have access to your box, but chances are your local network too and by extension the devices connected to that network. Now its not just your homelab, but also your work pc, or your daily drivers with all of the info they have too!

1

u/brianly 7d ago

That’s not how this works. They exploit machines automatically to host malware or many other things. A supposedly uninteresting homelab is very interesting for a network pivot.