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

SectionOffenceApplication in Cybercrime
S. 420Cheating and dishonestly inducing delivery of propertyOnline fraud, phishing scams
S. 463–465ForgeryForging digital documents, fake websites
S. 468Forgery for purpose of cheatingIdentity theft using forged digital credentials
S. 499–500DefamationOnline defamation, fake social media posts
S. 503Criminal intimidationCyberstalking, threatening emails/messages
S. 354CVoyeurismSecretly recording/distributing intimate images
S. 499DefamationDefamatory 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:

  1. A person refuses to comply with a S. 91 summons
  2. It is not known who possesses the document or thing
  3. 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:

FeatureS. 91 SummonsS. 93 Search Warrant
Issued byCourt / Police OfficerMagistrate
TargetSpecific person asked to producePhysical premises
ComplianceVoluntary (but mandatory)Enforced physically
Use whenPerson is cooperative or knownUncooperative, 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 ConfirmWhy It Matters
The computer was in regular use during the relevant periodProves the output came from a functioning system
Information was fed into the computer in the ordinary course of activitiesProves it’s not fabricated
The computer was operating properly during the periodEnsures reliability of output
The electronic record is a reproduction of the originalEnsures 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.


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 LiabilityS. 66 Criminal (same act, criminal intent)Punishment
Unauthorised access to a computerWith dishonest/fraudulent intentUp to 3 years + fine up to β‚Ή5 lakhs
Introducing virus/malwareWith dishonest/fraudulent intentSame
Damaging a computer/dataWith dishonest/fraudulent intentSame
Downloading/copying data without authorisationWith dishonest/fraudulent intentSame
Denying authorised access (DoS)With dishonest/fraudulent intentSame

Key sub-sections added by 2008 amendment:

Sub-sectionOffencePunishment
66ASending offensive messages (struck down by SC in 2015 β€” Shreya Singhal case)Struck down
66BDishonestly receiving stolen computer resourceUp to 3 years + fine β‚Ή1 lakh
66CIdentity theft β€” fraudulently using another’s electronic signature/password/biometricUp to 3 years + fine β‚Ή1 lakh
66DCheating by personation using computerUp to 3 years + fine β‚Ή1 lakh
66EPublishing private images of a person without consent (voyeurism)Up to 3 years + fine β‚Ή2 lakhs
66FCyber terrorism β€” attacks on critical infrastructure threatening unity/security of IndiaUp 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:

  1. Its role is limited to providing access (passive conduit)
  2. It does not initiate the transmission or modify the content
  3. It observes due diligence (follows IT Rules 2021 guidelines)
  4. Upon receiving actual knowledge of unlawful content, it acts expeditiously to remove it

Who is an β€œIntermediary”?

TypeExample
ISPJio, Airtel, BSNL
Social media platformMeta (WhatsApp, Instagram), X (Twitter)
Search engineGoogle, Bing
Cloud providerAWS, Google Cloud, Azure
E-commerceAmazon, Flipkart
App storesGoogle 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

TermMeaning
Personal DataAny data about an identifiable individual (name, email, phone, location, biometric, health data, etc.)
Data FiduciaryAn entity that determines the purpose and means of processing personal data (like a company collecting customer data)
Data PrincipalThe individual whose personal data is being processed (the customer/user)
Data ProcessorAn entity that processes data on behalf of a Data Fiduciary (e.g., a cloud provider)
Consent ManagerA 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

  1. Lawful Processing β€” Data can only be collected for a legitimate purpose
  2. Consent β€” Must be free, informed, specific, and unconditional (can be withdrawn anytime)
  3. Purpose Limitation β€” Data collected for one purpose cannot be used for another
  4. Data Minimisation β€” Collect only what is necessary for the stated purpose
  5. Accuracy β€” Data must be kept accurate and updated
  6. Storage Limitation β€” Delete data when the purpose is fulfilled
  7. Security β€” Implement appropriate security safeguards

Rights of Data Principals (Individuals)

RightWhat it Means
Right to AccessKnow what personal data is held and how it’s being used
Right to CorrectionRequest correction of inaccurate or incomplete data
Right to ErasureRequest deletion of personal data when no longer needed
Right to Grievance RedressalRaise complaints with the Data Fiduciary
Right to NominateNominate 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

ViolationMaximum 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:

SituationDPDP Consideration
Forensic examiner discovers PII (Aadhaar, health data) during investigationMust handle carefully; only use for investigation purpose; cannot share beyond need
Company requests forensic investigation of employee devicesMust have lawful basis; ideally covered in employee contract/policy
Law enforcement requesting personal data from fiduciaryDPDP Act carves out exceptions for law enforcement β€” lawful order under S. 91/93 CrPC overrides consent requirements
Storing forensic images containing PIIMust 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

LawWhat It GovernsWho It Applies ToKey Provisions
IPCGeneral criminal actsEveryoneS. 420, 463, 503 β€” cybercrimes charged alongside IT Act
CrPC S. 91Summons to produce digital evidenceLaw enforcement β†’ custodiansCompel production of logs, records, data
CrPC S. 93Search warrants for digital evidenceMagistrates β†’ policePhysical search and seizure of devices
IEA S. 65BAdmissibility of electronic recordsCourts, prosecutorsCertificate mandatory for e-evidence
IT Act S. 65Tampering with source codeAnyone handling code3 years + β‚Ή2 lakh fine
IT Act S. 66Hacking, identity theft, cyber terrorAttackers3 years to life imprisonment
IT Act S. 79Intermediary liability & safe harbourISPs, social media, cloudDue diligence + takedown obligations
DPDP Act 2023Personal data protectionAll data fiduciariesConsent, 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