Back to Lessons
Intermediate
14 min

The Ethical Hacker's Compass: Navigating Legal and Moral Boundaries in Penetration Testing

The skill and the crime can look identical from the outside. The difference is permission, scope, and what you do when you find something ugly.

ethical hackingpermissionscoperules of engagement

The yes comes first

A penetration test is an authorised attempt to find weaknesses before someone else does. Authorised means a person who can bind the owner said yes, in writing, before you touch a system. Good intent does not replace that sentence.

Unauthorised access is a crime in the places this work usually lands: Australia's Criminal Code computer offences, the US Computer Fraud and Abuse Act, and the UK Computer Misuse Act. Other countries have their own. If the system sits in another jurisdiction, that law applies too. This lesson is a map of the questions. It is not legal advice, and a blog post is a bad lawyer.

What the piece of paper has to name

Scope
Hosts, apps, and accounts that are in. Everything else is out, including the interesting neighbour you noticed. Methods that are allowed. Methods that are banned, especially denial of service and anything that changes live data.
Window and witness
Start time, stop time, and a named person who will answer the phone if you hit production. A test that runs past the window because it was “going well” is a test outside the agreement.
Data you did not mean to see
Stop. Do not collect a souvenir.
If you land on customer records, payroll, or health data, you have proved the point. Note how you got there, leave the records, and call the contact. Copying a database “so they believe you” is how a test becomes an incident you caused.
The report
Findings, how you reproduced them, and what to fix. Evidence stays with the client under the agreement. A write-up on a personal blog, even with the name removed, can still identify the system. Ask before you publish.

What does not grant permission

  • A certification (OSCP, CEH, CISSP, or the next one). Those test skill. They do not sign a scope.
  • A bug-bounty page you have not read. The policy is the scope. Outside it, you are uninvited.
  • A friend who “works there” and said it would be fine. They may not be allowed to say yes.
  • An NDA on its own. Confidentiality is not authorisation to break in.

The moral rule under the legal one is smaller: do not make the client's week worse to make your findings louder. Identify the hole. Do not live in it.