So funny story, for a while I worked on a 'reverse' exploit. Which is to say morphing the response from ssh to the client with large malformed packets. The idea was to crash the client making the request. In my case I found these attacks would have like 6 to 10 attempts from the same source address. By time stamping the requests, I could evaluate if the next attack from the same address came more quickly or more slow…
Another fun one is sending a redirect to a gzip bomb or extremely large file (i.e. speedtest download file) for when certain non-existant URLs are requested, i.e. /wp-login.php on a non-wordpress site.
Brute.Fail: Watch brute force attacks fail in real time
161–170 of 268 posts
Re: Brute.Fail: Watch brute force attacks fail in real time
#162Earlier quoted context omitted.
Another fun one is sending a redirect to a gzip bomb or extremely large file (i.e. speedtest download file) for when certain non-existant URLs are requested, i.e. /wp-login.php on a non-wordpress site.
Earlier this month I was downloading top 1 million websites' robots.txt and some guy just served 100mb of whitespace :/
Re: Brute.Fail: Watch brute force attacks fail in real time
#163Earlier quoted context omitted.
Another fun one is sending a redirect to a gzip bomb or extremely large file (i.e. speedtest download file) for when certain non-existant URLs are requested, i.e. /wp-login.php on a non-wordpress site.
Earlier this month I was downloading top 1 million websites' robots.txt and some guy just served 100mb of whitespace :/
Re: Brute.Fail: Watch brute force attacks fail in real time
#164I kinda want to know the server's address so I can send a "hello_hn" message in the passwords there.
Upthread the author says one of the three servers is in Digital Ocean, which gives you an AS to target. Reverse engineer the web page so you can capture the websocket to your terminal, grep it for your IP, and search all of DO's ipv4 address space. use Shodan to limit your targets to only machines with an open port 22 to make it go faster.
Re: Brute.Fail: Watch brute force attacks fail in real time
#165Hi
Re: Brute.Fail: Watch brute force attacks fail in real time
#166Earlier quoted context omitted.
If an attacker manages a succesful login you've already lost. Better to catch them in the act while they're scoping you out.
If your SSH key leaks you're not going to have a warning. All you'll see is a login from yourself that you don't remember. I am pretty sure we turned off password authentication like 10 posts up this thread.
I have fail2ban configured to block IPs with invalid private keys after a couple attempts, and if the key is valid to email me and rate limit invalid password attempts.
This gives a more than sufficient warning if my key leaks which is already very unlikely, and this just makes it much more unlikely for both to be compromised, and only took an extra 5 minutes to configure.
Re: Brute.Fail: Watch brute force attacks fail in real time
#167I setup SSHD to listen on a wireguard interface rather than listening on all interfaces. This makes SSHD only accessible to wireguard peers rather than the entire internet. A nice aspect of wireguard is that it's "steath", meaning that it does not respond to unauthenticated connections at all, so there is no way to probe and scan for wireguard listeners at all. I think setting up daemons behind wireguard offers a lot…
Re: Brute.Fail: Watch brute force attacks fail in real time
#168Re: Brute.Fail: Watch brute force attacks fail in real time
#169So funny story, for a while I worked on a 'reverse' exploit. Which is to say morphing the response from ssh to the client with large malformed packets. The idea was to crash the client making the request. In my case I found these attacks would have like 6 to 10 attempts from the same source address. By time stamping the requests, I could evaluate if the next attack from the same address came more quickly or more slow…
Disable password authentication and fail2ban becomes completely unnecessary.
Re: Brute.Fail: Watch brute force attacks fail in real time
#170Earlier quoted context omitted.
20 years ago port-knocking was supposed to solve this issue for good but it seems to have been never really been taken up. I'm not sure why.
Port knocking as it's usually done is easily sniffed. Perhaps using a dynamic TOTP-like time based seed to constantly rotate the ports might help. But it sounds overly complex. It feels very like a "key under the third plant on the right" kinda thing. Not a solid security measure.