I have a weird situation here: last night I got a number of BFM notifications about failed login attempts. The message says:
So okay, but those are failed attempts on Exim, so I checked the CSF config, and the SMTPAUTH_LOG is set to /var/log/exim/mainlog, which is correct. Strangely enough, I see the failed login attempts in the logs, and indeed, they add up to what BFM is telling me (104!).
But here's the strange part: other, similar attempts were blocked successfully after 5 attempts. What's different about this one? It's not that this IP has been whitelisted, because after manually adding the IP to CSF, I didn't see the message about a duplicate.
Could it be that CSF didn't pick this one up because the log entries differ from normal?
This one failed to be picked up by CSF:
This one was picked up immediately (5 attempts):
I do see that the last one were 5 successive attempts, thus made in a very short timeframe, while the 1x5.222.209.14 attempts were spaced much further apart in the log. Can it be so that CSF only picks up failed attempts when they're successive? That's hard to imagine. The other thing I notice is that it says "login authenticator failed" and not "plain authenticator failed". I see more "login authenticator failed" in the logs, and they do get blocked, but usually these are also spaced closely and alternate between "login authenticator failed" and "plain authenticator failed".
Should I really tune the CSF/LFD blocking rules manually? I was always under the assumption that they were solid out of the box.
Any advice welcome.
A brute force attack has been detected in one of your service logs.
IP 1x5.222.209.14 has 104 failed login attempts: exim2=104
So okay, but those are failed attempts on Exim, so I checked the CSF config, and the SMTPAUTH_LOG is set to /var/log/exim/mainlog, which is correct. Strangely enough, I see the failed login attempts in the logs, and indeed, they add up to what BFM is telling me (104!).
But here's the strange part: other, similar attempts were blocked successfully after 5 attempts. What's different about this one? It's not that this IP has been whitelisted, because after manually adding the IP to CSF, I didn't see the message about a duplicate.
Could it be that CSF didn't pick this one up because the log entries differ from normal?
This one failed to be picked up by CSF:
2018-01-28 09:44:37 login authenticator failed for (User) [1x5.222.209.14]: 535 Incorrect authentication data ([email protected])
This one was picked up immediately (5 attempts):
2018-01-28 11:39:45 plain authenticator failed for (anotherdomain.com) [1x1.199.86.123]: 535 Incorrect authentication data ([email protected])
I do see that the last one were 5 successive attempts, thus made in a very short timeframe, while the 1x5.222.209.14 attempts were spaced much further apart in the log. Can it be so that CSF only picks up failed attempts when they're successive? That's hard to imagine. The other thing I notice is that it says "login authenticator failed" and not "plain authenticator failed". I see more "login authenticator failed" in the logs, and they do get blocked, but usually these are also spaced closely and alternate between "login authenticator failed" and "plain authenticator failed".
Should I really tune the CSF/LFD blocking rules manually? I was always under the assumption that they were solid out of the box.
Any advice welcome.
Last edited: