Anda di halaman 1dari 38

Log files: A wealth of forensic evidence

Kevin Powe Integral Technology Solutions

The most comprehensive Oracle applications & technology content under one roof

More info at http://bit.ly/kapowelogs

The most comprehensive Oracle applications & technology content under one roof

Forensic process
Log files Case files Tools

The most comprehensive Oracle applications & technology content under one roof

The Forensic Process

The most comprehensive Oracle applications & technology content under one roof

Step One: Secure The Scene

The most comprehensive Oracle applications & technology content under one roof

Operating System Evidence


netstat for network issues top or Windows Task Manager for CPU issues iostat or vmstat for I/O issues

The most comprehensive Oracle applications & technology content under one roof

Rolling Log Files

The most comprehensive Oracle applications & technology content under one roof

Cause
2-4PM

Symptoms
4-6PM

The most comprehensive Oracle applications & technology content under one roof

Step Two: Investigate The Scene

The most comprehensive Oracle applications & technology content under one roof

Dont. Search. The. Log. Files.


The most comprehensive Oracle applications & technology content under one roof

Error

versus

Warning

Failing versus Failed

The most comprehensive Oracle applications & technology content under one roof

Step Three: Gather And Correlate Evidence

The most comprehensive Oracle applications & technology content under one roof

Step Four: Build A Hypothesis

The most comprehensive Oracle applications & technology content under one roof

1) Secure the scene


2) Investigate the scene 3) Gather and correlate evidence

4) Build a hypothesis

The most comprehensive Oracle applications & technology content under one roof

Forensic process
Log files Case files Tools

The most comprehensive Oracle applications & technology content under one roof

WebLogic Server Domain


AdminServer managedServer1

Java processes

managedServer2

The most comprehensive Oracle applications & technology content under one roof

HTTP Access Logs

The most comprehensive Oracle applications & technology content under one roof

192.168.5.6 - - [19/Nov/2010:13:34:49 +0800] "POST /AccountServices/ProxyServices/AccountServices HTTP/1.1" 200 29487

192.168.5.6 - - [19/Nov/2010:13:34:49 +0800] "POST /WarehousingServices/ProxyServices/RequestOrderDetails HTTP/1.1" 200 1167

rfc931
Remote host authuser

date

192.168.5.6

[19/Nov/2010:13:34:49 +0800]
request

"POST /WarehousingServices/ProxyServices/RequestOrderDetails HTTP/1.1


status 200 bytes 1167
The most comprehensive Oracle applications & technology content under one roof

ELF = Extended Logging Format

The most comprehensive Oracle applications & technology content under one roof

Extended Logging Format Fields


Common format fields
date time bytes sc-status

Request fields
cs-method cs-uri cs-uri-stem cs-uri-query

Network fields
c-ip s-ip c-dns s-dns

The Good Stuff


cs-comment time-taken custom

The most comprehensive Oracle applications & technology content under one roof

Server log files

The most comprehensive Oracle applications & technology content under one roof

The most comprehensive Oracle applications & technology content under one roof

####<2/08/2011 12:49:35 AM EST> <Notice> <Server> <brother-eye> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1312210175933> <BEA-002613> <Channel "Default" is now listening on 10.0.2.15:7001 for protocols iiop, t3, ldap, snmp, http.>

####<2/08/2011 12:49:35 AM EST> <Notice> <WebLogicServer> <brother-eye> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1312210175933> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "example1030Domain" running in Development Mode>

Timestamp

Severity

Subsystem

Machine

<2/08/2011 12:49:35 AM EST> <Notice> <WebLogicServer> <brother-eye>


Server Thread ID

<AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'>


User Txn ID Diagn. Time (msecs) Message ID Text

<<WLS Kernel>> <>

<> <1312210175933> <BEA-002613> <Channel "Default" is


The most comprehensive Oracle applications & technology content under one roof

Debug flags

The most comprehensive Oracle applications & technology content under one roof

HTTP: SSL: JDBC:

weblogic.servlet.DebugHttp default.DebugSSL weblogic.jdbc.sql.DebugJDBCSQL

The most comprehensive Oracle applications & technology content under one roof

<4/08/2011 07:47:35 PM EST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=HomePage1.> Loaded index.jsp page Loaded index.jsp page Loaded index.jsp page <4/08/2011 23:20:34 PM EST> <Info> <Health> <brother-eye> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <> <1311830434630> <BEA-310002> <86% of the total memory in the server is free>

TO
<4/08/2011 07:53:38 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> <4/08/2011 07:53:38 PM EST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> <4/08/2011 07:53:49 PM EST> <Notice> <Stdout> <BEA-000000> <Loaded index.jsp page> <4/08/2011 07:53:50 PM EST> <Notice> <Stdout> <BEA-000000> <Loaded index.jsp page> <4/08/2011 07:53:51 PM EST> <Notice> <Stdout> <BEA-000000> <Loaded index.jsp page> <4/08/2011 08:20:34 PM EST> <Info> <Health> <brother-eye> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <> <1311830434630> <BEA-310002> <86% of the total memory in the server is free>

The most comprehensive Oracle applications & technology content under one roof

Oracle Service Bus tracing


The most comprehensive Oracle applications & technology content under one roof

JMS Message Logs

The most comprehensive Oracle applications & technology content under one roof

SOA Suite Diagnostic Logs

The most comprehensive Oracle applications & technology content under one roof

Forensic process
Log files Case files Tools

The most comprehensive Oracle applications & technology content under one roof

Case File #1 An Unbalanced Load


The most comprehensive Oracle applications & technology content under one roof

Sun Reverse Proxy Load balancer Sun Reverse Proxy

WebLogic Server

WebLogic Server

The most comprehensive Oracle applications & technology content under one roof

cat access.log* | awk { print $x } | sort | uniq


(where x = position of the cookie in the log file)

The most comprehensive Oracle applications & technology content under one roof

Case File #2 Fear Of Commitment


The most comprehensive Oracle applications & technology content under one roof

Oracle Service Bus

Tuxedo

The most comprehensive Oracle applications & technology content under one roof

Forensic process
Log files Case files Tools

The most comprehensive Oracle applications & technology content under one roof

Tools
Editors The Gun vi Querying data find grep sed awk tail Analysis Excel R Splunk

The most comprehensive Oracle applications & technology content under one roof

@kapowe kevinpowe kapowe

The most comprehensive Oracle applications & technology content under one roof

Anda mungkin juga menyukai