Digital Forensics in Cyber Security: The Investigation Process Step by Step

By Published 8 min read

Short answer: Digital forensics in cyber security is the scientific identification, collection, examination and analysis of data from systems involved in an incident, done in a way that preserves integrity and chain of custody. A sound investigation moves through scoping, forensically sound acquisition with hashing, examination on copies, timeline analysis and a reproducible report.

When something goes wrong in a company's systems, such as a payment sent to a fake vendor, a former employee walking away with the customer list, or ransomware on the file server, two different jobs begin at the same time. One is incident response: contain the damage and get the business running. The other is digital forensics: find out exactly what happened, prove it, and produce evidence that can stand up with a regulator, an insurer, a court or the police.

Business owners often commission the second job without knowing what they are buying. This article walks through the forensic process step by step, so you can brief an investigator properly, judge their work, and avoid destroying the evidence before they arrive.

What is digital forensics in cyber security?

The US National Institute of Standards and Technology (NIST), in its guide on integrating forensic techniques into incident response (SP 800-86), describes digital forensics as the application of science to the identification, collection, examination and analysis of data while preserving the integrity of the information and maintaining a strict chain of custody. The two parts of that sentence are equally important. Finding the answer is only half of it. The other half is being able to show that the data you relied on was not changed along the way.

In India this matters directly, because under Section 63 of the Bharatiya Sakshya Adhiniyam, 2023, an electronic record tendered as evidence must be accompanied by a certificate in the format set out in the Act's Schedule. The Supreme Court, upholding that requirement in 2026, described the hash value disclosed in the certificate as an "electronic fingerprint" of the record. Forensic work done carelessly can leave you with findings you cannot use.

The investigation process, step by step

NIST describes four basic phases: collection, examination, analysis and reporting. In practice there is a step before all of them, which is identification and scoping. Here is what happens in each, and what you as the client should expect to see.

Step 1: Identification and scoping

The investigator works out what questions need answering and where the data that answers them lives. Good scoping questions:

  • What is the suspected event, and when do we think it started?
  • Which people, accounts, devices and cloud services are involved?
  • What is the likely outcome: internal disciplinary action, an insurance claim, a police complaint, a civil suit, a regulator report?
  • Are there legal deadlines, such as a CERT-In report or a customer contract notice?
  • Who inside the company may be implicated, and so must be kept out of the investigation?

What you should get: a written scope and plan, the list of evidence sources, and an agreed set of questions. If an investigator starts imaging laptops without this, expect a large bill and an unfocused report.

Step 2: Acquisition (collection)

This is where evidence is captured in a forensically sound way. NIST notes that volatile data, such as memory contents and live network connections, is lost when a system is shut down, and that acquiring volatile data should often be given priority. Then non-volatile sources are duplicated and the originals secured. Typical sources:

SourceHow it is collectedWhat it can show
Laptops and serversFull disk image through a write-blocker; memory capture if the machine is liveFiles, deleted data, program execution, USB usage, browser history
Email (Microsoft 365, Google Workspace)Mailbox export and audit logs from the admin consoleForwarding rules, logins from unusual locations, deleted mail
Firewall, VPN, proxy logsExport with original timestampsData leaving the network, remote access sessions
Cloud apps and SaaSAdmin audit logs, API exportsWho downloaded or shared what, and when
Mobile phonesLogical or deeper extraction with consent or legal authorityChats, call logs, locations, app data

Each item is hashed at acquisition (SHA-256 is common), sealed or stored securely, and entered into a chain-of-custody log recording who collected it, when, where, and every later handover.

What you should get: an evidence register listing each item, its hash and its custody history.

Step 3: Examination

The examiner works on verified copies, never the originals. NIST describes examination as processing the collected data with a mix of automated and manual methods to extract the data of interest while preserving integrity. In practice: recovering deleted files, parsing email stores and chat databases, extracting browser history, decoding logs, and filtering millions of records down to the ones that matter for the questions in the scope.

Step 4: Analysis

Analysis turns extracted data into answers, using legally justifiable methods. This is where an experienced examiner earns their fee. The central output is usually a timeline: the first malicious email, the click, the login from a new IP address, the mailbox rule that hid replies, the change of bank details, the payment. Each event is tied to a specific source and can be checked by someone else.

Good analysis also tests alternative explanations. If an employee's account downloaded the file, was it the employee, someone using a shared password, or malware? A report that never considers alternatives is weaker in front of a court and less useful to you.

Step 5: Reporting

NIST's description of the reporting phase includes describing the actions taken, explaining how tools and procedures were chosen, identifying what else needs to be done, and recommending improvements. A useful forensic report for a business has:

  1. An executive summary in plain language: what happened, how, impact, and confidence level
  2. Scope, questions and the evidence examined
  3. Methods and tools, with versions, so the work can be reproduced
  4. Findings with a timeline, each tied to evidence references
  5. Limitations: what could not be determined and why
  6. Recommendations to close the gap that was exploited
  7. Annexures: evidence register, hashes, custody records

How incident response and forensics fit together

The tension is real. Responders want to wipe and restore quickly; examiners want everything left untouched. The practical answer is to capture first, then fix: isolate the affected machine from the network rather than switching it off, take images and log exports, then rebuild. For organisations covered by CERT-In's April 2022 directions, there is a further reason to be organised: specified incidents must be reported to CERT-In within six hours of noticing them, and logs of ICT systems must be kept for a rolling 180 days within India. Without those logs, forensic analysis often stops at "we cannot tell".

What you should do before the investigator arrives

  • Do not switch off, reinstall or "clean" affected machines. Disconnect them from the network instead.
  • Do not let anyone browse through the suspect's laptop or mailbox to "have a look".
  • Stop automatic deletion: pause log rotation, mailbox retention clean-up and backup overwrites.
  • Write down what you know, with times, and who has touched what.
  • Keep the circle small, especially if an insider may be involved.
  • Talk to your lawyer about privilege and about whether the matter is likely to go to the police.

How to choose a digital forensics provider

Ask these questions before you sign:

  • How will you acquire and hash evidence, and will we receive the chain-of-custody records?
  • Who will sign the expert part of the Section 63 certificate if this goes to court?
  • Can another examiner reproduce your findings from your report?
  • How do you handle personal data you come across that is outside the scope?
  • What will the report contain, and when will we get an interim update?

Be wary of anyone who promises a particular conclusion before seeing the evidence. An investigator's job is to establish what happened, not to confirm what the client hopes.

How Cehpoint can help

Cehpoint's cyber crime investigation and digital forensics service covers the full process above for breaches, fraud and insider incidents, with evidence handled for admissibility. Published pricing for this service starts from Rs 29,999. If you need help containing an active attack at the same time, our managed SOC and incident response team can work alongside the investigation, and once the facts are clear, VAPT helps confirm the weaknesses have been closed.

Frequently asked questions

What is the difference between incident response and digital forensics?

Incident response focuses on containing an attack and restoring operations quickly. Digital forensics focuses on establishing exactly what happened and preserving evidence so the findings can be relied on by a court, regulator, insurer or police. They run in parallel. The key rule is to capture evidence, such as disk images, memory and logs, before systems are wiped or rebuilt.

How long does a digital forensic investigation take?

It depends on scope. A single laptop or mailbox with a focused question can take days. A company-wide breach involving many systems, cloud services and logs can take weeks. The biggest factors are the number of evidence sources, whether logs exist for the relevant period, and how clearly the questions are defined at the start. Ask for an interim update once acquisition is complete.

Can deleted files and emails be recovered?

Often, but not always. Deleted files may remain on a disk until overwritten, and cloud mail systems usually keep deleted items for a retention period. Encryption, solid-state drives that clear deleted blocks, and long delays all reduce the chances. Stop using the affected device and pause any automatic clean-up as soon as you suspect an incident, to give recovery the best chance.

Do I need a forensic investigation for a small incident?

Not always. If a single phishing email was caught and nothing was clicked, good logging and a quick review may be enough. Commission a proper investigation when money was lost, personal data may have been exposed, an insider may be involved, you need to report to a regulator or insurer, or the matter may go to the police or court.

Need help with this?

Tell us what you are dealing with. We reply with a plain plan, and where it makes sense, a working demo before you commit.