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:
alert tcp $SMTP_SERVERS 25 -> $EXTERNAL_NET any (msg:”Rapid SMTP Auth Failures - Possible Brute Force Attack”; content: “Authentication failed”; nocase; threshold: type both, track by_dst, count 20, seconds 10; classtype: misc-activity; rev:4; sid:1234567895; fwsam: dst, 240 minutes;)
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:
telnet mail.host.net 25
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.
I hear a lot of people that are whole heartedly against saving passwords in their browser. I would agree if these were not encrypted in any way, but by implementing a master password in Firefox, we can encrypt our saved passwords. Beware that any passwords saved before you set your master password are NOT encrypted and it is still possible for malicious code to steal your passwords through a web site.
Just for giggles, I will to try to crack my Firefox master password. I will do this by using Nagareshwar Talekar’s FireMaster Firefox master password recovery tool.
Firemaster is a Windows only tool so I am going to load it up in my VMware and see how long it takes to crack my Firefox master password.
Download Firemaster.
Extract the Firemaster.exe to a folder, like your desktop.
I am going to use the brute force method. If you like, run firemaster without options to see the syntax switches. The most important switches are the -n for number of characters and the -a to specify which characters to use when brute forcing. Now run FireMaster as so:
firemaster -q -b -n 15 -a “qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()” “C:\Documents and Settings\Username\Application Data\Mozilla\Firefox\Profiles\XXXXXX.default”

Read the rest of this entry …