Live data from Hacker News

I got hacked: My Hetzner server started mining Monero

blog.jakesaunders.dev

391–400 of 422 posts

Re: I got hacked: My Hetzner server started mining Monero

#391

Earlier quoted context omitted.

That virtually all ends up in the spam folder. Neither half the revenue generated nor half of the utility people extract from it is criminal. I don't know a single person who has used Monero to conduct non-criminal business.

>I don't know a single person who has used Monero That's the point, its private by design and unless they tell you, nobody will ever know how much they use and for what. The true hacker spirit. If you bother to look past news headlines you will find a vibrant community of people paying for legal goods that value privacy before FUD and ignorance. https://monerica.com/sitemap This kind of fearmongering is already leadi…

> unless they tell you, nobody will ever know how much they use and for what.

As opposed to email?

Re: I got hacked: My Hetzner server started mining Monero

#392

Earlier quoted context omitted.

I think so, but it is hard to say. Could be a lot of people with extra power (or stolen power), but their own equipment. I mine myself with waste solar power

Another option: Deliberate heat generation. If it's cold and you're going to be running a heater anyways, then if your heat is resistive, then running a cryptominer is just as efficient and returns a couple dollars back to you. It effectively becomes "free" relative to running the heater. If you use a heat pump, or you rely on burning something (natural gas, wood, whatever) to generate heat, then the math changes.

Yeah the calculus on that becomes tricky when you have heat pumps since the coefficient of performance is >1 vs resistive heating (often 3-4 depending on the temperature).

I used a rack of GPUs to heat my house for a few years back when gpu mining was decently profitable, and my electricity bill was 3-4x more than with the heat pump - so you have to keep a close eye on the math when you're running at/under profitability.

Re: I got hacked: My Hetzner server started mining Monero

#393
post #382

Earlier quoted context omitted.

Illumos had a really nice stack for running containers inside jails and zones... I wonder if any of that ever made it into the linux world. If you broke out of the container you'd just be inside a jail which is even more hardened.

SmartOS constructed a container-like environment using LX-branded zones, they didn't create an in-kernel equivalent to Linux's namespaces which it then nested in a zone. You're probably thinking of the KVM port to Solaris/illumos, which does run in a zone internally to provide additional protection. While LX-branded zones were a really cool tech demo, maintaining compatibility with Linux long-term would be incredibly…

Yes it was SmartOS - bcantrill worked on it post-oracle. I remembered Illumos since it was the precursor.

Re: I got hacked: My Hetzner server started mining Monero

#394
post #372

Earlier quoted context omitted.

That sucks, I never had any problem running a Dockerfile in podman. I don't know what I do differently, but I would as a principle filter out any container that messes with stuff like docker in docker. Podman doesn't need these kind of shenegians. Also the Docker Compose tool is a well-know exception to the compatibility story. (There is some unofficial podman compose tool, but that is not feature complete and quadle…

A side-effect of running rootless and daemonless is that containers stop on user log out, and I can't believe how all this is to be expected for a newcomer to parse. Because I thought the whole point of containers in production was for them to keep running when you log out. Of course, when you think about it, nobody expects a command to just survive logging out, but coming from docker, you still have that expectation…

A side-effect of running rootless and daemonless is that containers stop on user log out

This is not a side effect of running rootless, it's a side effect of running systemd (or rather, systemd-logind).

Re: I got hacked: My Hetzner server started mining Monero

#395

Earlier quoted context omitted.

The other thing to note is that docker is for the most part, stateless. So if you're running something that has to deal with questionable user input (images and video or more importantly PDFs), is to stick it on its own VM and then cycle the docker container every hour and the VM every 12, and then still be worried about it getting hacked and leaking secrets.

If I can get in once, I can do it again an hour later. I'd be inclined to believe that dumb recycling is not very effective against a persistent attacker.

I wonder if a crypto miner like this was a person doing the work, or just an automated thing someone wrote to scan IPs for known vulnerabilities and exploit them automatically.

Re: I got hacked: My Hetzner server started mining Monero

#396

Earlier quoted context omitted.

>I don't know a single person who has used Monero That's the point, its private by design and unless they tell you, nobody will ever know how much they use and for what. The true hacker spirit. If you bother to look past news headlines you will find a vibrant community of people paying for legal goods that value privacy before FUD and ignorance. https://monerica.com/sitemap This kind of fearmongering is already leadi…

> unless they tell you, nobody will ever know how much they use and for what. As opposed to email?

do i really need to explain on hackernews that email is not E2EE? yes which shows your comment has no actual data behind it hence FUD.

Re: I got hacked: My Hetzner server started mining Monero

#397

Earlier quoted context omitted.

> unless they tell you, nobody will ever know how much they use and for what. As opposed to email?

do i really need to explain on hackernews that email is not E2EE? yes which shows your comment has no actual data behind it hence FUD.

You really need to explain why whether or not email is E2EE is related to people needing to tell me they use email or not.

Re: I got hacked: My Hetzner server started mining Monero

#398

Earlier quoted context omitted.

If you're at a point where you are exposing services to the internet but you don't know what you're doing you need to stop. Choosing what interface to listen on is one of the first configuration options in pretty much everything, if you're putting in 0.0.0.0 because that's what you read on some random blogspam "tutorial" then you are nowhere near qualified to have a machine exposed to the internet.

Don't do anything until you are an expert is excellent gatekeeping, fortunately this is hacker news so we can ignore the gatekeepers! I suggest people fuck around and find out, just limit your exposure. Spin up a VPS with nothing important, have fun, and delete it. At some point we are all unqualified to use the internet and we used it anyway. No one is going to die because your toy project got hacked and you are out…

Absolutely. Thank you.

Re: I got hacked: My Hetzner server started mining Monero

#399

This Monero mining also happened with one of my VPS over at interserv.net, when I forgot to log out of the root console in web-based terminal console to one of my VPS and closed its browser tab instead. It has since been fixed: Lesson learned.

> when I forgot to log out of the root console in web-based terminal console to one of my VPS and closed its browser tab instead. This should not enable the compromise of your session, i.e. either there was some additional vulnerability (and not logging out widened the window during which it could be exploited), or the attack was totally unrelated. Either way, you should find out the real cause.

And they did.

Re: I got hacked: My Hetzner server started mining Monero

#400
post #261
post #231

Earlier quoted context omitted.

Yup the regular "8080:8080" bind resulted in a ransom note in my database on day 1. Bound it to localhost only now.

one thing I always forget about, is that you have a whole network of 127.0.0.0/8 , not just one IP. So you can create multiple addresses with multiple separate "domains" mapped statically in /etc/hosts, and allow multiple apps to listen on "the same" port without conflicts.

Unlike IPv6 localhost that's just the [::1] address. I'm not sure if you can abuse IPv4 in IPv6 to do the same
Post reply on HN