diff --git a/contrib/ossec-testing/tests/proftpd.ini b/contrib/ossec-testing/tests/proftpd.ini index 9803a2d7a..84a26a281 100644 --- a/contrib/ossec-testing/tests/proftpd.ini +++ b/contrib/ossec-testing/tests/proftpd.ini @@ -23,3 +23,10 @@ log 1 pass = Jan 04 22:51:57 valhalla proftpd[15181]: valhalla (crawl-66-249-66- rule = 11206 alert = 5 decoder = proftpd + +[Login failed accessing the FTP server] +log 1 pass = 2015-04-16 21:51:02,805 zuse proftpd[26189] zuse.domain.com (182.100.67.115[182.100.67.115]): USER root (Login failed): Incorrect password +rule = 11204 +alert = 5 +decoder = proftpd + diff --git a/src/analysisd/cleanevent.c b/src/analysisd/cleanevent.c index e40223de5..bb346d238 100644 --- a/src/analysisd/cleanevent.c +++ b/src/analysisd/cleanevent.c @@ -78,6 +78,7 @@ int OS_CleanMSG(char *msg, Eventinfo *lf) * ( ex: Dec 29 10:00:01 * or 2007-06-14T15:48:55-04:00 for syslog-ng isodate * or 2009-05-22T09:36:46.214994-07:00 for rsyslog ) + * or 2015-04-16 21:51:02,805 (proftpd 1.3.5) */ if ( ( @@ -89,6 +90,17 @@ int OS_CleanMSG(char *msg, Eventinfo *lf) (pieces[15] == ' ') && (lf->log += 16) ) || + ( + (loglen > 24) && + (pieces[4] == '-') && + (pieces[7] == '-') && + (pieces[10] == ' ') && + (pieces[13] == ':') && + (pieces[16] == ':') && + (pieces[19] == ',') && + (lf->log += 23) + ) + || ( (loglen > 33) && (pieces[4] == '-') &&