- 17
- Sep
If you haven’t noticed, I have been writing some custom snort rules lately. You might also be interested in the POP3 brute force and HTTP brute force rules.
SMTP Brute Force Block Rule:
The above rule will block hosts with packets destined with the content of “Authentication failed”.
This may vary based on your mail server software. You can test this by doing a telnet to your mail server:
EHLO
AUTH LOGIN
334 VXN1cm5hbWU6
type some jibberish
334 UGFzc3dvcmQ6
type some more jibberish
500 5.7.0 Authentication Failed
The last line - “500 5.7.0 Authentication Failed” - will tell you what you need to specify for the content rule option based on your server response to the failed login. You may also need to modify other parts of the rules based on your environment, e.x. sid to avoid conflicts with other rules.
NOTE: Snort will not block the offending host unless you have the SnortSam plugin installed.
This rule has been tried and tested by THC Hydra.


