Digital forensics: copies, tools and where evidence hides

8 min 5 sections 4 practice questions 5 sources citedISC2 objective 7.1

A document examiner never writes on a disputed will. She photographs it, works from the photographs, and can show that each one matches the original. Digital forensics applies the same discipline to disks, memory, networks and phones. No background is assumed. A security professional needs to know how an exact copy is made and proved, which kinds of analysis exist, and where on each device the traces are found.

By the end of this unit you will be able to:

  • Put the four phases of the forensic process in order
  • Explain how a write blocker and hashes prove a forensic copy is exact
  • Choose between live and dead acquisition for a given system
  • Tell apart media, memory, network, software and hardware analysis
  • Name the artefacts found on computers, networks, mobile devices and in the cloud

The copy nobody could prove

An illustrative example

A housing association's IT officer copies a suspect's disk by plugging it into his own computer and dragging the folders across. The copy shows a deleted spreadsheet of tenants' bank details being moved to a private email account.

At the tribunal the other side's expert makes three points. The officer's computer wrote to the disk when it was connected. Deleted files were never copied. Nothing shows that the copy matches the original.

What three things should the copy have had to stand up?

Four phases of forensic work

Digital forensics is the application of science to identifying, collecting, examining and analysing data while keeping its and an unbroken . NIST's guide divides the work into four phases.

  1. Collection: identifying the possible sources of data, then acquiring the data from them in a way that preserves its integrity.
  2. Examination: processing large amounts of collected data, using tools to find and extract what is relevant, such as recovering deleted files or a phone backup.
  3. Analysis: drawing conclusions from the examined data, for example building a timeline that shows who did what and when.
  4. Reporting: presenting the results, the methods used and the alternative explanations considered.

Three disciplines run through every phase. Tools are tested before use, so the examiner knows they report data accurately and change nothing. are written, so that a second examiner following them would reach the same result. Every action is noted at the time. A finding that cannot be repeated, or a tool whose behaviour cannot be explained, will be attacked by the other side.

A forensic copy, and how it is proved exact

Examiners never work on the original. They work on a copy, and they must be able to prove the copy is exact.

A bit-stream image, also called a disk image or bit-for-bit copy, copies every unit of the storage, including empty space and space holding deleted files. A logical copy copies only the visible files and folders, so deleted material is missed. Forensic work uses an image wherever possible.

A write blocker sits between the original disk and the examiner's computer. It lets data be read and stops anything being written. Hardware are separate devices; software ones run on the examiner's computer.

A small black box with status lights, including one marked Write Block, on a wooden desk. A red data cable and a power cable run from it to a hard disk labelled Old Mail Server.

A hardware write blocker is a separate small box between the original disk and the examiner's computer, letting data be read but stopping anything being written.

  1. 1Write blocker. Lets data be read from the disk and stops anything being written to it.
  2. 2Original disk. The evidence. Examiners never work on it directly.
  3. 3Data cable to the disk

Photograph: Portable forensic tableau by ErrantX, public domain. Cropped and resized.

A hash proves the copy matches. A turns any amount of data into a short fixed-length value, and changing a single bit of the data gives a completely different value. The examiner hashes the original before imaging and hashes the image afterwards. Matching values show the copy is exact. SHA-256 is the usual choice today. MD5 and SHA-1, named in older guidance, are no longer trusted against deliberate forgery.

Matching hashes prove a forensic copy is exact

Matching hashes prove a forensic copy is exactThe original disk is read through a write blocker into a bit-stream image, which becomes a sealed master copy and then a working copy. Above, a hash of the original and a hash of the image are joined by the words must match.Originaldiskseized; neverexaminedBit-streamimageevery unit,empty space tooMastercopysealed andstoredWorkingcopythe only copyexaminedWriteblockerread onlyHash oforiginalSHA-256, takenbefore imagingHash ofimageSHA-256, takenafter imagingmust matchMatching hashes prove a forensic copy is exactThe original disk is read through a write blocker into a bit-stream image, which becomes a sealed master copy and then a working copy. Above, a hash of the original and a hash of the image are joined by the words must match.Originaldiskseized; neverexaminedBit-streamimageevery unit,empty space tooMastercopysealed andstoredWorkingcopythe only copyexaminedWriteblockerread onlyHash oforiginalSHA-256, takenbefore imagingHash ofimageSHA-256, takenafter imagingmust match
Read this figure as text

Examiners never work on the original. They make a bit-stream image through a write blocker, prove it exact by hashing, and examine only a working copy.

  1. Before imaging, the examiner hashes the original disk. SHA-256 is the usual choice today.
  2. The original disk is read through a write blocker, which lets data be read and stops anything being written.
  3. What is read is copied into a bit-stream image: every unit of the storage, including empty space and space holding deleted files.
  4. After imaging, the examiner hashes the image.
  5. The two hash values must match. Changing a single bit gives a completely different value, so matching values show the copy is exact.
  6. The verified image is sealed and stored as evidence: the master copy.
  7. A working copy is made from the master and checked by hash. It is the only copy examined.

Two copies are normally kept. The master copy is sealed and stored as evidence. The working copy, made from the master and checked by hash, is the one examined.

Live or dead: when to copy a running system

Live acquisition collects data from a system while it is running. Dead acquisition collects data from a system that has been switched off, usually by removing the disk and imaging it through a write blocker.

Live and dead acquisition compared
PointLive acquisitionDead acquisition
What it capturesMemory, running programs, open connections, unlocked disksEverything stored on the disk
Effect on the systemEvery tool run changes the system a little, so each step is notedNone, once power is off
Main riskMalware on the system may hide or lie, so trusted tools are run from the examiner's own mediaMemory is lost, and an encrypted disk may be locked for good
Choose it when matters, the disk is encrypted, or the system cannot be stoppedThe system is already off, or memory holds nothing of value

Often the answer is both, in order: live collection of volatile data, then shutdown and a disk image. How to switch off is itself a choice. A normal shutdown tidies up temporary files and may trigger malware to erase its traces. Removing power keeps those files but can corrupt open ones. The examiner chooses by what matters most in the case.

Five kinds of forensic analysis

Five kinds of analysis and what each examines
KindWhat it examinesTypical question answered
Media analysisDisks, memory sticks and other storageWhich files existed, and which were deleted or hidden?
Memory analysisA capture of a computer's working memoryWhat was running, and what was it connected to?
Network analysis captures, and network device logsWhat crossed the network, between which machines?
Software analysisPrograms, especially malware, taken apart to see how they workWhat does this program do, and who wrote it?
Hardware and embedded device analysisRouters, cameras, printers, vehicles and other devices with built-in computersHas the device's built-in software been changed?

Media analysis looks beyond the visible files. Unallocated space is space the system marks as free; deleted files often remain there until overwritten. Slack space is the unused end of a storage unit given to a file. A 7 kilobyte (KB) file in a 32 KB unit leaves 25 KB that may hold fragments of older data. Both are reached only through a bit-stream image.

Steganography hides data inside other data, such as a message inside the colour values of a photograph, so that nobody suspects the message exists. Examiners look for it with tools that compare files with known originals or spot statistical oddities.

Artefacts: where the traces are

An artefact is a trace that activity leaves behind. Different places keep different artefacts.

Artefacts by source
SourceExamples of artefacts
DataFiles and their : author, dates created, changed and last opened
ComputerMemory, , browser history, recently used files, devices plugged in, temporary files
NetworkPacket captures, flow records, and proxy logs, sign-in records on servers
Mobile deviceMessages, call logs, contacts, location history, photographs with their locations, app data

Metadata is data about data, such as when a file was created and by which account. Flow records list which machines talked, when and how much, without the content.

Mobile devices must be cut off from every radio network as soon as they are seized, or new messages may overwrite evidence and a remote wipe may erase it. There are three methods: aeroplane mode, switching off, or a Faraday bag, a shielded pouch that blocks radio signals. Each has a drawback. Aeroplane mode means handling the phone; switching off may lock it behind a passcode; a badly sealed bag can still let a signal through.

Cloud services add limits. The examiner cannot touch the provider's hardware, data may sit in several countries, and one tenant's data shares machines with others. Evidence usually comes through the provider, under the contract or a legal order, so access to logs is agreed before an incident.

Worked example: Copying the housing association's disk properly

The suspect's desktop computer is switched off and has been sealed under chain of custody. Its disk is not encrypted.

  1. Choose the method. The computer is already off and the disk is unencrypted, so dead acquisition is right; there is no memory to lose.
  2. Protect the original. The examiner removes the disk and connects it to her workstation through a tested hardware write blocker.
  3. Hash, image, hash. She records the original's SHA-256 value, makes a bit-stream image, and hashes the image. The two values match and both go in her notes.
  4. Keep two copies. The image is sealed as the master; a working copy is made from it and checked by hash.
  5. Examine the working copy. The deleted spreadsheet is recovered from unallocated space with its metadata, and the browser history shows the private email account.

The other side can repeat the hash on the master and get the same value. The copy is exact, made without changing the original, and includes the deleted file.

A question, worked through

A law firm's investigator finds a partner's laptop running, with its disk protected by full-disk encryption. The partner is suspected of passing client files to a competitor and has left the building. Legal counsel has authorised collection.

Which action should the investigator take FIRST?

  1. Capture memory and unlocked disk data with trusted tools, then image
  2. Switch the laptop off normally so the disk can be imaged safely
  3. Remove the battery and image the disk through a write blocker
  4. Open the client files on the laptop to see what was accessed
Decide on your answer, then open the reasoning
  1. The decisive facts are that the laptop is running and its disk is encrypted. Once it is off, the disk may be unreadable without the partner's password.
  2. Rule out d. Browsing the suspect system changes it and proves nothing about what was there before.
  3. Rule out b. A normal shutdown locks the encrypted disk and loses memory.
  4. Option c is a sound dead acquisition for an unencrypted disk, but here the image would be unreadable ciphertext.
  5. Live acquisition, from the examiner's own tools, captures memory and the readable data first. The answer is a.

Answer: A. Capture memory and unlocked disk data with trusted tools, then image

Choosing between good answers

A question asks how to prove a copy is exact
choose hashing the original and the copy and comparing the values, with a write blocker on the original.
A running system has an encrypted disk or valuable memory
choose live acquisition with trusted tools before any shutdown.
Deleted or hidden data matters
choose a bit-stream image, which includes unallocated and slack space, not a logical copy of files.
A phone has just been seized
choose isolating it from all radio networks at once, for example in a Faraday bag.
Evidence sits with a cloud provider
choose obtaining it through the provider under the contract or a legal order, not by direct seizure.

Try it

Decide between live and dead acquisition, then follow a disk from write blocker to matching hashes and a sealed master copy.

Loading the preview.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A school's investigator seizes a member of staff's school-issued phone in a case about messages sent to a pupil. The phone is switched on and unlocked, messages keep arriving, and its user can wipe it remotely.

What should the investigator do with the phone straight away?

What to remember

  • The forensic process runs collection, examination, analysis and reporting, with tested tools, written procedures and notes.
  • A bit-stream image made through a write blocker, with matching hashes of original and image, proves an exact copy; the master is sealed and a working copy is examined.
  • Live acquisition captures memory and unlocked data at some cost in change; dead acquisition images a switched-off disk without change.
  • Media, memory, network, software and hardware analysis examine different sources; slack and unallocated space and steganography hide data.
  • Artefacts come from data, computers, networks and mobile devices; phones are isolated at once, and cloud evidence comes through the provider.

Say it from memory

  1. Which tools, tactics and procedures make digital forensic work trustworthy?

    Four phases: collection, examination, analysis, reporting. Tested tools and written, repeatable procedures. A bit-stream image through a write blocker, proved by matching hashes, with a sealed master and a working copy. Live acquisition when memory or encryption matters, dead otherwise.

    Read this part again

  2. Give examples of data, computer, network and mobile device artefacts.

    Data: files and their metadata. Computer: memory, event logs, browser history, devices plugged in. Network: packet captures, flow records, firewall and proxy logs. Mobile: messages, call logs, location history, app data, kept intact by isolating the device from radio networks.

    Read this part again

  3. Give the four phases of digital forensics in order, and the three disciplines that run through them.

    Collection, examination, analysis and reporting. Tools are tested before use, so they report accurately and change nothing. Procedures are written, so a second examiner would reach the same result. Every action is noted at the time.

    Read this part again

  4. When a running system must be switched off after live collection, what does each way of switching off risk?

    A normal shutdown tidies up temporary files and may trigger malware to erase its traces. Removing power keeps those files but can corrupt open ones. The examiner chooses by what matters most in the case.

    Read this part again

  5. What are unallocated space and slack space, and how are they reached?

    Unallocated space is space the system marks as free, where deleted files often remain until overwritten. Slack space is the unused end of a storage unit given to a file, which may hold fragments of older data. Both are reached only through a bit-stream image.

    Read this part again

Sources