Chapter 08
Chapter 08
and Investigations
Sixth Edition
Chapter 8
Recovering Graphics Files
1
Objectives
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
2
2
protected website for classroom use.
Recognizing a Graphics File
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
3
3
protected website for classroom use.
Understanding Bitmap and Raster Images
• Bitmap images
• Grids of individual pixels
• Raster images - also collections of pixels
• Pixels are stored in rows
• Better for printing
• Image quality
• Screen resolution - determines amount of detail
• Software contributes to image quality (drivers)
• Number of color bits used per pixel
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
4
4
protected website for classroom use.
Understanding Vector Graphics
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
5
5
protected website for classroom use.
Understanding Metafile Graphics
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
6
6
protected website for classroom use.
Understanding Graphics File Formats (1 of
2)
• Standard graphics file formats
• Standard bitmap file formats
- Portable Network Graphic (.png)
- Graphic Interchange Format (.gif)
- Joint Photographic Experts Group (.jpeg, .jpg)
- Tagged Image File Format (.tiff, .tif)
- Window Bitmap (.bmp)
• Standard vector file formats
- Hewlett Packard Graphics Language (.hpgl)
- Autocad (.dxf)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
7
7
protected website for classroom use.
Understanding Graphics File Formats (2 of
2)
• Nonstandard graphics file formats
• Targa (.tga)
• Raster Transfer Language (.rtl)
• Adobe Photoshop (.psd) and Illustrator (.ai)
• Freehand (.fh11)
• Scalable Vector Graphics (.svg)
• Paintbrush (.pcx)
• Search the Web for software to manipulate unknown image formats
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
8
8
protected website for classroom use.
Understanding Digital Photograph File
Formats (1 of 8)
• Witnesses or suspects can create their own digital photos
• Examining the raw file format
• Raw file format
- Referred to as a digital negative
- Typically found on many higher-end digital cameras
• Sensors in the digital camera simply record pixels on the camera’s memory card
• Raw format maintains the best picture quality
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
9
9
protected website for classroom use.
Understanding Digital Photograph File
Formats (2 of 8)
• Examining the raw file format (cont’d)
• The biggest disadvantage is that it’s proprietary
- And not all image viewers can display these formats
• The process of converting raw picture data to another format is referred to as
demosaicing
• Examining the Exchangeable Image File format
• Exchangeable Image File (Exif) format
- Commonly used to store digital pictures
- Developed by JEITA as a standard for storing metadata in JPEG and TIF files
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
10
10
protected website for classroom use.
Understanding Digital Photograph File
Formats (3 of 8)
• Examining the Exchangeable Image File format (cont’d)
• Exif format collects metadata
- Investigators can learn more about the type of digital device and the environment in
which photos were taken
• Viewing an Exif JPEG file’s metadata requires special programs
- Exif Reader, IrfanView, or Magnet Forensics AXIOM
• Exif file stores metadata at the beginning of the file
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
11
11
protected website for classroom use.
Understanding Digital Photograph File
Formats (4 of 8)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
12
12
protected website for classroom use.
Understanding Digital Photograph File
Formats (5 of 8)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
13
13
protected website for classroom use.
Understanding Digital Photograph File
Formats (6 of 8)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
14
14
protected website for classroom use.
Understanding Digital Photograph File
Formats (7 of 8)
• Examining the Exchangeable Image File format (cont’d)
• With tools such as Autopsy and Exif Reader
- You can extract metadata as evidence for your case
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
15
15
protected website for classroom use.
Understanding Digital Photograph File
Formats (8 of 8)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
16
16
protected website for classroom use.
Understanding Data Compression
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
17
17
protected website for classroom use.
Lossless and Lossy Compression
• Lossless compression
• Reduces file size without removing data
• Based on Huffman or Lempel-Ziv-Welch coding
- For redundant bits of data
• Utilities: WinZip, PKZip, StuffIt, and FreeZip
• Lossy compression
• Permanently discards bits of information
• Vector quantization (VQ)
- Determines what data to discard based on vectors in the graphics file
• Utility: Lzip
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
18
18
protected website for classroom use.
Locating and Recovering Graphics Files
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
19
19
protected website for classroom use.
Identifying Graphics File Fragments
• Carving or salvaging
• Recovering any type of file fragments
• Digital forensics tools
• Can carve from file slack and free space
• Help identify image files fragments and put them together
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
20
20
protected website for classroom use.
Repairing Damaged Headers (1 of 4)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
21
21
protected website for classroom use.
Repairing Damaged Headers (2 of 4)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
22
22
protected website for classroom use.
Repairing Damaged Headers (3 of 4)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
23
23
protected website for classroom use.
Repairing Damaged Headers (4 of 4)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
24
24
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (1 of 6)
• Steps
• Planning your examination
• Searching for and recovering digital photograph evidence
- Use Autopsy for Windows to search for and extract (recover) possible evidence of
JPEG files
- False hits are referred to as false positives
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
25
25
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (2 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
26
26
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (3 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
27
27
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (4 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
28
28
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (5 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
29
29
protected website for classroom use.
Searching for and Carving Data from
Unallocated Space (6 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
30
30
protected website for classroom use.
Rebuilding File Headers (1 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
31
31
protected website for classroom use.
Rebuilding File Headers (2 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
32
32
protected website for classroom use.
Rebuilding File Headers (3 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
33
33
protected website for classroom use.
Rebuilding File Headers (4 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
34
34
protected website for classroom use.
Rebuilding File Headers (5 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
35
35
protected website for classroom use.
Rebuilding File Headers (6 of 6)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
36
36
protected website for classroom use.
Reconstructing File Fragments
• Locate the noncontiguous clusters that make up a deleted file
• Steps
• Locate and export all clusters of the fragmented file
• Determine the starting and ending cluster numbers for each fragmented group of
sectors
• Copy each fragmented group of sectors in their correct sequence to a recovery file
• Rebuild the file’s header to make it readable in a graphics viewer
• Add a .txt extension on all the copied sectors
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
37
37
protected website for classroom use.
Identifying Unknown File Formats
• Knowing the purpose of each format and how it stores data is part of the
investigation process
• The Internet is the best source
• Search engines
• Find explanations and viewers
• Popular Web sites
• FileFormat.info
• Extension Informer
• The Graphics File Formats Page
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
38
38
protected website for classroom use.
Analyzing Graphics File Headers (1 of 3)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
39
39
protected website for classroom use.
Analyzing Graphics File Headers (2 of 3)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
40
40
protected website for classroom use.
Analyzing Graphics File Headers (3 of 3)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
41
41
protected website for classroom use.
Tools for Viewing Images
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
42
42
protected website for classroom use.
Understanding Steganography in Graphics
Files (1 of 7)
• Steganography hides information inside image files
• An ancient technique
• Two major forms: insertion and substitution
• Insertion
• Hidden data is not displayed when viewing host file in its associated program
- You need to analyze the data structure carefully
• Example: Web page
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
43
43
protected website for classroom use.
Understanding Steganography in Graphics
Files (2 of 7)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
44
44
protected website for classroom use.
Understanding Steganography in Graphics
Files (3 of 7)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
45
45
protected website for classroom use.
Understanding Steganography in Graphics
Files (4 of 7)
• Substitution
• Replaces bits of the host file with other bits of data
• Usually change the last two LSBs (least significant bit)
• Detected with steganalysis tools (a.k.a - steg tools)
• You should inspect all files for evidence of steganography
• Clues to look for:
• Duplicate files with different hash values
• Steganography programs installed on suspect’s drive
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
46
46
protected website for classroom use.
Understanding Steganography in Graphics
Files (5 of 7)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password- 47
protected website for classroom use.
Understanding Steganography in Graphics
Files (6 of 7)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
48
48
protected website for classroom use.
Understanding Steganography in Graphics
Files (7 of 7)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
49
49
protected website for classroom use.
Using Steganalysis Tools
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
50
50
protected website for classroom use.
Understanding Copyright Issues with
Graphics
• Steganography has been used to protect copyrighted material
• By inserting digital watermarks into a file
• Digital investigators need to aware of copyright laws
• Copyright laws for Internet are not clear
• There is no international copyright law
• Check the U.S. Copyright Office
• U.S. Copyright Office identifies what can and can’t be covered under copyright law in
U.S.
• Fair use
• Another guideline to consider
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
51
51
protected website for classroom use.
Summary (1 of 3)
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
52
52
protected website for classroom use.
Summary (2 of 3)
• Digital camera photos are typically in raw and EXIF JPEG formats
• Recovering image files
• Carving file fragments
• Rebuilding image headers
• The Internet is best for learning more about file formats and their extensions
• Software
• Image editors
• Image viewers
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
53
53
protected website for classroom use.
Summary (3 of 3)
• Steganography
• Hides information inside image files
• Forms
- Insertion
- Substitution
• Steganalysis
• Finds whether image files hide information
• Fair use allows using copyrighted material for noncommercial or educational
purposes without having to compensate the material’s originator or owner
© 2019 Cengage. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-
54
54
protected website for classroom use.