Ethical Hacking Laws in India: IT Act Sections and Legal Boundaries

Ethical hacking is legal in India only when you have clear permission from whoever owns the system, and only within the limits of that permission. Without it, the same activity is unauthorised access under the Information Technology Act, 2000: section 43 makes it a civil wrong with liability to pay compensation, and section 66 makes it a criminal offence when done dishonestly or fraudulently.

Oct 11, 2026 - 07:29
Updated: 
104.9k

Ethical Hacking in Cybersecurity & Ethical Hacking · Explainer

Ethical Hacking Laws and Legal Boundaries Explained

Quick answer: Ethical hacking is legal in India only when you have clear permission from whoever owns the system, and only within the limits of that permission. Without it, the same activity is unauthorised access under the Information Technology Act, 2000: section 43 makes it a civil wrong with liability to pay compensation, and section 66 makes it a criminal offence when done dishonestly or fraudulently. Good intentions are not a defence. Written authorisation, a defined scope and rules of engagement are what separate a penetration tester from an intruder.

Key takeaways

  • Permission is the line. Testing without it is unauthorised access, whatever your motive.
  • Permission must come from someone with authority over the system, in writing, with a defined scope.
  • Cloud and third-party systems need the provider's rules respected as well as the client's consent.
  • Bug bounty programmes authorise testing only within their published terms.
  • If you stumble on a vulnerability, stop, do not exploit it further, and report it responsibly.

Table of Contents

Yes, when it is authorised. There is no special licence for ethical hackers in Indian law, and no law that makes hacking legal because the person doing it means well. What makes a security test lawful is the system owner's consent, given in advance by someone entitled to give it, and staying inside what was agreed.

That is why the same command can be professional work in one setting and an offence in another. Running a scan against your client's servers during an agreed test window is a job. Running the same scan against a company because you wanted to see whether it was vulnerable is not.

Which Sections of the IT Act Matter?

The Information Technology Act, 2000 is the main law. The sections most relevant to security testing, described in plain terms:

SectionWhat it covers, in summaryWhy testers should know it
43Accessing, downloading from, damaging, disrupting or introducing malicious code into a computer system without the owner's permission; liability to pay compensationUnauthorised testing falls here even when nothing is stolen
66Doing any act in section 43 dishonestly or fraudulently becomes a criminal offence, commonly summarised as punishable with imprisonment up to three years, a fine up to five lakh rupees, or bothThe criminal consequence of unauthorised access
66CIdentity theft: fraudulent use of passwords, electronic signatures or other unique identificationUsing captured credentials outside scope
66DCheating by personation using a computer resourceUnsanctioned phishing or impersonation tests
66FCyber terrorism, including unauthorised access to critical systems with intent to threaten securityVery serious penalties; never touch such systems without explicit authority
70Protected systems notified by the government; unauthorised access is a serious offenceCritical infrastructure needs explicit, specific authority

The key point in section 43 is permission. Its wording turns on doing these things without the permission of the owner or the person in charge of the system, which is why the authorisation document matters so much. Read the current text of the Act itself before relying on any summary, including this one.

Which Other Laws Can Apply?

  • The Bharatiya Nyaya Sanhita, 2023, in force since 1 July 2024 in place of the Indian Penal Code, covers offences such as cheating and criminal breach of trust that can accompany cyber offences.
  • The Digital Personal Data Protection Act, 2023 and its Rules, notified on 13 November 2025, govern how personal data is processed. Testers who encounter personal data during a test must handle it within the client's obligations.
  • The CERT-In Directions of 28 April 2022 require covered organisations to report specified incidents to CERT-In within 6 hours. A badly run test that looks like an attack can trigger an organisation's reporting process, another reason to coordinate in advance.
  • Contract law: your engagement letter, non-disclosure agreement and the client's terms bind you as well.

What Does Proper Authorisation Look Like?

Professional testing guidance such as NIST SP 800-115 describes rules of engagement agreed before any testing begins. A usable authorisation covers at least:

ElementWhat it should state
Who authorisesA named person with authority over the systems, and their signature
ScopeExact IP ranges, hostnames, applications and accounts in scope
Out of scopeWhat must not be touched, such as production databases or third-party services
TimingDates and hours when testing is allowed
MethodsWhether exploitation, social engineering or denial-of-service checks are allowed
Data handlingHow any data seen or collected is stored, used and destroyed
ContactsWho to call if something breaks or a serious issue is found
Source addressThe IP addresses testing will come from, so it can be recognised

An email saying "go ahead and test our site" from someone who does not own the site is not authorisation. Neither is permission from a friend who works at the company.

What About Cloud and Third-Party Systems?

When a client's application runs on AWS, Azure, Google Cloud or a hosting provider, two parties' rules apply. The client can authorise testing of their own resources, but the provider's acceptable use and penetration testing policies still govern what is allowed on its infrastructure, and some activities need notice or are forbidden. Third-party services the client uses, such as a payment gateway or an email provider, are usually out of scope entirely unless the third party agrees.

Do Bug Bounty Programmes Protect You?

A bug bounty programme is a public invitation to test, on stated terms. Testing within those terms is authorised; anything outside them is not. Read the scope, the excluded vulnerability types and the rules on data access before you start. Some programmes include safe harbour language promising not to pursue researchers who follow the rules, but that is a commitment by the company, not an exemption from the law, and it covers only good-faith testing within scope. Our guide to how bug bounty works covers platforms and scope in detail.

Where Do Well-Meaning Testers Get Into Trouble?

  • Scanning a company, a college network or a government site to see what is there.
  • Drifting out of scope: following a link to a subdomain or a third party that was never authorised.
  • Downloading more data than needed to prove a finding.
  • Continuing after the test window ends, or after being asked to stop.
  • Publicly disclosing a vulnerability before the owner has had a chance to fix it.
  • Asking for payment in return for not disclosing, which can look like extortion.

What Should You Do If You Find a Vulnerability by Accident?

  1. Stop. Do not explore further, run tools or access data to confirm it.
  2. Write down what you saw, when, and how you came across it.
  3. Report it to the organisation through its security contact or vulnerability disclosure page if it has one. If you cannot find a contact, you can report it to CERT-In.
  4. Do not demand payment or set conditions.
  5. Do not publish details until the organisation has fixed it or agreed to disclosure.

How Do You Practise Legally?

Use systems built for the purpose: your own virtual lab with deliberately vulnerable machines, online training platforms that provide legal targets, and capture-the-flag competitions. These give real practice without any legal risk. Our guide to setting up a penetration testing lab shows how.

Which Professional Practices Reduce Legal Risk?

  • Never start without a signed authorisation that matches what you are about to do.
  • Keep logs of every test action with timestamps and source addresses.
  • Collect only the minimum data needed to prove a finding, and destroy it as agreed.
  • Report serious findings immediately to the agreed contact instead of waiting for the final report.
  • Carry professional indemnity insurance if you work independently.
  • Take legal advice on contracts, and on anything unusual.

This article is general information, not legal advice. For the wider picture of Indian cyber law, read our beginner's guide to cybersecurity laws explained.

Talk to a WebAsha training advisor about ethical hacking courses, batches and current fees.

References

Frequently Asked Questions

Yes, when the system owner has authorised it in advance and you stay within the agreed scope. Without permission the same activity is unauthorised access under the Information Technology Act, 2000.

Mainly the Information Technology Act, 2000, especially sections 43 and 66, with sections 66C, 66D, 66F and 70 for specific cases. Other laws such as the Bharatiya Nyaya Sanhita, 2023 can also apply.

Section 43 covers unauthorised access and damage and creates liability to pay compensation. Section 66 makes the same acts a criminal offence when they are done dishonestly or fraudulently.

Scanning a system you do not own and have no permission to test can amount to unauthorised access, and it can also breach the site’s terms. Test only your own systems or those you are authorised to test.

Who authorises it, the exact scope and exclusions, dates and hours, allowed methods, data handling, emergency contacts and the source IP addresses of the testing.

It authorises testing only within its published terms. Safe harbour language is a company commitment covering good-faith testing within scope, not an exemption from the law.

Stop, note what you saw, report it to the organisation or to CERT-In, do not exploit it further, do not ask for payment, and do not publish it before it is fixed.

Not without written permission from someone with authority over that network. Being a student or employee does not authorise security testing.

You need the client’s authorisation and must also follow the cloud provider’s penetration testing and acceptable use policies, which can restrict some activities.

In your own virtual lab with deliberately vulnerable machines, on legal training platforms, and in capture-the-flag competitions.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Anjali

I am passionate about technology, invention and big challenging tasks on my to- do list. In terms of the work I am doing also at Bunnyshell, I am most passionate about the technologies that we are using., I'm devoted to delivering content that not only informs but also inspires. Whether you need in- depth analysis pieces, educational attendants, or study- provoking opinion pieces, I draft content that resonates with tech suckers and professionals likewise.