Legal, ethics and permission
Stage 0 · Lesson 9 · 20 minutes · Requires Lessons 1–8
This lesson is education, not legal advice. Laws change and every situation has specific facts. If you are ever in doubt about something you have done or plan to do, speak to a qualified lawyer before acting. Nothing here creates a lawyer-client relationship.
The one-line answer
In India, accessing a computer system without the owner's permission is unlawful — regardless of whether you caused damage, whether it was easy, or whether you meant well.
Why you should care
Everything you've learned so far is a skill. Skills are neutral. What decides your future is where you point them.
This lesson is not a formality and it is not moral lecturing. Indian students genuinely face police complaints, college expulsion and criminal charges for things they believed were harmless — testing a college portal, changing a URL parameter on a government site, scanning a company they hoped would hire them.
The technical barrier and the legal barrier are completely different heights. Many serious offences take three seconds and require no skill at all. That gap is exactly where beginners get hurt.
Read this properly. It is the most practically important lesson in Stage 0.
How it actually works
The core principle
Authorisation, not difficulty, is what makes access lawful.
A door being unlocked does not make walking in permitted. A parameter being editable does not make editing it permitted. "The website let me" is not a defence anywhere in the world, and specifically not in India.
The question is never could I? It is always was I permitted to?
The Information Technology Act, 2000
This is the primary law governing computer offences in India. Two provisions matter most to you.
Section 43 — civil liability
Covers a person who, without permission of the owner or authorised person:
- accesses or secures access to a computer, computer system or network
- downloads, copies or extracts any data
- introduces any computer contaminant or virus
- damages or disrupts a system
- denies access to an authorised person
- assists anyone in doing the above
Two features of Section 43 are critical for you to understand.
First, it requires no criminal intent. You do not have to mean harm. Accessing without permission is sufficient.
Second, it requires no proof of damage for several of its clauses — unauthorised access alone is enough.
Liability under Section 43 is compensation payable to the affected person, and the amount is not capped by the section.
Section 66 — criminal liability
If any act referred to in Section 43 is done dishonestly or fraudulently, it becomes a criminal offence.
Punishment: imprisonment up to three years, or a fine up to ₹5,00,000, or both.
The words "dishonestly" and "fraudulently" carry specific legal meanings and are argued in court. Do not treat them as a safety net. Whether your intent was honest is not something you decide — it is something a court decides, after you have already been arrested, charged, and spent a year defending yourself.
Other provisions worth knowing exist:
| Section | Covers |
|---|---|
| 65 | Tampering with computer source documents |
| 66B | Dishonestly receiving stolen computer resource or device |
| 66C | Identity theft — misusing another's password, digital signature or unique identifier |
| 66D | Cheating by personation using a computer resource |
| 66E | Violation of privacy — capturing or transmitting private images |
| 66F | Cyber terrorism — this carries potential life imprisonment |
| 72 | Breach of confidentiality and privacy by a person with lawful access |
Section 66F exists for acts threatening national security, and is not aimed at students. It is listed so you understand the seriousness of the statute you are operating near.
There is no researcher safe harbour in India
This point deserves its own heading because beginners consistently get it wrong.
Some countries have introduced legal protections or prosecutorial guidance for good-faith security research. India has not enacted a general safe harbour for unauthorised security testing.
That means:
- Finding a vulnerability and reporting it responsibly is not automatically a defence to having accessed the system without permission
- The organisation you helped can still file a complaint
- "I was going to tell them" carries no statutory protection
There are documented cases internationally, and reported incidents in India, of researchers who disclosed responsibly and were met with legal threats or complaints rather than thanks. Sometimes it goes well. Sometimes it does not, and you cannot know in advance which organisation you are dealing with.
The only reliable protection is permission obtained before you test.
Other laws that can apply
Digital Personal Data Protection Act, 2023 (DPDP Act) — governs processing of personal data in India. If your testing involves accessing or copying other people's personal data, this is an additional exposure on top of the IT Act.
Bharatiya Nyaya Sanhita, 2023 — replaced the Indian Penal Code from 1 July 2024. Provisions on cheating, forgery, criminal breach of trust and criminal intimidation can be charged alongside IT Act sections. Cyber cases in India are frequently charged under multiple statutes at once.
CERT-In Directions, April 2022 — mandate incident reporting within six hours and log retention for 180 days by service providers, intermediaries, data centres and body corporates. These obligations fall on organisations rather than on individual learners, but they are why your activity against Indian infrastructure is more likely to be logged, retained and reported than you might assume.
Copyright Act, 1957 — reverse engineering and circumvention can raise separate copyright questions independent of the IT Act.
What "permission" actually means
Permission must be explicit, written, specific and from someone with authority to grant it.
Adequate:
- A signed penetration testing contract or statement of work
- A written scope document naming systems, IP ranges, dates and permitted techniques
- A published bug bounty programme policy, where you stay strictly within its stated scope
- A
security.txtfile or vulnerability disclosure policy that explicitly invites testing, followed exactly - Your own systems, your own accounts, your own lab
Not adequate:
- Verbal permission from a friend who works there
- Permission from someone who does not own or administer the system
- A
security.txtfile that gives a contact address but does not authorise testing - "They have a bug bounty so everything they own is in scope" — read the scope, it is almost never everything
- "The site is publicly accessible"
- "I only looked, I didn't change anything"
- "I stopped as soon as I confirmed the bug"
- Silence in response to an email asking for permission
Read scope documents like a contract, because that is what they are. A bug bounty programme that lists *.example.com in scope and excludes legacy.example.com means testing the legacy host is unauthorised, bounty programme or not.
Where the line sits, concretely
You have used several techniques in Stage 0. Here is where each one stands.
Generally fine — passive, public information:
- Reading a website normally in your browser
- Viewing page source and using devtools on pages served to you
- Reading
robots.txt,sitemap.xml,security.txt - DNS lookups using
digornslookupagainst public DNS - Searching certificate transparency logs
- Reading a company's public documentation, job postings, GitHub repositories
- Google searching, including advanced operators
These involve reading information that was published, or that a server voluntarily sent to your browser. This is normal use of the internet.
Do not do without written permission:
- Port scanning any host you do not own
- Automated subdomain brute-forcing or directory brute-forcing against a live target
- Changing parameters to access data belonging to another user
- Attempting any login you are not entitled to use, including with default credentials
- Uploading files, injecting payloads, or submitting crafted input to test for vulnerabilities
- Running vulnerability scanners against anything you do not own
- Downloading, copying or retaining data that is not yours
- Social engineering staff, including "just testing" phishing emails
- Testing anything belonging to your college, employer or a company you are interviewing with
The grey area is not your friend. Some of the second list may technically be argued in specific circumstances. You are a beginner without a legal budget. Treat the second list as prohibited without paperwork.
If you find something by accident
This genuinely happens. You are using a site normally and something obviously broken appears in front of you.
Do this:
- Stop immediately. Do not explore further to "confirm the scope." Every additional request weakens your position.
- Do not download or retain data. Not even one record as proof. Possession is its own problem.
- Take a minimal record — a screenshot of what you saw and the timestamp. Nothing more.
- Do not tell anyone publicly. No tweets, no Instagram stories, no "look what I found" in a Discord server.
- Check for a disclosure policy — look for
security.txt, a security page, or a bug bounty programme. - Report through the official channel if one exists, factually and without demands.
- Consider reporting to CERT-In at
incident@cert-in.org.inif it involves Indian infrastructure and there is no vendor channel. - Never ask for money. A request for payment in exchange for details can be characterised as extortion, and that is a far more serious matter than the original access.
- Consider talking to a lawyer first if the finding is significant or the data involved is sensitive.
Understand the risk honestly: even doing all of this correctly, you may receive a hostile response. That is precisely why permission before testing is the only reliable approach.
The ethics beyond the law
Legality is the floor, not the ceiling.
Proportionality. Prove a vulnerability with the minimum action necessary. If one record demonstrates an IDOR, do not enumerate ten thousand.
Privacy. Other people's data belongs to them. Do not read it, keep it, or share it, even when a flaw makes it available.
Disclosure timing. Give the vendor reasonable time to fix an issue before publishing. Ninety days is a widely used norm.
Don't hurt bystanders. Denial of service, deleting data, or breaking production systems affects users who had no part in the decision to run insecure software.
Teach responsibly. Once you have skills, how you talk about them matters. Publishing working exploits for unpatched systems, or teaching techniques with no context about legality, causes real harm.
See it yourself
1. Read a real bug bounty scope.
Visit a public programme on HackerOne or Bugcrowd. Read the scope and out-of-scope sections in full. Notice how specific they are, how many things are excluded, and how many techniques are prohibited even for in-scope assets.
2. Look for security.txt.
Try https://example.com/.well-known/security.txt on a few large companies. Some have one, most do not. Read the difference between "here is a contact address" and "we authorise testing."
3. Read Section 43 and Section 66.
Find the Information Technology Act, 2000 on the official government site and read those two sections yourself. They are short. Reading the actual statutory language is more sobering than any summary.
4. Set up a legal practice environment.
You already have one — our labs. Also consider a local VM running a deliberately vulnerable application like OWASP Juice Shop or DVWA on your own machine. Everything you do there is unambiguously yours.
How this goes wrong in practice
The college portal. A student notices the exam results page uses ?roll=12345. They change it, see another student's marks, and mention it to a friend. It reaches the administration. The student's intent was curiosity; the college's response is a disciplinary committee and potentially a police complaint. The technical act took two seconds.
The "helpful" scan. Someone runs a vulnerability scanner against a company they want to work for, planning to send the report as a demonstration of skill. The scanner generates thousands of requests, triggers alerts, and the security team treats it as an attack — which, from their side, it is indistinguishable from.
The bounty that wasn't. A researcher tests a subdomain assuming a bug bounty covers "the whole company." The subdomain was explicitly out of scope. No bounty, and a demand to explain their activity.
The proof that became evidence. Someone finds exposed customer data and downloads a sample to prove the report is genuine. They now possess personal data obtained without authorisation, which converts a disclosure conversation into a data protection matter.
The public disclosure. A finding gets posted to social media before the vendor is notified, because it is exciting. The vendor's first knowledge of the vulnerability is a public post, and their response is legal rather than technical.
In every one of these, the person involved was not malicious. That did not help them.
Common mistakes
"I did not cause any damage." Section 43 covers unauthorised access itself. Damage is a separate matter that increases severity; its absence does not create permission.
"It was publicly accessible on the internet." Public accessibility is not authorisation. A misconfigured server that requires no password has not granted you permission — it has failed to enforce a restriction its owner intended.
"I was doing it to help them." Motive may influence how an organisation responds and how a court views intent, but it does not remove the underlying unauthorised access. There is no good-faith exemption in Indian law that you can rely on.
"I used a VPN so it can't be traced." Aside from being an admission of consciousness of guilt, VPN providers respond to legal process, payment records exist, and correlation with your other activity is often straightforward. Assume attribution is possible.
"Everyone does this to learn." Plenty of people practise safely on labs. The ones who practise on live systems and are never caught do not write about it. Survivorship bias makes this look far more normal than it is.
"It is just a small change to one parameter." Legal seriousness does not scale with technical difficulty. Some of the most serious offences are the simplest actions.
Check yourself
- You find a login page and try
admin/adminon a company website you do not work for. It fails. Have you done anything unlawful? - A friend who works at a startup says over chat, "sure, go ahead and test our site." Is that adequate permission?
- You accidentally discover that changing a URL parameter shows another customer's invoice. You want to report it responsibly. What is the very first thing you should do?
Answers
- Very likely yes. Attempting access without authorisation is the relevant act — success is not required for the attempt to be problematic, and unsuccessful login attempts are logged and are visible to the organisation as an intrusion attempt. Failure is not a defence.
- No. Permission should be written, specific about scope, dated, and given by someone with actual authority over the system — typically a founder, CTO or the person responsible for the infrastructure. A casual message from an employee who may not own the system, with no defined scope, protects you very little if the organisation later objects.
- Stop making requests. Do not refresh, do not try other invoice numbers to see how many are exposed, and do not save any invoice data. Take one screenshot with a timestamp, then look for an official disclosure channel. Every additional request after you understood the problem makes your position worse, both legally and in how the organisation will perceive your intent.
Your lab
There is no lab for this lesson, by design.
Instead, do this: write down, in your own words, one sentence describing what you are and are not permitted to test. Keep it somewhere you will see it. When you are three stages deep and excited about a technique, that sentence is what will stop you making a decision you cannot undo.
Summary in your language
தமிழ் சுருக்கம் (Tamil summary)
இது சட்ட ஆலோசனை அல்ல — கல்வி நோக்கம் மட்டுமே. சந்தேகம் இருந்தால் வழக்கறிஞரை அணுகுங்கள்.
அடிப்படை விதி
இந்தியாவில், உரிமையாளரின் அனுமதி இல்லாமல் எந்த ஒரு computer system-ஐயும் அணுகுவது சட்டவிரோதம். சேதம் ஏற்பட்டதா, எளிதாக இருந்ததா, நல்ல எண்ணத்தில் செய்தீர்களா — இவை எதுவும் முக்கியமல்ல.
IT Act 2000 — முக்கியமான இரண்டு பிரிவுகள்
Section 43 — அனுமதியின்றி அணுகுதல், தரவை நகலெடுத்தல், சேதப்படுத்துதல்.
- தீய எண்ணம் தேவையில்லை — அனுமதி இல்லாமல் அணுகியதே போதும்
- இழப்பீடு (compensation) செலுத்த வேண்டி வரும்
Section 66 — Section 43-ல் உள்ள செயலை நேர்மையற்ற அல்லது மோசடி நோக்கத்துடன் செய்தால் அது குற்றம்.
- 3 வருடம் வரை சிறைத்தண்டனை, அல்லது ₹5 லட்சம் வரை அபராதம், அல்லது இரண்டும்
மேலும்: Section 66C (identity theft), 66D (ஏமாற்றுதல்), 72 (தனியுரிமை மீறல்).
மிக முக்கியமான எச்சரிக்கை
இந்தியாவில் security researcher-களுக்கு தனி சட்ட பாதுகாப்பு (safe harbour) இல்லை.
"நான் bug-ஐ கண்டுபிடித்து அவர்களுக்கே சொல்லப் போனேன்" — இது சட்டப்படி தானாக ஒரு தற்காப்பு அல்ல. நீங்கள் உதவிய நிறுவனமே உங்கள் மீது புகார் அளிக்க முடியும்.
"அனுமதி" என்றால் என்ன?
போதுமானது:
- எழுத்துப்பூர்வ ஒப்பந்தம் (scope, தேதி, systems குறிப்பிட்டு)
- Bug bounty programme — அதன் scope-க்குள் மட்டும்
- உங்கள் சொந்த system, சொந்த account, எங்கள் labs
போதாதது:
- நண்பர் ஒருவர் "test பண்ணு" என்று சொன்னது
- "website public-ஆ இருக்கு"
- "நான் பார்த்தேன், மாத்தல"
எது பரவாயில்லை, எது கூடாது?
பரவாயில்லை: website-ஐ சாதாரணமாக பார்ப்பது, devtools பயன்படுத்துவது, robots.txt படிப்பது, DNS lookup செய்வது.
எழுத்துப்பூர்வ அனுமதி இல்லாமல் கூடாது: port scanning, parameter மாற்றி வேறொருவர் data பார்ப்பது, login முயற்சி, scanner இயக்குவது, உங்கள் கல்லூரி அல்லது அலுவலக system-ஐ test செய்வது.
தற்செயலாக ஒரு bug கண்டுபிடித்தால்?
- உடனே நிறுத்துங்கள் — மேலும் சோதிக்காதீர்கள்
- தரவை download செய்யாதீர்கள் — ஒரு record கூட
- ஒரு screenshot மட்டும் எடுங்கள்
- பொதுவில் சொல்லாதீர்கள் — social media-ல் post போடாதீர்கள்
- அதிகாரப்பூர்வ channel மூலம் தெரிவியுங்கள்
- பணம் கேட்காதீர்கள் — அது மிரட்டல் (extortion) ஆகிவிடும்
நினைவில் வையுங்கள்
தொழில்நுட்ப ரீதியாக 2 விநாடி எடுக்கும் ஒரு செயல், சட்ட ரீதியாக 3 வருட விளைவை ஏற்படுத்தலாம். இந்த இடைவெளியில் தான் பல மாணவர்கள் சிக்கிக்கொள்கிறார்கள்.
எங்கள் labs-ல் பயிற்சி செய்யுங்கள். அது தான் பாதுகாப்பானது.
हिंदी सारांश (Hindi summary)
यह क़ानूनी सलाह नहीं है — सिर्फ़ शिक्षा के लिए है। संदेह हो तो वकील से सलाह लें।
बुनियादी नियम
भारत में, मालिक की अनुमति के बिना किसी भी computer system तक पहुँचना ग़ैरक़ानूनी है। नुक़सान हुआ या नहीं, काम आसान था या नहीं, इरादा अच्छा था या नहीं — इनमें से कुछ भी मायने नहीं रखता।
IT Act 2000 — दो मुख्य धाराएँ
Section 43 — बिना अनुमति पहुँच, data कॉपी करना, नुक़सान पहुँचाना।
- बुरे इरादे की ज़रूरत नहीं — बिना अनुमति पहुँचना ही काफ़ी है
- मुआवज़ा (compensation) देना पड़ सकता है
Section 66 — अगर Section 43 का काम बेईमानी या धोखाधड़ी के इरादे से किया जाए, तो यह आपराधिक अपराध है।
- 3 साल तक की जेल, या ₹5 लाख तक जुर्माना, या दोनों
इसके अलावा: Section 66C (पहचान की चोरी), 66D (छल), 72 (निजता का उल्लंघन)।
सबसे ज़रूरी चेतावनी
भारत में security researchers के लिए अलग से क़ानूनी सुरक्षा (safe harbour) नहीं है।
"मैंने bug ढूँढा और उन्हीं को बताने वाला था" — यह अपने आप में क़ानूनी बचाव नहीं है। जिस कंपनी की आपने मदद की, वही आपके ख़िलाफ़ शिकायत दर्ज कर सकती है।
"अनुमति" का असली मतलब
पर्याप्त है:
- लिखित समझौता (scope, तारीख़, systems का नाम लिखा हो)
- Bug bounty programme — सिर्फ़ उसके scope के अंदर
- आपका अपना system, अपना account, हमारे labs
पर्याप्त नहीं है:
- किसी दोस्त का "हाँ test कर लो" कहना
- "website public है"
- "मैंने सिर्फ़ देखा, कुछ बदला नहीं"
क्या ठीक है, क्या नहीं?
ठीक है: website सामान्य रूप से देखना, devtools इस्तेमाल करना, robots.txt पढ़ना, DNS lookup करना।
लिखित अनुमति के बिना नहीं: port scanning, parameter बदलकर किसी और का data देखना, login की कोशिश, scanner चलाना, अपने कॉलेज या ऑफ़िस के system को test करना।
अगर ग़लती से कोई bug मिल जाए?
- तुरंत रुक जाएँ — आगे जाँच न करें
- Data download न करें — एक record भी नहीं
- सिर्फ़ एक screenshot लें
- सार्वजनिक रूप से न बताएँ — social media पर post न करें
- आधिकारिक channel से रिपोर्ट करें
- पैसे न माँगें — वह ज़बरन वसूली (extortion) बन जाता है
याद रखें
जो काम तकनीकी रूप से 2 सेकंड लेता है, उसका क़ानूनी नतीजा 3 साल हो सकता है। इसी फ़ासले में कई छात्र फँस जाते हैं।
हमारे labs में अभ्यास करें। वही सुरक्षित रास्ता है।
Want this summary in Malayalam, Telugu, Kannada or another language? Tell us — the most requested languages get added next.
What's next
You know the rules. One lesson remains, and it is the one that decides whether you are still here in six months — the practical skill of getting unstuck, and the habit that turns solved labs into a career.
→ Lesson 10: How to get unstuck (and write it down)