News for hackers. Stuff that matters.
Re:What You Get After Running an SSH Honeypot for 30 Days by cranberryturkey on Sunday June 16, 2024 @04:06AM (#40695487)
Just install fail2ban.
Re:What You Get After Running an SSH Honeypot for 30 Days by WhackyIdeas on Sunday June 16, 2024 @06:23AM (#40695984)
For SSH, changing to a random port number resulted in zero connection attempts from bots for months on end. It seems bots just never bother scanning the full 65535 port range.
Re:What You Get After Running an SSH Honeypot for 30 Days by dizhn on Sunday June 16, 2024 @06:37AM (#40696043)
For most of my VMs there's no ssh running. I use wireguard to connect to a private IP. I haven't done this on the bare metal yet but I might. Though barring exploits like we had recently nobody is getting into a server with either strong passwords or certificates. Fail2ban in my eyes is a log cleaner. It's not useful for much else.
Re:What You Get After Running an SSH Honeypot for 30 Days by cranberryturkey on Sunday June 16, 2024 @08:40AM (#40696620)
it bans the bad ips, isn't that worth running?
Re:What You Get After Running an SSH Honeypot for 30 Days by thfuran on Sunday June 16, 2024 @01:41PM (#40698761)
But what does that actually accomplish?
Re:What You Get After Running an SSH Honeypot for 30 Days by cranberryturkey on Monday June 17, 2024 @09:28PM (#40713170)
stops the attack from happening from those ips?
Re:What You Get After Running an SSH Honeypot for 30 Days by account42 on Monday June 17, 2024 @07:45AM (#40704609)
> the full 65535 port range

Note that putting SSH on a high port has security implications.

Re:What You Get After Running an SSH Honeypot for 30 Days by WhackyIdeas on Tuesday June 18, 2024 @08:44AM (#40717162)
What security implications?
Re:What You Get After Running an SSH Honeypot for 30 Days by speleding on Sunday June 16, 2024 @08:52AM (#40696685)
A server with fail2ban can be DOSed by sending traffic with spoofed IP addresses, making it unavailable to the spoofed IP addresses (which could be your IP, or the IP of legitimate users).

That is typically a bigger problem than polluting your logs with failed login attempts.

Re:What You Get After Running an SSH Honeypot for 30 Days by CreatedAccount on Sunday June 16, 2024 @09:21AM (#40696866)
What would spoofing the IP of a packet when the underlying protocol requires a two-way handshake accomplish?
Re:What You Get After Running an SSH Honeypot for 30 Days by ajsnigrutin on Sunday June 16, 2024 @10:03AM (#40697155)
With CGNAT, a prepaid sim card and some effort, you can make them block a whole legit ISP in a few days without spoofing anything.
Re:What You Get After Running an SSH Honeypot for 30 Days by tiberious726 on Sunday June 16, 2024 @10:13PM (#40701752)
But the SIM card would need to from the particular ISP you are trying to block, otherwise you would be coming out of a different isps cgnat range, no?
Re:What You Get After Running an SSH Honeypot for 30 Days by ajsnigrutin on Wednesday June 19, 2024 @02:51AM (#40725551)
Yeah, but many ISPs, especially smaller, have a same pool of ip addresses for all of their users in that 'region' (for whatever size and definition of a "region").

So with some effort, reconnections from/to a mobile network and many tcp/ip connectons, you can achieve that your device is connecting to the attacked site with many different (if not all) IP addresses from the ISPs pool, and if each of those is blocked, none of the legit users (using the same IP address pool) can access those services anymore.

Look at services like digitalocen with cheap virtual machines... even amazon... so many of their IP addresses were used for something "bad" and got blocked, that running a legit service on any of them can mean that a portion of your potential users won't be able to access them, because they'll be on some block list somewhere.

Re:What You Get After Running an SSH Honeypot for 30 Days by tiberious726 on Sunday June 16, 2024 @10:14PM (#40701759)
Don't most isps check the source address before relaying traffic nowadays? I know at least one of mine started a few years ago (and we had no idea we were asymmetrically routing our traffic till then...)
Re:What You Get After Running an SSH Honeypot for 30 Days by hypeatei on Sunday June 16, 2024 @11:09AM (#40697631)
fail2ban is another layer which is susceptible to abuse and vulnerabilities. It might keep noise out of your logs but at a huge cost. I'd rather just change the SSH port to something non-standard and write it down.
Re:What You Get After Running an SSH Honeypot for 30 Days by gnuser on Sunday June 16, 2024 @01:52PM (#40698843)
Add it port knocking and this is how I do it. nftables ftw