Virtual Forensics 2.0 Investigating virtual environments Christiaan - - PowerPoint PPT Presentation

virtual forensics 2 0
SMART_READER_LITE
LIVE PREVIEW

Virtual Forensics 2.0 Investigating virtual environments Christiaan - - PowerPoint PPT Presentation

Virtual Forensics 2.0 Investigating virtual environments Christiaan Beek Agenda Who am I? Traditional vs Virtual Challenges Citrix & Vmware Windows 7 Summary This session is NOT: A negative talk about


slide-1
SLIDE 1

Virtual Forensics 2.0

Investigating virtual environments

Christiaan Beek

slide-2
SLIDE 2

Agenda

  • Who am I?
  • Traditional vs Virtual
  • Challenges
  • Citrix & Vmware
  • Windows 7
  • Summary
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8

This session is NOT:

  • A negative talk about virtualization
  • Sponsored by any of the vendors of VM

products

  • About using VM as a forensic research

platform

slide-9
SLIDE 9

Ok ?

slide-10
SLIDE 10

Traditional vs:

slide-11
SLIDE 11

Virtual:

slide-12
SLIDE 12

Challenges:

  • What to expect?
  • What tools to use?
  • Where is the data?
  • Who owns the data?
  • Which Forensic techniques to use?
  • How to acquire data from a Cloud?
  • Jurisdiction?
slide-13
SLIDE 13

What must be acquired?

slide-14
SLIDE 14

Moooh, where is my data?

slide-15
SLIDE 15

Statement MS Azure:

‘We have four datacenters in the US, two in Europe and two in Asia. Even though you choose to store your data in Europe instead of Worldwide, your data will be stored at least three times. Two times on your main location and one time at a secondary data center’

slide-16
SLIDE 16

Where is my evidence?

slide-17
SLIDE 17

Disposable VM’s Qubes OS

  • Joanna Rutkowska
  • E.g. opening a P(enetration)DF file
slide-18
SLIDE 18

Portable VM’s

  • Mojopac
  • Portable Virtualbox
  • Qemu
  • Mokafive
slide-19
SLIDE 19

Jurisdiction

A pedophile is using cloud resources to facilitate his crimes. The data is located over several jurisdictional precincts Do you know your limits?

slide-20
SLIDE 20

We need to:

  • Understand the technology
  • Understand implementations of the products
  • Which files are interesting for research
  • Understand which tools to use
  • How tools are acting in Virtual Environments
  • Develop an approach
slide-21
SLIDE 21

Decision vs Impact:

slide-22
SLIDE 22

Next:

  • Citrix
  • VMware
  • Windows 7

Which files are interesting for research

slide-23
SLIDE 23

Citrix:

  • Many ways to implement/use:
slide-24
SLIDE 24

Citrix:

  • scenario:
slide-25
SLIDE 25

Citrix:

  • Last logon logfile

%appdata%\icaclient (or citrix\icaclient)

  • Configuration log (default not enabled)
  • User profile (NTUser.dat;registry;temp files)
  • Citrix Access Gateway logs
  • Radius logs
slide-26
SLIDE 26

Citrix tools:

  • To retrieve data: normal tools like FTK-imager,

Encase.

  • Volatile data extraction:

VIX tools

slide-27
SLIDE 27

VMware:

  • VMWare workstation & ESX server are popular
  • Static or live need different tools and approach
  • Many used as testing platform
  • Suspect deletes VM after activity or return to previous

Snapshot

slide-28
SLIDE 28

Example IRL

slide-29
SLIDE 29

Example IRL

Portable virtual private machine

slide-30
SLIDE 30

Vmware files of interest:

slide-31
SLIDE 31

Vmware tools:

  • FTK imager
  • Liveview
  • Encase
  • MMLS & DD (getting partitions)
  • Raw2vmdk
  • Mount & Carve with Foremost or Photorec
slide-32
SLIDE 32

Vmware tools:

  • Compare Snapshots

Tool by Zairon

slide-33
SLIDE 33

Vmware tools:

Analyzing Vmem with Memparser by Chris Betz C:\Somedir>memparser EvilBert-Snapshot2.vmem

Process List: Proc# PPID PID InProcList Name: Threads: 10

0 0 0 Yes Idle 1 5 8 Yes System 2 9 120 Yes EvilBertNotepad.EXE 3 110 134 Yes CSRSS.EXE

slide-34
SLIDE 34

Openvmfs drivers

#>java -jar fvmfs.jar /mnt/mnt/e1/vmfs_part_esx.dd info

VMFS label = Datavault1 VMFS creation date = Mon Jun 21 14:13:25 GMT-05:00 2010 VMFS capacity = 155.45 GB VMFS UUID = 2b4ac011-3228e765-7bcd-00125436b14a VMFS block size = 1.00 MB VMFS version = 3.33 VMFS # of FD/PB/SB = 30720 / 61440 / 3968 VMFS volume type = VMFS volume UUID = 2b4ac012-213736ba-3c5b-00125436b14a VMFS volume size = 155.45 GB VMFS volume ver = 4 Example other option: filecopy path size position

Restoration of: vmdk, vmsn, metadata, or log files

slide-35
SLIDE 35

Windows 7:

  • Virtualization technique included:
  • VHD
  • XP mode
  • Virtual PC
slide-36
SLIDE 36

Windows 7:

  • VHD mount (read-only)
  • Boot from VHD
  • System backup is made in VHD format
slide-37
SLIDE 37

Windows 7:

  • Mount & investigate VHD with FTK:
slide-38
SLIDE 38

Windows 7:

XP mode: Used for ‘old applications’ 1. a VHD file is created

  • 2. Installation of Virtual PC
  • 3. Windows XP with SP 3
  • 4. Application published in Win7

Note: automatic updates / everything shared

slide-39
SLIDE 39

Windows 7 files of interest:

Default location:

C:\Users\<username>\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines

File Extention Description VHD Contains virtual Operating system and data VMC VM's configuration file: disks, memory, network, undo function VSV Saved state file - information about last running programs VUD Undo disk file - stored separate from VHD file

slide-40
SLIDE 40

Windows 7 VUD:

Undo disk: temporary file Is it enabled ? Investigate VMC file:

<undo_pathname> <absolute type="string">C:\Users\Christiaan\AppData\Local\Microsoft\Windows Virtual PC\Virtuele machines\VirtualPCUndo_Windows XP Mode_0_0_18563103292010.vud</absolute> <relative type="string">.\VirtualPCUndo_Windows XP Mode_0_0_18563103292010.vud</relative>

slide-41
SLIDE 41

Summary:

  • Virtualized environments can make forensic

research a tough job

  • Virtualization of hosts, applications and
  • perating systems will scatter the evidence
  • understand the rapidly improving techniques,

differences between the products and what files are interesting to acquire

slide-42
SLIDE 42

For the future:

  • We need more research on VM
  • Community, please SHARE !
  • Forensic proof tools for VM research
  • Next topic for DFRWS /Blackhat?
slide-43
SLIDE 43

Questions?

slide-44
SLIDE 44

Thanks for staying !

Name: Christiaan Beek Email: Christiaan dot Beek@ tenict dot nl / dot com Twitter: @ChristiaanBeek Blog: http://securitybananas.com