Re:I got hacked: My Hetzner server started mining Monero
by Nextgrid on Wednesday December 17, 2025 @06:20PM
(#46306999)
A firewall blocking outgoing connections (except those whitelisted through the proxy) would’ve likely prevented the download of the malware (as it’s usually done by using the RCE to call a curl/wget command rather than uploading the binary through the RCE) and/or its connection to the mining server.
[ Parent
| on HN ]
Re:I got hacked: My Hetzner server started mining Monero
by denkmoon on Wednesday December 17, 2025 @06:49PM
(#46307227)
How many people do proper egress filtering though, even when running a firewall
Re:I got hacked: My Hetzner server started mining Monero
by drnick1 on Wednesday December 17, 2025 @11:47PM
(#46308967)
In practice, this is basically impossible to implement. As a user behind a firewall you normally expect to be able to open connections with any remote host.
Re:I got hacked: My Hetzner server started mining Monero
by metafunctor on Thursday December 18, 2025 @02:52AM
(#46309996)
Not impossible at all with a policy-filtering HTTPS proxy. See https://laurikari.github.io/exfilguard/
In this model, hosts don’t need any direct internet connectivity or access to public DNS. All outbound traffic is forced through the proxy, giving you full control over where each host is allowed to connect.
It’s not painless: you must maintain a whitelist of allowed URLs and HTTP methods, distribute a trusted CA certificate, and ensure all software is configured to use the proxy.