Module 7 · Ethical Hacking · Lesson 19 of 75
What ethical hacking is: law, permission and scope
The difference between a hacker and a penetration tester is a signature. Learn authorisation, rules of engagement, scope, test types and the main methodologies.
In this lesson · about 35 minutes
- Explain what makes hacking ethical and legal
- List what a rules-of-engagement document must contain
- Choose between black-, grey- and white-box tests and the main test types
Who is who
- Penetration tester (pentester): hired to test specific systems within a set time and scope, and write a report.
- Red team: emulates a realistic adversary over weeks, testing whether the defenders (the blue team) notice. Purple teaming is both sides working together to improve detection.
- Bug bounty hunter: tests public programmes under published rules and is paid per valid finding.
- Vulnerability assessor: finds and ranks weaknesses, usually without exploiting them (Module 13).
- "White hat", "black hat" and "grey hat" describe intent and permission. Grey hats who test without permission, even with good intentions, are still breaking the law.
Before any test: the paperwork
- Contract / statement of work: who, what, when, how much.
- Authorisation letter ("get out of jail" letter): signed by someone who actually owns the systems. If a cloud provider or hosting company is involved, check their testing policy too.
- Rules of engagement (RoE): in-scope targets (IP ranges, domains, apps), out-of-scope items, allowed techniques (is social engineering allowed? denial of service? physical entry?), testing windows, emergency contacts, how to handle sensitive data found, and when to stop and call ("if you find evidence of a real breach, stop and phone this number").
- NDA: you will see confidential information.
Test types
| Knowledge | Meaning | Good for |
|---|---|---|
| Black box | Tester gets almost nothing, like an outside attacker | Realism, but time goes on discovery |
| Grey box | Some information, such as a normal user account | The most common balance |
| White box | Full access to diagrams, source code, configs | The most thorough coverage per day |
By target: external network, internal network, web application, API, mobile app, wireless, cloud, social engineering (phishing, phone), and physical.
Methodologies
Professionals follow a published method so tests are repeatable and complete: PTES (Penetration Testing Execution Standard), the OWASP Web Security Testing Guide for web apps, NIST SP 800-115, and OSSTMM. MITRE ATT&CK (Module 5) is used to plan red-team scenarios.
Decision scenario
Is this in scope?
You are two days into an authorised external test for a retailer.
The rules of engagement list the retailer's IP range 198.51.100.0/26 and shop.retailer.example. While mapping DNS you find payments.retailer.example, hosted by a third-party payment company at 203.0.113.70. It has an old login page that looks vulnerable.
What do you recommend?
0 of 3 options explored. Try the others to see how each would play out.
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.