Nonvolatile Storage Forensics Flashcards

1
Q

The retention characteristics of magnetic media have been outlined:

A
  • Storage devices should be considered as networked computer systems in their own right
  • Their external interface will provide a purely logical view of their internal organisation of physical on-disk storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Knowledge and the ability to access the low-level interface of the storage device are important where media have been erased or overwritten by the operating system level:

A

• Such techniques can be employed even where relatively sophisticated counter-forensics mechanisms were used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In case of physical damage or where attempts at recovery must be made even for overwritten sectors, physical inspection of the storage medium may be needed:

A
  • Data recovery up to spin stand analysis was described earlier for magnetic media
  • Similar approaches can also be undertaken for optical media, here physically destroyed or erased media can also be partly reconstructed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Solid-State Memory Type - SRAM:

A

Static RAM uses bistabile latches to store each but and hence does not need a refresh cycle
• Data will still be lost when power is not applied, but battery-backup may be sufficient
• Speed is similar to dynamic RAM, but significantly more complex
• Used in caches for specialised purposes such as multi-ported Video RAM, displays and printers
• Of particular interest: Configuration memory, buffers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Solid-State Memory Type - EPROM:

A

Mainly of historic interest, programmable ROM based on floating-gate field-effect transistors programmed with higher voltage.
• Programmed data can persist for 10-20 years
• Erasing is accomplished by exposure to UV light

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Solid-State Memory Type - EEPROM:

A

Electrically erasable programmable ROMs do not require UV exposure
• Originally a generic term, now used mainly referring to EEPROM that can be erased byte-wise as they have a separate erase transistor
• Used mainly for small configuration memories
• Data is retained for 10+ years

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Solid-State Memory Type - FeRAM:

A

Ferroelectric RAM uses ferroelectric material to hold a magnetic charge
• Power is only consumed on reading and writing with similar levels
• Main advantages over e.g. Flash memory is fast write speed and lower power consumption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Solid-State Memory Type - MRAM:

A

Magnetoresistive RAM is also nonvolatile, a resistor has different resistances depending on magnetic layer directions
• While interesting in theory, it is still not deployed at larger scales

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Ubiquitous variants of EEPROM storage also based on floating-gate transistors:

A
  • Implementation can use standard fabrication equipment and materials
  • Floating gates can have more than two voltage levels, allowing multi-level cells
  • NAND and NOR variants
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A NOR gate flash has one end of each cell connected to GND, the other to a bit line, acting as a NOR gate:

A

Elevating a word line voltage level results in output bit being pulled low by storage transistor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Default state for NOR cells is logical 1:

A
  • Setting it to 0 requires elevated voltage to activate channel from source to drain
  • Current is sufficiently high for electrons to jump the insulating layer onto the floating gate: Hot electron injection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Erasing a cell (setting it to 1) requires larger voltage of opposite polarity between control gate and source:

A
  • Electrons are removed from the floating gate through quantum tunneling
  • Unlike programming, this must occur in blocks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A NAND gate cell connects transistors in series:

A
  • Only if all word lines are pulled HIGH, the bit lines is pulled low
  • Groups are connected externally in array form
  • Reading pulls all word lines for a bit high except one; if the bit is set, it is pulled low
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

NAND memory is more dense than NOR memory owing to smaller cell size

A
  • This makes NAND memory preferable for storage

* Density of NAND at present is about 2x that of NOR memory as transistors can be in series, meaning less metal contacts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

NAND memory has slower read times as cells are stacked:

A
  • Where Flash memory is used for program memory storage, NOR memory is preferred as it has faster access times
  • NAND memory always must be read and written in blocks
  • NOR memory can be read in a random access pattern
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

NAND overwriting and erasing is generally faster than for NOR Flash memory:

A
  • Both NAND and NOR cells have a limited number of programming and erasure cycles
  • Typically around 100k cycles are supported
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Code execution also differs as it requires random access patterns:

A
  • NOR memory uses execute in place patterns

* NAND relies on Store and Download (SND) access, typically a combination of Dynamic or SDRAM and NAND flash memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Feature sizes of Flash memory have only been shrinking modestly in recent years; instead manufacturers have focused on 3D structures:

A
  • One of the most common problems of NAND memory are retention errors
  • Arrhenius’ law shows how high temperature worsens effects: 2 hours at 100C are the equivalent of a year at 25C
19
Q

Flash cells also use multiple voltage levels to store more than one bit per cell:

A
  • This is also affected by temperature, but not every voltage level is affected in the same way
  • Even the error behaviours of layers and word lines at higher temperatures differ
20
Q

Naïve implementations of file systems intended for disks suffer from a number of drawbacks:

A
  • Most dramatic is uneven use of storage locations

* Flash storage is also not built up in 512 byte blocks, but significantly larger blocks

21
Q

Impact on File System Architecture:

A
  • Flash storage built up in large blocks, e.g. 128kBytes
  • Blocks are further divided into pages, e.g. 64 of 2 kBytes each
  • To emulate magnetic disks, pages are further divided into 512-byte sector units
  • Each page will have a data area and a spare area for memory management, e.g. 2kBytes and 16 bytes
  • The spare area is not accessible directly and is used for error detection and administration
22
Q

The properties of Flash memory require the use of a Flash Translation Layer (FTL):

A
  • This translation can occur in the device itself to make it behave like a conventional magnetic disk, as is typically the case for pen drives
  • Particularly for larger SSD and for embedded applications such as mobile phones, adaptation can also occur directly in the file system
23
Q

The main tasks of Flash Translation Layer (FTL):

A
  • Translation of storage area into smaller, virtual sectors/chunks
  • Providing the appearance of writing in place despite wear levelling
  • Performing wear levelling
24
Q

To avoid the cost of erasing small files…

A

The file system uses a log structure - uses copy-on-write, with free space in large blocks written sequentially

25
Q

The file system is designed to interact with several FTL architectures…

A

Choosing allocation and clean-up algorithms accordingly

26
Q

Similar to other log file systems, this implies that old copies are…

A

Retained deliberately for as long as possible to minimise the cost of cleaning up

27
Q

The cleaning process is triggered on demand or when…

A

The system is idle, compacting storage based on segment age and number of valid blocks

28
Q

Wear Levelling and Garbage Collection - Updating data in Flash memory cannot occur directly but consists of…

A

A erase-write cycle over a larger block

29
Q

Wear Levelling and Garbage Collection - After copying and updating…

A

The new block is marked valid, the previous instance as invalid in the spare area

30
Q

Once the number of dead pages in a block reaches a threshold…

A

Remaining live pages are re-writeen elsewhere and the block is erased so it can be re-written later

31
Q

To avoid premature failure, blocks are managed so they are…

A

Written approximately at the same frequency (wear levelling), this can occur under control of the operating system, or in Flash memory firmware

32
Q

TRIM Operation - Deletion Schematic Steps:

A

1) SSD pages contain no data
2) User writes data to SSD pages
3) User deletes some data. Pages are marked as not in use by the host OS, but data remains on SSD
4) TRIM command tells SSD controller that pages contain invalid data. Pages with invald data are cleaned
5) Data is written back to SSD memory cells. The invalid data has been cleaned and data is able to be written to the pages at full speed

33
Q

As performance is affected significantly by fragmented block allocation, re-allocation and re-claiming is often performed aggressively:

A
  • In case of SSDs or software-controlled FTL, this must be deactivated
  • For embedded memory such as pen drives, low-level recovery is possible when bypassing the management layer
34
Q

Garbage collection will continue in the background even if no write operations occur as soon as power is applied to a firmware FTL device:

A
  • Overwritten instances are then irretrievably lost

* The GC collection mechanism effectively causes sself-corrosion of court evidence

35
Q

Securing erasing data on SSDs is not straightforward:

A

• SEDs are the most reliableapproach: Erasing key material ensures data is not readable
• Otherwise the Secure Erase command specified in the ATA standard may not capture all spare capacity, although some manufacturers will ensure all blocks are overwritten
(whilst faster than magnetic disks, wiping by overwriting would still be time-consuming)

36
Q

Purely software-based wiping is bound to be highly ineffective:

A
  • Not only are write speeds relatively slow, but the FTL activity and remaining spare flash memory would likely leave some memory blocks on the disk still with data
  • When relying on overwriting - unlike for hard disks - multiple passes may be required if it is not the whole drive being overwritten
37
Q

Solid state disks will usually rely on the TRIM command supported by all current-generation operating systems:

A
  • The TRIM command informs the SSD that blocks are no longer in use
  • The TRIM mechanism duplicates some effects of garbage collection, but causes less wear for the flash cells: The SSD is free to re-use blocks immediately
38
Q

Similar to magnetic disks, Flash memory must apply defect management to ensure continued reliability as devices age - in addition to dynamic error management highlighted earlier:

A

• Blocks may simply be worn out or have manufacturing defects
• The latter typically occurs when data in a block has non-recoverable ECC errors
(any page producing a error will result in the entire block having to be marked invalid)

39
Q

Blocks will then be skipped (Skip Bad Block or SBB strategy) or replaced logically from a reserved Reserve Block Area (RBA):

A
  • The exact mechanism is vendor-specific and significantly affects device-internal block allocation
  • In either case hidden protected areas or bad-block management areas can be mis-used
40
Q

Where bypassing the FTL is required or the SSD is damaged, it may still be possible to recover data:

A
  • Common techniques use JTAG boundary scan features normally used for testing electronic circuits
  • Otherwise forensic analysis may need to resort to chip off techniques: De-soldering chips and directly attachment to test equipment
41
Q

Even if the chips themselves are damaged, it may still be possible to extract data by re-connecting damaged chip components:

A
  • Conversely, to truly destroy a flash memory array, individual pages must be destroyed reliably
  • For a current (2020) 12nm process, this requires a minimum fragment size of 0.7mm (4kB pages)
42
Q

Particularly for larger SSDs, the speed benefits obtained are derived from parallel writes:

A
  • This implies that a FTL will spread out the contents of a larger file across a potentially large number of flash memory chips
  • When bypassing the FTL, e.g. with physical access to individual chips, this will hence give only access to some fragments
43
Q

Implementation of higher-level features will also vary: Many SSDs now implement the Deterministic Read After Trim (DRAT) and Deterministic Zeroes After Trim (DZAT), resulting in…

A

Returning only zeroes after a TRIM deletion even if the data has not actually been overwritten since