On my small group of FreeBSD/Apache servers (including my home development system), I found about 320 attempts to "infect" my server with the Code Red worm. This happened starting August 1, and is still happening now, Aug 3.
Heh... I'm not infectable... let 'em try! But anyway, I was just curious if anyone else has any home-grown statistics on these attempts. Just search your webserver access logs for any request that looks like:
The above string is the first infection attempt. It's the "default.ida" part that you should notice. If you are running an unpatched IIS and that file is on your system, you are asking for trouble. If you don't have that file, you will still see the request in your logs, but there is no threat.
Anyway, on a Unix system, getting numbers on this kind of log entry is really easy:
The
Heh... I'm not infectable... let 'em try! But anyway, I was just curious if anyone else has any home-grown statistics on these attempts. Just search your webserver access logs for any request that looks like:
Code:
193.251.57.189 - - [03/Aug/2001:02:26:17 +0000] "GET /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a HTTP/1.0" 400 321
The above string is the first infection attempt. It's the "default.ida" part that you should notice. If you are running an unpatched IIS and that file is on your system, you are asking for trouble. If you don't have that file, you will still see the request in your logs, but there is no threat.
Anyway, on a Unix system, getting numbers on this kind of log entry is really easy:
Code:
bash$ tail -5000 /usr/local/apache/logs/access_log | grep default.ida | wc -l
The
Code:
tail -5000[code] will output the last 5000 log entries from your log, while you pipe it to grep with | grep default.ida, saying you only want lines with "default.ida" in them, and then you pipe it to "wc -l" for a count of how many lines contained that word.
So... share your Code Red experiences :-(.