Short Answer Digital forensics is the work of finding, saving and studying digital evidence to learn what happened on a computer, phone, server, cloud account or network. Digital evidence is any information kept or sent in digital form, such as files, emails, chats and activity records. Investigators handle it so carefully that the results can stand up in court or an audit. Think of a crime scene team, but for computers.
What is Digital Forensics?
Digital forensics is a branch of forensic science. The word “forensic” means fit for use in a court. So the field applies careful, tested methods to digital evidence, the same way a lab tests fingerprints. NIST, the US standards body, describes it as the use of science to identify, collect, examine and analyze data. It also stresses keeping the data unchanged and tracking who handled it.
In plain words, an investigator answers four questions: what happened, when, who did it and how. For example, they may find out which account deleted a payroll file.
How the evidence is handled matters too. If someone changes it, even by accident, a court may not trust it.
Key Words to Know
- Log: an automatic record a system keeps of events, such as each sign-in, file change or setting change, with the time.
- Exact copy (forensic image): a full copy of everything on a disk or phone. It even includes empty space, where deleted files may still sit.
- Hash: a short code worked out from the data. It works like a digital fingerprint. If even one letter in the data changes, the hash changes too.
- Chain of custody: a written record of who handled the evidence, when, where and why, from the moment someone found it.
- Write blocker: a device or setting that lets an investigator read a disk without being able to change anything on it.
How Does Digital Forensics Work?
Most investigations follow the same basic steps. NIST guidance groups the core work into collection, examination, analysis and reporting. Many teams add steps to find and protect the evidence first:
- Identify: decide which devices, accounts and logs may hold evidence. For example, a laptop, a company phone, a mailbox and the logs from the firewall, the network’s gatekeeper.
- Preserve: stop the evidence from changing. Take the device off the network, but do not wipe it. Then lock the original away and start the chain of custody record.
- Collect: make an exact copy of each disk or phone. Next, work out the hash of both the original and the copy. If the two hashes match, the copy is identical.
- Examine: search the copy for useful data, such as emails, browser history, pen drive records and deleted files that can still be recovered.
- Analyze: put the events in time order to build a timeline. Then link each event to people, accounts and devices.
- Report: write down the findings in plain words, along with the method. That way, managers, lawyers, auditors or a court can follow them.
Investigators study the copy, not the original. As a result, another expert can repeat the work and check the answer.

An Example From a Kolkata Logistics Firm
A logistics firm in Kolkata learns that a rival has its client price lists. The sales manager who handled those lists resigned last week. This looks like an insider threat, a risk that comes from someone inside the company.
The laptop came back switched off, so IT leaves it off, untouched, in a locked cabinet. It also notes who handed the laptop over and when. Next, an outside specialist copies the disk through a write blocker and checks that both hashes match. The specialist then studies the copy. Email records show the price lists going to a personal email address. USB logs also show a pen drive plugged in that evening. Finally, the specialist writes a report with a timeline that HR and the company’s lawyers can use.
Types of Digital Forensics
Digital forensics has several branches, one for each kind of device or data. All follow the same careful process.
| Type | What It Studies | Office Example |
|---|---|---|
| Computer forensics | Disks of laptops, desktops and servers | Finding a deleted contract on a sales laptop |
| Mobile device forensics | Phones and tablets | Reading chats on a company phone in a fraud case |
| Network forensics | Network traffic and firewall records | Seeing which server sent data to an unknown address |
| Cloud forensics | Activity records the cloud provider keeps for your account | Finding who changed a storage setting in a cloud account |
| Email forensics | Messages, sender details and mailbox records | Tracing where a fake invoice email came from |
| Memory forensics | Programs and data in RAM, the computer’s short-term memory | Spotting a harmful program that never saved a file |
RAM empties when the power goes off. So switching off an infected machine may erase clues that lived only in memory.
Cloud forensics also works differently. You usually cannot copy the provider’s disks, so you rely on the logs it keeps for your account.

What is Digital Forensics Used For?
Companies, police and courts use digital forensics when they need trusted facts about digital events:
- Cyber attacks: finding how an attacker got in and what they touched after a data breach or a ransomware attack.
- Insider data theft: checking whether staff copied files before they left. Do not wipe or reissue a leaver’s laptop before this check.
- Fraud and HR cases: for example, proving who approved a fake vendor payment, or checking a complaint about abusive chat messages.
- Police and court cases: studying seized phones and computers in cyber crime and other criminal cases.
- Insurance claims: showing an insurer what happened after an attack.
- Compliance and audits: proving to an auditor or regulator who opened sensitive data.
After an attack, forensic work is one part of incident response, the wider plan for spotting, stopping and recovering from a security attack. Response gets the business running again, while forensic work keeps the facts safe. So recovery steps should not wipe out the evidence.
Talk to an ExpertWould your logs show what happened after an attack? Talk to our team about threat detection and response.Digital Forensics in Cyber Security
In cyber security, digital forensics findings from one attack help teams stop the next one:
- Clues to watch for: investigators list the signs an attacker left behind, such as bad internet addresses, file fingerprints and odd account names. These signs are called indicators of compromise, and security tools can then watch for them.
- Better alerts: teams turn the findings into new rules for their SIEM (security information and event management), a system that collects logs from many places and raises alerts.
- Better records on devices: endpoint detection and response tools record what happens on each laptop and server, known as endpoints. So next time, investigators have much more to work with.
If logs are missing or show the wrong time, investigators cannot build a clear timeline.
Logs and the CERT-In Rules
In India, CERT-In (the Indian Computer Emergency Response Team) is the national agency for cyber incidents. Its directions of 28 April 2022 apply to all companies, as well as service providers, data centers and government bodies. Three of its rules help forensic work:
- Report fast: they must report certain cyber incidents to CERT-In within 6 hours of noticing them or being told about them.
- Keep logs: they must keep logs of all their IT systems securely for a rolling 180 days, within India. They must also share these logs with CERT-In when they report an incident or when CERT-In asks.
- Sync clocks: they must set their system clocks by official time servers of the National Informatics Centre (NIC) or the National Physical Laboratory (NPL). Servers synced to these also count. That way, times in different logs line up.
What Tools Do Investigators Use?
Investigators use several kinds of tools, and each kind does one part of the job:
- Disk imaging tools: make an exact copy of a disk and work out its hash.
- Write blockers: sit between the disk and the investigator’s computer, so nothing gets written to the evidence by mistake.
- File recovery tools: find deleted files that still sit in the disk’s empty space.
- Log analysis tools: search and sort millions of log lines to build a timeline.
- Mobile extraction tools: copy data from phones and tablets in a tested way.
- Memory capture tools: save a copy of what sits in RAM before anyone switches the device off.
A trained examiner must also follow written steps and record each action.
Cloud Logs in AWS and Azure
Cloud services keep their own records, and investigators often look there first:
- AWS CloudTrail: records actions taken by people, automated accounts (roles) and AWS services in an AWS account. Its Event history shows the past 90 days of setup changes and sign-ins (management events). For longer, set up a trail that saves them to storage.
- Azure activity log: records changes to Azure resources, such as creating a cloud server (virtual machine). Azure keeps these events for 90 days, so send them to longer-term storage if you need more.
- Microsoft Purview Audit and eDiscovery: Audit records user and admin actions across Microsoft services. eDiscovery helps find, hold and export emails, chats and files for an investigation.
Both 90-day limits are shorter than the 180 days in the CERT-In directions. So check your log settings long before you need them.
Digital Forensics in India
Indian courts accept digital evidence, but the law sets rules for it. The Bharatiya Sakshya Adhiniyam, 2023 is India’s current law of evidence. It replaced the Indian Evidence Act, 1872. Section 63 of the new law deals with electronic records, and it took the place of the old Section 65B.
Under Section 63, a copy of an electronic record, such as a printout or a saved file, usually needs a certificate. A form at the end of the law (its Schedule) sets the layout. The side presenting the record fills in one part, and an expert fills in another. The certificate also asks for the record’s hash value. So the digital fingerprint from the collection step matters in court too.
Evidence often holds personal data of staff or customers. The Digital Personal Data Protection Act, 2023 still applies to that data, so keep copies secure and share them only when needed.
This page gives general information, not legal advice. For a real case, speak to a lawyer and a qualified examiner early.
What Should a Company Do First?
The first hour often decides whether evidence survives. If you suspect an attack or data theft, take these steps:
- Leave the device as it is: do not wipe, reset or reinstall it. Every click changes data.
- Isolate it: cut it off from the network, for example by pulling the cable or turning off Wi-Fi. Keep a running machine on if you can, because its memory may hold clues. If it is already off, leave it off.
- Write down times and names: note when you saw the problem, who touched the device and what they did.
- Save logs at once: export them from servers, firewalls, email and cloud accounts before old entries roll over.
- Report on time: tell CERT-In within 6 hours if it is a listed type, such as a data leak or ransomware.
- Call experts: bring in your security team, an outside forensic specialist or a SOC (security operations center), a team that watches for and handles security alerts.
Frequently Asked Questions About Digital Forensics
What does digital forensics mean in simple words?
Why is forensic work called a science?
What does a forensic analyst do?
How is digital forensics different from ethical hacking?
Is digital forensics part of cyber security?
Can a company run forensic tools on its own?
Do only the police use forensic investigations?
References
- Digital forensics definition: NIST Computer Security Resource Center, Glossary: Digital Forensics
- CERT-In 6-hour reporting, 180-day logs and clock sync: CERT-In, Directions under section 70B(6) of the IT Act, 2000 (28 April 2022)
- CloudTrail 90-day event history: AWS Documentation, Working with CloudTrail event history
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
