Cyber Law & Legal Framework for Digital Forensics
π Concept Note β DFIR Unit I (Legal Aspects) | Source: MCA Sem III Syllabus
Why Law Matters in Cybersecurity
Digital forensics without legal grounding is useless β evidence collected without following proper legal procedure can be thrown out of court, prosecutions can fail, and investigators can themselves face liability. Every forensic examiner and cybersecurity professional must understand the legal framework before touching any evidence.
LAW
βββ IPC (Indian Penal Code) β What acts are criminal
βββ CrPC (Code of Criminal Procedure) β How investigation & search happen
β βββ Sections 91, 93
βββ IEA (Indian Evidence Act) β How evidence is proved in court
β βββ Section 65B
βββ Special Acts
βββ IT Act 2000 (+ 2008 Amendment) β Cyber-specific offences
βββ DPDP Act 2023 β Personal data protection
Part 1 β IPC (Indian Penal Code, 1860)
The IPC is Indiaβs main criminal code. While it predates computers, several sections are applied to cybercrimes in conjunction with the IT Act.
Relevant IPC Sections in Cybercrime
| Section | Offence | Application in Cybercrime |
|---|---|---|
| S. 420 | Cheating and dishonestly inducing delivery of property | Online fraud, phishing scams |
| S. 463β465 | Forgery | Forging digital documents, fake websites |
| S. 468 | Forgery for purpose of cheating | Identity theft using forged digital credentials |
| S. 499β500 | Defamation | Online defamation, fake social media posts |
| S. 503 | Criminal intimidation | Cyberstalking, threatening emails/messages |
| S. 354C | Voyeurism | Secretly recording/distributing intimate images |
| S. 499 | Defamation | Defamatory content posted online |
Key Point
The IPC and IT Act are often invoked together in cybercrime FIRs. For example, a phishing-based bank fraud would attract both IT Act S. 66C (identity theft) and IPC S. 420 (cheating).
Part 2 β CrPC (Code of Criminal Procedure, 1973)
The CrPC lays down the procedure for investigating and prosecuting crimes. Two sections are critical for digital evidence collection.
Section 91 β Summons to Produce Document or Thing
What it says: A court or officer-in-charge of a police station may issue a written order (summons) requiring any person to produce any document or other thing that is considered necessary for an investigation or trial.
In digital forensics context:
- Police can issue S. 91 summons to a company to produce server logs, CCTV footage, email records, or any stored digital data
- Social media platforms (Meta, Google, X/Twitter) receive S. 91 notices to produce account data, IP addresses, and login records
- ISPs receive S. 91 notices to produce subscriber information and traffic logs
Example:
A company's employee is suspected of leaking trade secrets via email.
Police issue S. 91 summons to the IT department:
β Produce all emails sent by accused from [date range]
β Produce server access logs
β Produce VPN connection records
Key Distinction: S. 91 is a summons (a legal demand) β the person must comply or face contempt of court.
Section 93 β When Search Warrant May Be Issued
What it says: A search warrant is issued when:
- A person refuses to comply with a S. 91 summons
- It is not known who possesses the document or thing
- Summoning would cause delay that might defeat the purpose of justice
In digital forensics context:
- Police obtain a S. 93 search warrant to physically enter premises and seize computers, hard drives, mobile phones, and other digital devices
- Authorises forensic investigators to conduct on-site or off-site examination of seized devices
- The warrant must specify: what to search for and where to search β a general warrant is invalid
Search vs. Summons:
| Feature | S. 91 Summons | S. 93 Search Warrant |
|---|---|---|
| Issued by | Court / Police Officer | Magistrate |
| Target | Specific person asked to produce | Physical premises |
| Compliance | Voluntary (but mandatory) | Enforced physically |
| Use when | Person is cooperative or known | Uncooperative, or location unknown |
Important for Forensics: When executing a S. 93 warrant on digital devices:
- A panchanama (seizure memo) must be prepared listing every device seized
- Devices must be sealed and signed by witnesses
- Hashes must be calculated at the scene and recorded in the panchanama
- This becomes the beginning of the chain of custody
Part 3 β IEA (Indian Evidence Act, 1872) β Section 65B
The Problem β Why Old Evidence Rules Failed
The IEA was written in 1872 β long before computers. Courts faced a dilemma: how do you admit a printout of a WhatsApp conversation or a screenshot of a bank transaction as evidence, when the original βdocumentβ exists only as bits on a server?
Section 65B β Admissibility of Electronic Records
Section 65B (inserted by IT Act 2000 amendment) makes electronic records admissible as evidence subject to strict conditions.
What it covers:
- Any information stored/processed in electronic form (emails, logs, messages, website data, CCTV footage, audio recordings)
- The output can be a printout, CD, or any stored form
The 65B Certificate β Most Critical Requirement
To use any electronic record as evidence, the person responsible for the computer system must provide a certificate under S. 65B(4) stating:
| Certificate Must Confirm | Why It Matters |
|---|---|
| The computer was in regular use during the relevant period | Proves the output came from a functioning system |
| Information was fed into the computer in the ordinary course of activities | Proves itβs not fabricated |
| The computer was operating properly during the period | Ensures reliability of output |
| The electronic record is a reproduction of the original | Ensures authenticity |
The certificate must be signed by a responsible official (the system owner, IT administrator, or a person in charge of the computer).
Landmark Cases
Anvar P.V. vs P.K. Basheer (2014) β Supreme Court:
A 65B certificate is mandatory for admitting electronic evidence. Without it, even the original pen drive or hard drive cannot be admitted as evidence. The certificate is not just procedural β it is substantive.
Arjun Panditrao Khotkar vs Kailash Kushanrao Gorantyal (2020) β Supreme Court:
Reaffirmed that a 65B certificate is compulsory. The person who issues the certificate need not be technically expert but must be in a position of responsibility over the computer system.
Practical Implication for Investigators
β WRONG (Evidence will be rejected):
Forensic examiner prints WhatsApp screenshot β presents to court β No 65B certificate
β
CORRECT (Evidence will be admitted):
Forensic examiner gets 65B certificate from:
β WhatsApp/Meta (for server-side data)
β Phone owner's IT admin (for device data)
β Attaches certificate to evidence β Court admits it
β οΈ This is why chain of custody and proper documentation matters. A brilliant forensic analysis is worthless if the evidence is inadmissible.
Part 4 β IT Act 2000 (Information Technology Act)
Indiaβs primary legislation for cybercrime and electronic commerce. The IT (Amendment) Act 2008 significantly expanded criminal provisions.
Section 65 β Tampering with Computer Source Code
What it says: Knowingly or intentionally concealing, destroying, altering, or causing another to conceal/destroy/alter any computer source code when it is required to be kept or maintained by law.
Punishment: Up to 3 years imprisonment OR fine up to βΉ2 lakhs OR both.
In practice:
- A software developer deletes the original source code of a billing system to hide fraudulent modifications
- An IT admin alters audit logs that are legally mandated to be maintained
- A company destroys its firewall logs that are required to be kept under SEBI regulations
π‘ This section protects the integrity of code and mandated records β not just from hackers, but from insiders who tamper with systems.
Section 66 β Computer-Related Offences
The core provision for hacking and unauthorised computer access. This section creates criminal liability for acts done dishonestly or fraudulently under S. 43.
Section 43 (Civil) β Section 66 (Criminal) relationship:
| S. 43 Civil Liability | S. 66 Criminal (same act, criminal intent) | Punishment |
|---|---|---|
| Unauthorised access to a computer | With dishonest/fraudulent intent | Up to 3 years + fine up to βΉ5 lakhs |
| Introducing virus/malware | With dishonest/fraudulent intent | Same |
| Damaging a computer/data | With dishonest/fraudulent intent | Same |
| Downloading/copying data without authorisation | With dishonest/fraudulent intent | Same |
| Denying authorised access (DoS) | With dishonest/fraudulent intent | Same |
Key sub-sections added by 2008 amendment:
| Sub-section | Offence | Punishment |
|---|---|---|
| 66A | Sending offensive messages (struck down by SC in 2015 β Shreya Singhal case) | Struck down |
| 66B | Dishonestly receiving stolen computer resource | Up to 3 years + fine βΉ1 lakh |
| 66C | Identity theft β fraudulently using anotherβs electronic signature/password/biometric | Up to 3 years + fine βΉ1 lakh |
| 66D | Cheating by personation using computer | Up to 3 years + fine βΉ1 lakh |
| 66E | Publishing private images of a person without consent (voyeurism) | Up to 3 years + fine βΉ2 lakhs |
| 66F | Cyber terrorism β attacks on critical infrastructure threatening unity/security of India | Up to life imprisonment |
Example β 66C (Identity Theft):
Attacker steals OTP by SIM swapping β logs into victim's bank account β transfers βΉ5 lakh
Charges: S. 66C (identity theft) + S. 66D (cheating by personation) + IPC S. 420 (cheating)
Section 79 β Exemption of Intermediary from Liability
What it says: An intermediary (ISP, social media platform, cloud provider, online marketplace) is not liable for third-party content or actions if:
- Its role is limited to providing access (passive conduit)
- It does not initiate the transmission or modify the content
- It observes due diligence (follows IT Rules 2021 guidelines)
- Upon receiving actual knowledge of unlawful content, it acts expeditiously to remove it
Who is an βIntermediaryβ?
| Type | Example |
|---|---|
| ISP | Jio, Airtel, BSNL |
| Social media platform | Meta (WhatsApp, Instagram), X (Twitter) |
| Search engine | Google, Bing |
| Cloud provider | AWS, Google Cloud, Azure |
| E-commerce | Amazon, Flipkart |
| App stores | Google Play Store, Apple App Store |
The βSafe Harbourβ Protection:
- S. 79 is Indiaβs equivalent of the US βSafe Harborβ under DMCA
- Platforms are protected from liability for user-generated content as long as they act on takedown notices
When Safe Harbour is LOST:
- Platform knowingly hosts illegal content
- Platform does not act within the prescribed time upon receiving valid notice
- Platform modifies or initiates the illegal content itself
IT Rules 2021 Obligations (for significant social media intermediaries with >50 lakh users):
- Appoint a Chief Compliance Officer (resident in India)
- Appoint a Nodal Contact Person for law enforcement
- Appoint a Grievance Officer (resident in India)
- Monthly compliance reports
- Traceability β ability to identify first originator of a message (for messaging platforms)
- Take down content within 24 hours for sexual content; 36 hours for other notices
Relevance for forensics/investigations:
Police investigating a cybercrime involving WhatsApp messages:
β Issue S. 91 notice to Meta/WhatsApp (intermediary)
β Under S. 79 + IT Rules, Meta must cooperate
β Provide account information, IP logs, message metadata
β (Encrypted content may not be available β platform cannot decrypt E2E)
Part 5 β DPDP Act 2023 (Digital Personal Data Protection Act)
Indiaβs first comprehensive data privacy law, passed in August 2023. Modelled on concepts from GDPR but adapted for India.
Core Philosophy
βPersonal data of individuals shall be processed only for lawful purposes and in a responsible manner that respects the right to privacy.β
Key Definitions
| Term | Meaning |
|---|---|
| Personal Data | Any data about an identifiable individual (name, email, phone, location, biometric, health data, etc.) |
| Data Fiduciary | An entity that determines the purpose and means of processing personal data (like a company collecting customer data) |
| Data Principal | The individual whose personal data is being processed (the customer/user) |
| Data Processor | An entity that processes data on behalf of a Data Fiduciary (e.g., a cloud provider) |
| Consent Manager | A new entity introduced by DPDP β helps individuals manage their consents across multiple fiduciaries |
| Significant Data Fiduciary (SDF) | Entities processing large volumes of sensitive data β subject to additional obligations |
Core Principles
- Lawful Processing β Data can only be collected for a legitimate purpose
- Consent β Must be free, informed, specific, and unconditional (can be withdrawn anytime)
- Purpose Limitation β Data collected for one purpose cannot be used for another
- Data Minimisation β Collect only what is necessary for the stated purpose
- Accuracy β Data must be kept accurate and updated
- Storage Limitation β Delete data when the purpose is fulfilled
- Security β Implement appropriate security safeguards
Rights of Data Principals (Individuals)
| Right | What it Means |
|---|---|
| Right to Access | Know what personal data is held and how itβs being used |
| Right to Correction | Request correction of inaccurate or incomplete data |
| Right to Erasure | Request deletion of personal data when no longer needed |
| Right to Grievance Redressal | Raise complaints with the Data Fiduciary |
| Right to Nominate | Nominate another person to exercise rights on death/incapacity |
Obligations of Data Fiduciaries
Data Collection β Obtain free & informed consent β Specify purpose
β
Data Processing β Use only for stated purpose β Keep accurate
β
Data Breach β Notify Data Protection Board + affected individuals
β
Purpose Fulfilled β Delete data β Notify erasure
For Security Incidents:
- A data fiduciary must notify the Data Protection Board of India (DPBI) and affected data principals in case of a personal data breach
- Failure to notify = significant penalty
Penalties Under DPDP Act 2023
| Violation | Maximum Penalty |
|---|---|
| Failure to take security safeguards β data breach | βΉ250 crore |
| Failure to notify breach to Board/individuals | βΉ200 crore |
| Non-fulfilment of obligations for childrenβs data | βΉ200 crore |
| Non-compliance with additional SDF obligations | βΉ150 crore |
| Breach of any other provision | βΉ50 crore |
Penalties are per incident, not per affected person.
DPDP Act + Digital Forensics
The DPDP Act creates a tension for investigators:
| Situation | DPDP Consideration |
|---|---|
| Forensic examiner discovers PII (Aadhaar, health data) during investigation | Must handle carefully; only use for investigation purpose; cannot share beyond need |
| Company requests forensic investigation of employee devices | Must have lawful basis; ideally covered in employee contract/policy |
| Law enforcement requesting personal data from fiduciary | DPDP Act carves out exceptions for law enforcement β lawful order under S. 91/93 CrPC overrides consent requirements |
| Storing forensic images containing PII | Must implement appropriate security; delete when investigation is complete |
Exceptions Under DPDP Act
The following are exempt from most DPDP provisions:
- Processing for national security and law enforcement (subject to government notification)
- Processing for judicial/regulatory proceedings
- Processing for prevention, detection, investigation of offences
- Processing of publicly available personal data
Comparison Summary β All Laws at a Glance
| Law | What It Governs | Who It Applies To | Key Provisions |
|---|---|---|---|
| IPC | General criminal acts | Everyone | S. 420, 463, 503 β cybercrimes charged alongside IT Act |
| CrPC S. 91 | Summons to produce digital evidence | Law enforcement β custodians | Compel production of logs, records, data |
| CrPC S. 93 | Search warrants for digital evidence | Magistrates β police | Physical search and seizure of devices |
| IEA S. 65B | Admissibility of electronic records | Courts, prosecutors | Certificate mandatory for e-evidence |
| IT Act S. 65 | Tampering with source code | Anyone handling code | 3 years + βΉ2 lakh fine |
| IT Act S. 66 | Hacking, identity theft, cyber terror | Attackers | 3 years to life imprisonment |
| IT Act S. 79 | Intermediary liability & safe harbour | ISPs, social media, cloud | Due diligence + takedown obligations |
| DPDP Act 2023 | Personal data protection | All data fiduciaries | Consent, breach notification, up to βΉ250 crore penalty |
Common Exam Scenarios
Scenario 1: Police receive a tip that a hacker accessed a bankβs servers from a cafΓ©βs WiFi. What sections apply?
β CrPC S. 93: Search warrant for cafΓ©'s router logs and computers
β CrPC S. 91: Summons to ISP for subscriber information
β IT Act S. 66: Hacking charges against accused
β IEA S. 65B: Certificate needed for all digital evidence in court
Scenario 2: A forensic investigator extracts WhatsApp messages from a seized phone. How are they admissible?
β Must obtain 65B certificate from phone's owner/IT admin
β Certificate confirms: phone was in regular use, messages were sent/received in ordinary course
β Hash the extracted data to prove integrity
β Document in chain of custody
Scenario 3: A company suffers a ransomware attack that exposes 10,000 customersβ personal data. What are the legal obligations?
β IT Act S. 43A: Company liable for inadequate security (civil)
β IT Act S. 66: File FIR against attackers
β DPDP Act: Must notify Data Protection Board + affected customers
β Penalty for failing to notify: up to βΉ200 crore
Related Concepts
- Digital Forensics Fundamentals β Investigation process where these laws apply
- Evidence Acquisition & Imaging β CrPC S. 93 and chain of custody
- Ethical Hacking Fundamentals β IT Act legal framework for pentesters
- VAPT Reporting β Legal obligations in professional engagements
- Incident Response & Malware Analysis β DPDP breach notification requirements
- DFIR MOC β Subject navigation