NIST Data Leakage 04 Email USB
NIST Data Leakage 04 Email USB
NIST Data Leakage 04 Email USB
Case
Keywords: emails (libpff), USB,
• Evidence is
generated
from each
layer
• User
activities=
Applications+
OS+
Device driver Disk/Memory
https://windsongtraining.ca/the-technology-layer-cake-users-apps-os-and-hardware/
Objectives
• Email forensics (Application Layer)
• Device forensics (Device driver Layer)
18. What application was used for e-mail
communication?
rip.pl installer plugin; grep for Outlook
Verify installation
(Optional) Alternative Installation from
source code
Download libpff via wget
Possible Device Name Volume Name Serial No. First Connected Connected Time
Time After Reboot
Answer
SanDisk Cruzer 4C530012450531101593 2015-03-23 2015-03-24
Fit USB Device 14:31:10 Mon 09:38:00 Tue
SanDisk Cruzer IAMAN $_@ 4C530012550531106501 2015-03-24 2015-03-24
Fit USB Device 09:58:32 Tue 09:58:33 Tue
How does PC recognize a device?
physical layer
Logical layer
Extract setupspi.dev.log
Search for usb installation evets
VID/PID/Serial No:
• Vendor IDentification: 0781
• Product Identification: 5571
• Serial No 1: 4C530012450531101593
• Serial No 2: 4C530012550531106501
Can be used to restrict what USB devices can be utilized
within an environment.
Exam the timestamps of driver installation
serial #
Conclusion:
• Two USBs have been attached to the PC
• OS recognized USBs right after USBs were attached to the PC
22.2 Exam SanDisk Cruzer Fit USB registry
Search for SanDisk Cruzer Fit USB via product ID
• 'Z' stands for Zulu time, which is also GMT and UTC
• UTC-> EST convert: - 5 hours
• Note: the timestamps are incorrect (one hour off -6 hours)
22.3 Exam USBStor registry
What is that?
22.4 External Memory Device Management
• When you insert a flash device like a USB key into a system
• EMDMgmt (i.e., a part of ReadyBoost) service looks at the device to determine its
performance characteristics
• e.g., it's capabilities and see if it's suitable for use
• Stores the results of its test in HKLM\SOFTWARE\Microsoft\Windows NT\
CurrentVersion\Emdmgmt.
• Contains Volume serial number
• ReadyBoost consists of a service implemented in
• %SystemRoot%\System32\Emdmgmt.dll
• that runs in a Service Host process, and
• %SystemRoot%\System32\Drivers\Ecache.sys
• a volume filter driver,
Volume serial number
• The volume serial number is written to the volume by
Windows each time it is formatted.
• This value is calculated using the current date and
time, and can be easily viewed by opening a command
prompt to the volume (i.e., C:\, D:\, etc.) and typing
the vol command.
22.5 MountPoints2
• A volume mount point is a drive or volume in Windows that is mounted to a folder
that uses the NTFS file system.
• A mounted drive is assigned a drive path instead of a drive letter.
• Volume mount points enable you to exceed the 26-drive-letter limitation.
• By using volume mount points, you can graft, or mount, a target partition onto a folder on
another physical disk.
• MountPoints2 is a registry entry that stores data to USB devices/ removable hard
drives
• USB keys (removable device seen so far)
• autorun actions for various devices.
• Contain GUID of a mount point
• May need to correlate the Volume entries to those found in the MountedDevices entries that
begin with "\??\Volume{GUID}"
four mountpoint GUID
22.6 Mounted Devices
• Devices attached to computer
root
• Persistent volume name
• Drive letter
• GUID (unique internal identifier of a folder1 folder2
mount point)
• Disk/Drive Signature file1 file2
mounting
GUID
point
• Device types include
• USB storage devices
don’t have to have a drive letter
• DVD/CDROM Vol 1
Disk Signature
C: Vol 2
Show MountedDevices use plugin
in sectors, Dec
Partition 1: 2048
Partition 2: 206848
22.7 Device (setup) classes
• Devices are grouped into a device setup class
• If devices have similar manner of set up and configuration
• SCSI media changer devices are grouped into the MediumChanger device setup
class.
• Microsoft defines setup classes for most devices.
• OEMs can define new device setup classes, but only if none of the existing
classes apply.
• For example, a camera vendor does not have to define a new setup class
because cameras fall under the Image setup class.
• The device setup class GUID defines the ..\CurrentControlSet\Control\
DeviceClass\{ClassGuid} registry key
Show device setup classes and particular devices under the classes
Which USB?
check timestamp
Show Volume information Cache using hivexsh
Possible Device Name Volume Name Serial No. First Connected Time Connected Time
(Local time) After Reboot
Answer
SanDisk Cruzer 4C530012450531101593 2015-03-23 14:31:10 2015-03-24
Fit USB Device Mon 09:38:00 Tue
SanDisk Cruzer IAMAN $_@ 4C530012550531106501 2015-03-24 09:58:32 2015-03-24
Fit USB Device Tue 09:58:33 Tue
Considerations - ‘First Connected Time’ can be identified from SetupAPI Log. ( C:\Windows\inf\setupapi.dev.log)
HKLM\SYSTEM\MountedDevices\
HKLM\SYSTEM\ControlSet###\Enum\USBSTOR\
HKLM\SYSTEM\ControlSet###\Control\DeviceClasses\{a5dcbf10-6530-11d2-901f-00c04fb951ed}\
HKLM\SYSTEM\ControlSet###\Control\DeviceClasses\{53f56307-b6bf-11d0-94f2-00a0c91efb8b}\
……
HKU\informant\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\
HKLM\SOFTWARE\Microsoft\Windows Search\VolumeInfoCache\E:
> timestamp: 2015-03-24 09:58:34 Tue
> value: VolumeLabel
> data: ‘IAMAN $_@’
\Windows\System32\winevt\Logs\System.evtx (Event ID: 20001, 20003…)
……