<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>John,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I figured that the user’s computer was compromised and the user/password was obtained that way but then again I’m baffled as to why they would start a dictionary attack on the server if they already have the user/pass combo.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I was just worried that something else happened here that I was unaware of. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> centos-bounces@centos.org [mailto:centos-bounces@centos.org] <b>On Behalf Of </b>John Hinton<br><b>Sent:</b> Wednesday, November 10, 2010 6:27 PM<br><b>To:</b> CentOS mailing list<br><b>Subject:</b> Re: [CentOS] dictonary attacks<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 11/10/2010 6:10 PM, PA wrote: <o:p></o:p></p><p class=MsoNormal>Hi hoping someone can help me a little with this one.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I have 2 mail servers, the incoming mail server runs dovecot and the outgoing mail server runs postfix with sasl.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Lately I noticed a lot of spammers are running dictionary attacks on my incoming server and then using that user/password for sasl on the outgoing server.<o:p></o:p></p><p class=MsoNormal>The weird thing is I never see on the logs the guessed username/password. I always see the ones they can’t guess.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>For example:<o:p></o:p></p><p class=MsoNormal>Looking at the logs I see the following dictionary attack from 94.242.206.37<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: pop3-login: Disconnected: rip=94.242.206.37, lip=209.213.66.10<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=209.213.66.10 rip=94.242.206.37 resp=<hidden><o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(aarhus,94.242.206.37): lookup<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=209.213.66.10 rip=94.242.206.37 resp=<hidden><o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(abaft,94.242.206.37): lookup<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(abaft,94.242.206.37): unknown user<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=209.213.66.10 rip=94.242.206.37 resp=<hidden><o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(aarhus,94.242.206.37): unknown user<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=209.213.66.10 rip=94.242.206.37 resp=<hidden><o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(aaron,94.242.206.37): lookup<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(aaron,94.242.206.37): unknown user<o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=209.213.66.10 rip=94.242.206.37 resp=<hidden><o:p></o:p></p><p class=MsoNormal>Nov 10 03:04:38 pop dovecot: auth(default): shadow(ababa,94.242.206.37): lookup<o:p></o:p></p><p class=MsoNormal>…………. And so on..<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Then that ip gets banned by fail2ban<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>[root@pop ~]# grep 94.242.206.37 /var/log/fail2ban.log<o:p></o:p></p><p class=MsoNormal>2010-11-10 03:04:42,416 fail2ban.actions: WARNING [dovecot] Ban 94.242.206.37<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>However on my outgoing mail server that ip is already sending out all sorts of spam with the sasl username of Paramus. <o:p></o:p></p><p class=MsoNormal>This username Paramus never shows up on the dovecot dictionary attack log, as a matter of fact the user Paramus is nowhere to be found on the dovecot log at all and I have logs going back months. <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 02:46:16 mrelay3 postfix/smtpd[27776]: 3B64928015: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=paramus<o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 02:47:54 mrelay3 postfix/smtpd[27776]: 247AB28016: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=paramus<o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 02:48:00 mrelay3 postfix/smtpd[27785]: 87DE128016: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=paramus<o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 02:56:00 mrelay3 postfix/smtpd[27792]: 9728628015: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=paramus<o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 03:05:38 mrelay3 postfix/smtpd[27808]: D529F28015: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=paramus<o:p></o:p></p><p class=MsoNormal>/var/log/maillog:Nov 10 03:06:00 mrelay3 postfix/smtpd[27808]: DDF7C2801B: client=unknown[94.242.206.37], sasl_method=LOGIN, sasl_username=Paramus<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Does anyone have any idea what could of happened here. I mean if the user/passwd was already harvested by 94.242.206.37 why would they bother to start another dict. attack. <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I’m just not sure how they guess the username/password as its not on any logs that goes back months and I don’t have a dovecot fail record for that user on the logs. This is the case all the time for me and it happens with other ips.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Any help would be appreciated.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>paul<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Yeah... isn't this fun? I'm using Fail2Ban for the same reasons.<br><br>Off the top of my head, perhaps the user paramus, assuming they actually use your server for email, may have a trojan on their comp recording keystrokes and sending them to the bad boy. Many of the latest virii are very good at this, getting FTP logins as well to help spread their malwares onto web pages.<br><br>I believe most of these are totally automated processes, with just a bit of blackhat input. As they had your server address anyway, I'd bet it just made it onto the bot list to do dictionary attacks as well. Sort of dumb when you think about it, as the dictionary attack would get them firewalled, killing off what is successfully running. But don't tell the spammer that. ;)<br><br>Also, it doesn't hurt to report these addresses to the network admin. I have been successful a number of times in getting stuff shut down. This seems to be a legit provider. They might actually respond. If we all do that, our numbers can make it harder on the spammers.<br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>John Hinton<o:p></o:p></pre><pre><o:p> </o:p></pre></div></body></html>