News for hackers. Stuff that matters.
Re:I looked through attacks in my access logs by psanford on Sunday January 28, 2024 @07:51PM (#39171601)
Are we just speculating? SSH scanners are not sources of DDoS. Large companies have ssh bastions on the internet and do not worry about ssh DDoS. Its not really a thing that happens.

You don't need to freak out if you see a bunch of failed ssh auth attempts in your logs. Just turn off password based authentication and rest easy.

Re:I looked through attacks in my access logs by koito17 on Sunday January 28, 2024 @08:17PM (#39171734)
Agreed. Another thing you can do to drastically reduce the amount of bots hitting your sshd is to listen on a port that is not 22. In my experience, this reduces ~90% of the clutter in my logs. (Disclaimer: this may not be the case for you or anyone else)
Re:I looked through attacks in my access logs by TacticalCoder on Sunday January 28, 2024 @08:45PM (#39171885)
Just to reduce the crap in the log and also because I can, I have my SSH servers (not saying what their IPs are) using a very effective measure: traffic is dropped from the entire world, except for the CIDR blocks, which I put in ipsets, of the five ISPs over three countries I could reasonably be in when I need to access the SSH servers.

And if I'm really, say, in China or Russia an really need to access one of my servers through SSH, I can use a jump host in one of the three countries that I allow.

So effectively: DROPping traffic from 98% of the planet.

Boom.

Re:I looked through attacks in my access logs by bradknowles on Sunday January 28, 2024 @09:34PM (#39172106)
Deny by default, allow only those sources that are considered trustworthy. And frequently re-evaluate who and what should be considered trustworthy.
Re:I looked through attacks in my access logs by aborsy on Sunday January 28, 2024 @11:47PM (#39172789)
Or close the ports, and install an agent that phones out such as Tailscale or twingate.
Re:I looked through attacks in my access logs by Fnoord on Monday January 29, 2024 @02:34AM (#39173724)
Or just Wireguard itself.
Re:I looked through attacks in my access logs by PLG88 on Monday January 29, 2024 @04:10AM (#39174297)
This is the way, outbound only connections so you can stop all external unauthenticated attacks. I wrote a blog 2 years back comparing zero trust networking using Harry Potter analogies... what we are describing is making our resources 'invisible' to silly muggles - https://netfoundry.io/demystifying-the-magic-of-zero-trust-w...
Re:I looked through attacks in my access logs by Fnoord on Monday January 29, 2024 @02:33AM (#39173719)
I don't want to be able to auth whilst physically in authoritarian regimes. If I had to be physically there it'd be via burner devices.
Re:I looked through attacks in my access logs by amne on Monday January 29, 2024 @05:25AM (#39174753)
I used to have an iptables config that just drops everything by default on the SSH port and run a DNS server that when queried a magic string would allow my IP to connect to SSH. It did help that the DNS server was actually used to manage a domain and was seeing traffic so you couldn't isolate my magic queries so easily.
Re:I looked through attacks in my access logs by bradknowles on Sunday January 28, 2024 @09:33PM (#39172099)
Until there is a new zero day on sshd.

You want to keep these things behind multiple locked doors, not just one.

For the servers themselves, you shouldn't be able to get to sshd unless you're coming from one of the approved bastion servers.

You shouldn't be able to get to one of the approved bastion servers unless you're coming from one of the approved trusted sources, on the approved user access list, and using your short-lived sshd certificate that was signed through the use of a hardware key.

And all those approved sources should be managed by your corporate IT department, and appropriately locked down by the corporate MDM process.

And you might want to think about whether you should also be required to be on the corporate VPN. Or, to be using comparable technologies to access those approved sources.

Re:I looked through attacks in my access logs by op00to on Monday January 29, 2024 @07:58AM (#39175698)
> For the servers themselves, you shouldn't be able to get to sshd unless you're coming from one of the approved bastion servers.

What if there's a zero-day in your bastion service, whatever that is?