36
LOG:MOLE Finding needles in forensic haystacks

logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLEFinding  needles  in  forensic  haystacks

Page 2: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

Introduction

Concept

Workflow

File  Modules

Url Modules

Output  Modules

Use  Cases  /  Examples

Outlook

Questions

AGENDA

Page 3: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

INTRODUCTION

Page 4: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

AUTHOR

In  the  IT  industry  for  15  years

System  Engineering   in  public  /  private  sector,    Malware  Analysis  ,  Information  Security  Engineering   in  the  online  gaming  industry,  Information  Security  Consulting

Now:  Information  Systems  Auditor

Projects  in  my  spare  time:  Usec.at software  (e.g.  Radix),  Community  Sense  Net,  various  non-­security  IT  projects  

Interest  in  computer  forensics  and  forensic  archaeology

Tool  developed  by  DI  Wilhelm  Demuth  and  Florian  Eichelberger

Re-­implemented  in  2015  by  Simon  Scheuchenpflug of  Cognosec

Page 5: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

Cognosec  Gmbh (Founded  in  2011  in  Vienna)

Operational  Worldwide  (branches  in  Stockholm,  London,  Dubai,  Johannesburg)

Leaders  in  IT  Security,  IT  Audit,  Risk  and  Compliance

Active  in  all  major  industries  including  Banking/Finance,  Payment/E-­Commerce,  Healthcare,  Retail,  Manufacturing,  Government,  Hospitality,  Transport,  Gaming,  and  Education

Commitment  to  Quality

ABOUT COGNOSEC

Page 6: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

SERVICE OVERVIEW

Assurance Services•Penetration Testing•Application Security Testing•Social Engineering•IS Audits

Security Services•Data Leakage & Loss

Prevention•Security Monitoring•Application Security•Incident Response•Network Security

GRC Services•Compliance Gap Assessment•Risk Assessment•GRC Solutions•Information Security

Management (incl. ISMS)

PCI Services•PCI ASV Security Scan•PCI QSA On-Site Assessment•PCI Gap Assessment•Remediation•Security Awareness Programme

Page 7: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

CONCEPT

Page 8: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

WHAT’S THE PROBLEM

Page 9: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

PROBLEM?!

Overwhelming  amount  of  evidence  to  sift  through

Manual  approach  or  multi-­tool-­multi-­format  approach  error-­prone  and  not  parallelizable

Takes  a  long  time  to  find  the  “smoking  gun”

Log2timeline  and  mactime bodyfiles format  mostly  used  in  OS  forensics

Logfiles with  hundreds  of  MB  or  GB  take  a  long  time  to  process  with  most  other  tools  unfortunately

Page 10: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

WHAT’S THE SOLUTION

Page 11: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

SOLUTION!?

Automation  of  evidence  processing

Analyze  log2timeline  and  mactime bodyfiles

Process  read-­only  mounted  filesystems and  file-­system  images

Processes  referenced  files  /  registry  keys  /  urls to  find  the  “smoking  gun”

Easily  adjustable  and  extensible  for  other  formats  using  a  config file

Initially  written  in  C#  and  optimized  for  speed  and  memory  usage

Ported  to  python  in  2015

Tested  on  Windows  and  Linux  and  MacOS X

Page 12: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

DESIGN GOALS

Stability

Extendability with defined interfaces

Powerful workflow configuration

Export to SIEM tools (JSON, CSV, Syslog)

Implemented two modes in new version

(LogMole and FileMole)

Page 13: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

WORKFLOW

Page 14: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

WORKFLOW

New  workflow  engine  implemented

Provides  flexibility  for  target  environments  and  situations  and  required  tests

Workflow  consists  of  modules,  parametrized

Using  Time-­range,  Filter  ,  Tagger  Modules

Page 15: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

WORKFLOW

Page 16: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

FILE MODULES

Page 17: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

ENTROPY CHECK / MD5 / SHA1

Check  for  compression

Check  entropy  based  on  filetype

Generated  Hashes  for  further  processing  and  reference  (MD5  for  legacy  application  compatibility)

Page 18: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

REGEX-IN-FILE / STRINGS

Check  for  regex  in  files

As  powerful  as  the  written  regex  but  slow.

Same  as  linux strings  module

Page 19: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

CLAMAV

Most  widely  open-­source  OS  virus  scannerCheck  for  known  malwareSub-­optimal  detection  rate  for  rare  samples  ,  detection  rate  only  averageCan  be  replaced  by  other  cmd-­line  virus  scanner

Page 20: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

NSRL

National  Software  Reference  LibraryProvided  by  the  NISTKnown  file  databaseUsed  for  whitelisting  (!)

For  weeding  out  OS  /  Common  application  files.Converted  to  optimized  binary  format  for  faster  processing.

Page 21: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

VIRUSTOTAL

Online  Multi-­AV  scanner  (now  owned  by  Microsoft)Provides  information  on  documented  malware  via  MD5  searchScanning  for  unknown  malware.

Upload  of  unknown  files  found  by  Log:Mole to  VT  for  analysis.Note:  Needs  proper  API  key

Page 22: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

URL MODULES

Page 23: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

MALWAREDOMAINLIST

Provides  malware  url /  server  information  in  CSV  format.

Parsed  and  used  by  Log:Mole for  malicious  urldetection

Additional  checks  on  urls are  performed  to  detect  suspicious  urls and  add  up  to  a  ….value.

Page 24: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

GOOGLE SAFE BROWSING

Up-­to-­date  list

Pre-­Categorized  list  (Phishing,  malware  ,  unwanted)

Online  /  Offline  mode  (some  GB  to  be  downloaded  but  FAST)

Page 25: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

OUTPUT MODULES

Page 26: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

SAVE-AS

Output  is  saved  to  the  filesystem.

CSV  format  is  widely  used  and  easily  parse  able

JSON  ,  timestamps  can  be  exported  in  a  desired  timefomat

Syslog

Page 27: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

SEND-AS

Output  is  sent  to  a  udp /  tcp network  port

CSV  format  is  widely  used  and  easily  parse  able

JSON  ,  timestamps  can  be  exported  in  a  desired  timefomat

Syslog

Page 28: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

“PRETTY PRINT”

Generates  human-­readable  output  on  the  console{

"uid": 501,

"orig_path": "Documents and Settings/All Users/Application Data/Adobe/Reader/9.3/ARM/7019/ReaderUpdater.exe",

"set_uid": false,"mtime": "2012/01/03 07:37:53",

"size": 320456,"group_read": true,"others_read": true,"owner_write": true,

"gid": 20,"md5": "6b5ed259ffcdd40663007b6047e1efe0",

}

Page 29: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

USE CASE / EXAMPLE

Page 30: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

USE CASE LOG:MOLE

Helps  to  speed  up  time-­to-­evidence

Multiple  body  files  can  be  processed  at  once

No  “pushbutton  forensics”  but  a  tool  for  an  investigator

Malware  and  malicious  url detection

Import  into  SIEM  Solution  to  correlate  with  other  threat  data

Page 31: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

USE CASE FILE:MOLE

Helps  to  speed  up  time-­to-­evidence

Highly  configurable  workflow  /  automation

Extract  filesystem meta-­data  for  malware  detection  and  file  classification

Import  into  SIEM  Solution  to  correlate  with  other  threat  data

Page 32: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

EXAMPLE

Page 33: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

OUTLOOK / FUTURE WORK

Page 34: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

POSSIBLE EXTENSIONS ?

More  input  formats

More  output  formats  /  Tool  integrations  ?

More  AV  Scanner  ?

IOC  Tools  ?

More  Badware URL  detection  mechanism  ?

Rating  System

Page 35: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

LOG:MOLE

SO, DO YOU HAVE ANY QUESTIONS?

Page 36: logmole Presentation v2.0 - IT-SECX · SERVICE OVERVIEW Assurance Services •Penetration Testing •Application Security Testing •Social Engineering •IS Audits Security Services

Florian Eichelberger

[email protected]