Lecture 5 - Performing RAID Data Acquisitions
Chapter 5: Performing RAID Data Acquisitions
- Dr. Somchart Fugkeaw
- somchart@siit.tu.ac.th
[Image]
Performing RAID Data Acquisitions
- Size is the biggest concern
- Many RAID systems now have terabytes of data
[Image]
Understanding RAID
Related
- RAID = Redundant Array of Independent (formerly "inexpensive") Disks
- Computer configuration involving two or more disks
- Originally developed as a data-redundancy measure
RAID 0 (Striped)
- Provides rapid access and increased storage
- Lack of redundancy
- Total storage = HDD 1TB × 2 disks
RAID 1 (Mirrored)
- Designed for data recovery
- More expensive than RAID 0
- Total Storage:
Analogy: RAID 0 is like splitting one big pizza order between two delivery drivers so it arrives faster — but if one driver crashes, half the order is gone forever. RAID 1 is like making a photocopy of an important document and keeping it in a separate drawer — if one copy gets destroyed, you still have the other, but you used twice the paper for the same amount of information.
RAID 0 — Advantages & Disadvantages
Advantages:
- Performance boost for read and write operations
- Space is not wasted as the entire volume of the individual disks are used up to store unique data
Disadvantages:
- There is no redundancy/duplication of data. If one of the disks fails, the entire data is lost.
RAID 1 — Advantages & Disadvantages
Advantages:
- Data can be recovered in case of disk failure
- Increased performance for read operation
Disadvantages:
- Slow write performance
- Space is wasted by duplicating data which increases the cost per unit memory
[Image] (Figure 4-11: RAID 0 Striping — 128 KB file split into 64 KB + 64 KB across Disk 1 & Disk 2)
[Image] (Figure 4-12: RAID 1 Mirroring — 128 KB file duplicated as 128 KB + 128 KB on Disk 1 & Disk 2)
Understanding RAID (continued)
RAID 2
- Similar to RAID 0
- Data is written to a disk on a bit level
- Has better data integrity checking than RAID 0
- Slower than RAID 0
RAID 3
- Uses data striping (byte level) and dedicated parity
RAID 4
- Data is written in blocks
[Image] (Figure 4-13: RAID 2 Striping bit-level — File 1 (3KB) and File 2 (1KB) split across Disk 1–3 with Parity on Disk 4)
Analogy: RAID 2 is like tearing a letter into individual letters of the alphabet and sending each letter to a different friend to hold, plus giving one friend a "checksum note" to verify nothing got lost. It's very precise but a lot of overhead for something so small.
[Image] (RAID 3 diagram — Disk 0–3, showing A1/A4, B1/B4 etc. with parity blocks Ap, Bp on Disk 3)
Advantages:
- Data can be recovered in case of disk failure
- Increased performance for read operation
Disadvantages:
- Slow write performance
- Space is wasted by duplicating data which increases the cost per unit memory
[Image] (RAID 4 diagram — Block A1–D1, A2–D2, A3–D3 across Disk 0–2, with parity blocks Ap–Dp on Disk 3)
Advantages:
- Efficient data redundancy in terms of cost per unit memory
- Performance boost for read operations due to data striping
Disadvantages:
- Write operation is slow
- If the dedicated parity disk fails, data redundancy is lost
Striping Level (RAID 2 – RAID 6)
| RAID | Striping level | Redundancy |
|---|---|---|
| RAID 2 | Bit-level | Hamming-code ECC disks |
| RAID 3 | Byte-level | Dedicated parity disk |
| RAID 4 | Block-level | Dedicated parity disk |
| RAID 5 | Block-level | Distributed parity |
| RAID 6 | Block-level | Distributed dual parity |
Understanding RAID (continued)
RAID 5 (3+ disks)
- Similar to RAIDs 0 and 3
- Places parity recovery data on each disk (distributed parity)
- Example: 1TB × 3 disks
- Fault tolerance (FT) = 1
- Question posed: If you need to store 3 TB, how many disks should you have? (See answer below)
RAID 6 (4+ disks)
- Redundant parity on each disk (dual/distributed parity)
- Total storage 1TB × 4 disks
- Fault Tolerance (FT) = 2
RAID 10, or mirrored striping (4+ disks)
- Also known as RAID 1+0
- Combination of RAID 1 and RAID 0
- Total Storage:
- Question posed: If two drives fail, can you always recover the data? (Depends on which two drives — see analogy below)
Analogy: RAID 5/6 is like a study group where everyone keeps a summary of everyone else's notes distributed evenly, so if one (or two, for RAID 6) people are absent, the group can reconstruct their notes from everyone else's summaries. RAID 10 is like having two separate identical twin backup groups (mirrors), and then splitting your workload between the two groups (striping) — fast because you're using two groups at once, but you can only survive losing both people from the same twin pair, not one from each pair independently, wait — actually you can survive losing one from each mirrored pair, but NOT both from the same pair.
What RAID give most data availability (service continunity)
- RAID 1, 10 - are the best, because it’s the mirrored!!!, don’t worry about parity checking!!
How many disks for RAID 5?
- At least three drives are required for RAID 5
- No matter how many drives are used, an amount equal to one of them will be used for the recovery (parity) data and cannot be used for user data
- You can lose any one disk and not lose your backup data — just replace the disk with a new one
[Image] (Figure 4-14: RAID 5 Block-level striping with distributed parity — File 1 (12KB) and File 2 (16KB) spread across Disk 1–4 with parity rotating per disk)
Advantages:
- All the advantages of RAID 4 plus increased write speed and better data redundancy
Disadvantages:
- Can only handle up to a single disk failure
[Image] (RAID 6 diagram — Disk 0–4 showing blocks A1–E1 etc. with rotating dual parity Ap/Aq, Bp/Bq, etc.)
Advantages:
- Better data redundancy. Can handle up to 2 failed drives
Disadvantages:
- Large parity overhead
[Image] (RAID 10 diagram — RAID 1+0: two RAID 1 mirrored pairs (Disk 0+1, Disk 2+3) combined into a RAID 0 stripe, blocks A1, A3, A5, A7 mirrored on Disk 0/1; A2, A4, A6, A8 mirrored on Disk 2/3)
- Reference: http://kst.buu.ac.th/2022/
RAID 10 layout example
| A | B | C (Mirror A) | D (Mirror B) |
|---|---|---|---|
| Data 1 | |||
| Data 2 |
RAID Summary
- RAID 0 (2 disks+) = Striping
- RAID 1 (2 disks+) = Mirroring
- RAID 5 (3 disks+) = Striping + Parity
- RAID 6 (4 disks+) = Striping + Double Parity
- RAID 10 (4 disks+) = Mirroring + Striping
Acquiring RAID Disks
Concerns:
- How much data storage is needed?
- What type of RAID is used?
- Do you have the right acquisition tool?
- Can the tool read a forensically copied RAID image?
- Not all tool can!
- Can the tool read split data saves of each RAID disk?
- Older hardware-firmware RAID systems can be a challenge when making an image
Acquiring RAID Disks (continued)
Vendors offering RAID acquisition functions:
-
Technologies Pathways ProDiscover
-
Guidance Software EnCase
-
X-Ways Forensics
-
Runtime Software
-
R-Tools Technologies
-
Occasionally, a RAID system is too large for a static acquisition
- Retrieve only the data relevant to the investigation with the sparse or logical acquisition method
Analogy: A static (full) acquisition is like photocopying an entire library book-by-book. A sparse/logical acquisition is like only photocopying the specific chapters relevant to your case — much faster when the whole library (RAID array) is too huge to copy completely.
[Image]
Using Remote Network Acquisition Tools
- You can remotely connect to a suspect computer via a network connection and copy data from it
- Remote acquisition tools vary in configurations and capabilities
Drawbacks:
- LAN's data transfer speeds and routing table conflicts could cause problems
- Gaining the permissions needed to access more secure subnets
- Heavy traffic could cause delays and errors
- Remote access tool could be blocked by antivirus
Remote Acquisition with ProDiscover Investigator
- Preview a suspect's drive remotely while it's in use
- Perform a live acquisition
- Also called a "smear" because data is being altered
- Encrypt the connection
- Copy the suspect computer's RAM
- Use the optional stealth mode to hide the connection
- Stealth mode = it will not respond to certain types of common network communication and discovery attempts
[Image] (macOS Security & Privacy panel showing "Enable stealth mode" checkbox — don't respond to or acknowledge attempts to access this computer from the network by test applications using ICMP, such as Ping)
Remote Acquisition with ProDiscover Incident Response
- All the functions of ProDiscover Investigator plus:
- Capture volatile system state information
- Analyze current running processes
- Locate unseen files and processes
- Remotely view and listen to IP ports
- Run hash comparisons to find Trojans and rootkits
- Create a hash inventory of all files remotely
PDServer Remote Agent
- ProDiscover utility for remote access
- Needs to be loaded on the suspect computer
PDServer installation modes:
-
Trusted CD
-
Preinstallation
-
Pushing out and running remotely
-
PDServer can run in a stealth mode
- Can change process name to appear as OS function
Remote Connection Security Features
- Password Protection
- Encrypted communications
- Secure Communication Protocol
- Write Protected Trusted Binaries
- Digital Signatures (hashing + signing/encryption)
- Guarantee the authenticity and data integrity, non-repudiation
Digital Signature flow:
Analogy: A digital signature is like sealing a letter with a unique wax stamp that only you own (your private key). Anyone can check the stamp shape using a public reference (your public key) to confirm it was really you who sealed it and that no one tampered with the letter inside.
Remote Acquisition with EnCase Enterprise
- Remotely acquires media and RAM data
- Integration with intrusion detection system (IDS) tools
- Options to create an image of data from one or more systems
- Preview of systems
- A wide range of file system formats
- RAID support for both hardware and software
Other Remote Acquisition Tools
- R-Tools R-Studio
- WetStone LiveWire
- F-Response
Remote Acquisition with Runtime Software
Compact Shareware Utilities:
- DiskExplorer for FAT
- DiskExplorer for NTFS
- HDHOST (Remote access program)
Features for acquisition:
- Create a raw format image file
- Segment the raw format or compressed image
- Access network computers' drives
[Image]
Using Other Forensics-Acquisition Tools
- SnapBack DatArrest
- SafeBack
- DIBS USA RAID
- ILook Investigator IXimager
- Vogon International SDi32
- ASRData SMART
- Australian Department of Defence PyFlag
SnapBack DatArrest
- Columbia Data Products
- Old MS-DOS tool
- Can make an image in three ways:
- Disk to SCSI drive
- Disk to network drive
- Disk to disk
- Fits on a forensic boot floppy
- SnapCopy adjusts disk geometry
NTI SafeBack
- Reliable MS-DOS tool
- Small enough to fit on a forensic boot floppy
- Performs an SHA-256 calculation per sector copied
- Creates a log file
NTI SafeBack (continued)
Functions:
- Disk-to-image copy (image can be on tape)
- Disk-to-disk copy (adjusts target geometry)
- Parallel port laplink can be used
- Copies a partition to an image file
- Compresses image files
ILook Investigator IXimager
- Iximager
- Runs from a bootable floppy or CD
- Designed to work only with ILook Investigator
- Can acquire single drives and RAID drives
- Ref: https://ilookinvestigator.software.informer.com/#google_vignette
ASRData SMART
- Linux forensics analysis tool that can make image files of a suspect drive
Capabilities:
- Robust data reading of bad sectors on drives
- Mounting suspect drives in write-protected mode
- Mounting target drives in read/write mode
- Optional compression schemes
- Ref: http://www.asrdata.com/forensic-software/smartfor-linux/smart-data/
Australian Department of Defence PyFlag
- PyFlag tool
- Intended as a network forensics analysis tool
- Can create proprietary format Expert Witness image files
- Uses sgzip and gzip in Linux
- Ref: http://pyflag.sourceforge.net/Presentations/PyFlag_Auscert2007/