Skip to content
Visual explainer 2h 30m to learn 4 steps

Ethics, law & responsible disclosure

Explain why testing without written permission is illegal and how responsible disclosure works.

By Invicly Tech, , in Ethical Hacking & Penetration Testing. About 10 minutes to read.

Topic 1 of 32

In short

Testing someone else's systems without written permission is a crime in most countries, regardless of intent. Ethical hacking is defined by authorization: a signed agreement makes the same actions legal. Responsible disclosure governs how found issues are reported.

Think of it like this: Like a locksmith hired to test a lock: the contract is what separates a professional from a burglar.

Explained simply

Ethical hacking uses the same tools and tricks as criminals. The difference is not skill or intent. The difference is permission. If the owner of a system has given you written permission to test it, your work is a job. If they have not, the very same scan or login attempt can be a crime.

Most countries have a law about computer misuse. In the UK it is the Computer Misuse Act 1990. In the US it is the Computer Fraud and Abuse Act (CFAA). In India it is the Information Technology Act 2000. They all make it an offence to access a computer you are not allowed to access, even if you change nothing.

"I only wanted to help" is not a legal defence in most places. Courts look at whether you had authorization, not at how kind your reasons were. That is why professionals never test anything until a person with real authority over the system has signed a document that names it.

When you do find a flaw, there is a polite and safe way to report it. This is called responsible (or coordinated) disclosure. You tell the owner privately, give them time to fix it, and only talk about it in public after the fix is out, if at all.

Press Play on a diagram to walk through it one step at a time.

CompareAuthorized vs unauthorized
Authorized test
  • Written permission
  • Agreed scope
  • Legal
  • Findings reported to owner
Unauthorized access
  • No permission
  • No scope
  • A crime
  • Causes harm
MapQuestions to ask before you touch any system
Am I allowed to test this?
  • Who owns it?
    • Is it really the client's?
    • Or a third party's service?
  • Who signed?
    • Do they have authority?
    • Is it in writing?
  • Is it in scope?
    • Named host, range or app
    • Not on the excluded list
  • Is it allowed now?
    • Inside the test window
    • Using allowed methods only

In depth

What the laws actually forbid

Computer misuse laws usually have a few layers. The base offence is unauthorised access: logging in, reading files or getting past a password check that you were not allowed to pass. Harsher offences cover access with intent to commit another crime, and acts that impair a system, such as deleting data or knocking a service offline. Some laws also cover making or supplying tools for these crimes, which is why intent and context matter when you share scripts.

The key word is authorization. A website being public does not mean every part of it is authorised for you. Guessing a hidden admin URL, using someone else's password, or changing an ID in a URL to read another person's data can all count as unauthorised access, even with no hacking tool involved.

  • UK: Computer Misuse Act 1990
  • US: Computer Fraud and Abuse Act, 18 U.S.C. 1030
  • India: IT Act 2000, sections 43 and 66
  • EU countries: national laws based on Directive 2013/40/EU

Authorization has limits

Permission is never a blank cheque. It covers specific systems, a specific time window and specific methods. A signed letter to test the web app at shop.example.com does not let you test the office Wi-Fi, the payment provider behind the checkout, or the cloud account of a supplier.

Also check who signed. An employee can only authorise testing of systems their company owns or controls. A company cannot give you permission to test a third party, such as its SaaS email provider or hosting company. Those providers have their own rules or require their own approval. If the person who signed had no authority, your permission may be worthless.

  • Permission names systems, dates and methods
  • The signer must have authority over the asset
  • Third-party services need their own permission
  • Anything not written down is not authorised

Pentests, bug bounties and crime

A penetration test is a paid contract. The client defines the scope, you test inside it for a fixed period, and you deliver a report. A bug bounty is a public or private program where a company invites many researchers to test listed assets under published rules, and pays for valid reports. Both are authorised; the program rules or contract are your permission.

Crime starts the moment you step outside that permission. Testing a company with no bounty program, testing assets the program excludes, or breaking a program rule (for example, using automated scanners when they are banned) can remove your protection. Many programs include a safe harbor statement, a promise not to take legal action against researchers who follow the rules.

CompareThree ways people test systems
Penetration test
  • Signed contract with the client
  • Fixed scope and dates
  • Paid for time and a report
  • Legal inside the contract
Bug bounty
  • Published program rules
  • Many researchers at once
  • Paid per valid finding
  • Legal only inside the rules
Unauthorised testing
  • No permission at all
  • No scope or contact
  • Can be prosecuted
  • Even with good intent

How coordinated disclosure works

Coordinated vulnerability disclosure means the finder and the owner work together on timing. First, find the right contact. Many sites publish a security.txt file at /.well-known/security.txt (defined in RFC 9116) with an email address and policy link. Send a clear private report: what is affected, how to reproduce it, and the impact. Do not include more data than needed to prove the issue.

The owner confirms, fixes and releases a patch. A common deadline is 90 days, made popular by Google Project Zero, with extensions if the vendor is working in good faith. After the fix, a CVE ID may be assigned and details published. ISO/IEC 29147 and ISO/IEC 30111 describe the vendor side of this process.

FlowCoordinated disclosure, step by step
  1. 1
    Find contact

    security.txt, bounty page or vendor PSIRT

  2. 2
    Private report

    Steps, impact, minimal evidence

  3. 3
    Vendor confirms

    Acknowledges and plans a fix

  4. 4
    Fix released

    Patch or config change ships

  5. 5
    Public advisory

    Often with a CVE ID and credit

Learn it in 4 short steps

About 40m each. Track them with a timer in your plan.

  1. 1
    Read your country's computer misuse law~40m
  2. 2
    Explain authorization and its limits~40m
  3. 3
    Compare pentests, bug bounties and crime~40m
  4. 4
    Follow a responsible disclosure process~40m

Key points

  • Authorization, in writing, is what makes testing legal.
  • Good intent does not make unauthorized access lawful.
  • Responsible disclosure gives owners time to fix issues.
  • Bug bounty programs grant permission within set rules.

Key terms

Tap a card to flip it. 0/4 known

Examples

A student finds a bug in the school portal

Step 1: While checking grades, a student notices that changing a number in the URL shows another student's report. Step 2: The right move is to stop immediately. Viewing more records, even "to check", is unauthorised access to personal data. Step 3: Write down what happened and the URL pattern, without saving other people's data. Step 4: Report it privately to the IT department or the address in security.txt. Step 5: Do not post about it until the school has fixed it. The defender's fix is a server-side check that the logged-in student owns the requested report.

Reading a bug bounty policy before testing

Step 1: Open the program page and list the in-scope assets, for example app.example.com and the mobile API. Step 2: Note the exclusions, for example the marketing site and any third-party help desk. Step 3: Read the rules: often no denial of service, no social engineering, no automated scanning above a rate limit, and only test with your own accounts. Step 4: Check for a safe harbor statement. Step 5: Only then start, and keep notes with timestamps so you can show you stayed inside the rules.

Quick reference

  • No written permission from someone with authority means no testing
  • Good intent is not a legal defence for unauthorised access
  • Your permission covers named systems, dates and methods only
  • A client cannot authorise you to test its SaaS or hosting providers
  • Look for /.well-known/security.txt (RFC 9116) to find a security contact
  • A common disclosure deadline is 90 days after the vendor is told
  • Stop and report if you stumble on personal data; do not collect more

Common mistakes

  • Assuming a verbal okay is enough; get it in writing.
  • Testing a system that is in use but outside the agreed scope.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1What makes a penetration test legal?

Question 2

2A client asks you to also test the email service they rent from a big SaaS company. What do you do?

Question 3

3Where do many sites publish their security contact?

Question 4

4What does a safe harbor statement in a bug bounty program usually promise?

Question 5

5During coordinated disclosure, when should full details go public?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Find the main computer misuse law in your country and write down, in your own words, what counts as unauthorised access.

  2. Exercise 2medium

    Pick three real websites and check whether they publish /.well-known/security.txt. Note the contact and policy fields.

  3. Exercise 3hard

    Write a short private disclosure email for a made-up flaw: a lab app that shows other users' orders when the order ID in the URL changes.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is it illegal to scan a website with nmap without permission?
It depends on the country and what you do, and the law is not always clear about scanning alone. Professionals avoid the question entirely: they only scan systems they own or have written permission to test.
Can I get in trouble for reporting a bug I found by accident?
Usually not if you stopped at once, did not collect data, and reported privately. Going further to "explore" or demanding money for the details can turn a good deed into a crime or extortion.
What is the difference between responsible and coordinated disclosure?
They mean almost the same thing. Coordinated disclosure is the newer term and stresses that finder and vendor agree on timing together.
Do I need a certification to do ethical hacking legally?
No. Certifications show skill, but legality comes only from authorization. A certified tester without permission is still breaking the law.

Go deeper

ShareXLinkedInWhatsApp