News for hackers. Stuff that matters.
Re:A recent abrupt change in Internet SSH brute force attack... by udev4096 on Saturday February 24, 2024 @10:36AM (#39492260)
Why are they not using fail2ban?
Re:A recent abrupt change in Internet SSH brute force attack... by csdreamer7 on Saturday February 24, 2024 @12:05PM (#39493119)
Where did they say they did not use fail2ban?
Re:A recent abrupt change in Internet SSH brute force attack... by udev4096 on Saturday February 24, 2024 @12:07PM (#39493133)
I don't see any mention of it in the post
Re:A recent abrupt change in Internet SSH brute force attack... by rlpb on Saturday February 24, 2024 @02:23PM (#39494383)
Here's a good list of reasons: https://www.opencve.io/cve?vendor=fail2ban

Parsing log files not intended to be read by automation (eg. questionable or nonexistent escaping) to then take actions as root is with great remote injection vector is not a good idea.

Re:A recent abrupt change in Internet SSH brute force attack... by 15457345234 on Saturday February 24, 2024 @11:28PM (#39497655)
That's a very very small list of vulnerabilities for such a widely used piece of software.

Using fail2ban with SSH is very widely done and is thoroughly recommended. It increases security and is objectively a good idea.

Re:A recent abrupt change in Internet SSH brute force attack... by rlpb on Sunday February 25, 2024 @04:37AM (#39499267)
> That's a very very small list of vulnerabilities for such a widely used piece of software.

They are schoolboy errors in a relatively trivial piece of software that very well demonstrate the fundamental security flaw in its design.

> is thoroughly recommended

Recommended by whom? The Internet, or prominent experts in the field?

Re:A recent abrupt change in Internet SSH brute force attack... by 15457345234 on Sunday February 25, 2024 @05:15AM (#39499512)
> They are schoolboy errors in a relatively trivial piece of software that very well demonstrate the fundamental security flaw in its design.

I read through the CVEs and they're not 'schoolboy errors' at all - in fact, the first one doesn't even refer to fail2ban itself but to a program being called by fail2ban.

There's no fundamental security flaw in its design.

> Recommended by whom? The Internet, or prominent experts in the field?

It's recommended in several linux/unix books - physical books, written by experts - and in many blogs. So, both.

Re:A recent abrupt change in Internet SSH brute force attack... by ahepp on Sunday February 25, 2024 @11:53AM (#39502361)
What threat model does fail2ban prevent, that couldn’t just be solved by using secure credentials?
Re:A recent abrupt change in Internet SSH brute force attack... by dreamcompiler on Sunday February 25, 2024 @12:30PM (#39502712)
Let's say you lock your house's front door with a secure pass phrase while you're still inside. Once per second some stranger walks up to your door and knocks. You now get up from your chair, go to the door and say "Pass phrase please?"

The knocker says "password123" and you say "Wrong, go away." But one second later they come back and knock and you have to get up and go to the door again. And again. And again.

The bad guys never get in because they only try stupid passwords, but the constant getting up and going to the door gets pretty tiresome.

So you get a dog, you put it outside your door and you train it to keep away for one minute any stranger who knocks but fails to get in.

Now you have a lot more peace because you're not getting out of your chair every second to ask the pass phrase from some rando.

Fail2ban is the dog.

Re:A recent abrupt change in Internet SSH brute force attack... by ahepp on Sunday February 25, 2024 @02:34PM (#39503991)
I have seen a lot of failed connection attempts in my logs, but never noticed substantial resource usage. Is SSH DoS a serious concern? I get the impression people are suggesting it to protect authentication, which makes basically zero sense to me.
Re:A recent abrupt change in Internet SSH brute force attack... by dreamcompiler on Sunday February 25, 2024 @03:12PM (#39504285)
F2B shrinks the attack surface. There's almost no chance of somebody getting in if you secure your server properly, but "almost no" is not zero, and making it even closer to zero seems like a good idea. My main concern is that some future update to SSHd will contain a zero-day vulnerability and F2B would at least slow the bad guys down. My second concern is that I might spin up a server and forget to disable SSH passwords and leave one enabled that happens to show up in a password database. Oof.
Re:A recent abrupt change in Internet SSH brute force attack... by hyperman1 on Monday February 26, 2024 @03:45AM (#39508910)
I tend to work with whitelists instead of blacklists: I add only the IP ranges used by my ISP to the firewall whitelist. Most countries can't even ssh to my machines if they wanted to.