Cybersecurity — Level 3: Ethical Hacking & Web Application Security
Get Started Free
Free preview
Ethical hacking and the law
Lecture notes
Ethical hacking (penetration testing) means attacking systems with the owner's written permission to find weaknesses before criminals do. The techniques are the same as attackers'; the difference is authorisation and intent.
Types of hackers
- Black hat — breaks in for profit or damage: a criminal.
- White hat — tests with permission and reports to the owner.
- Grey hat — tests without permission "to help": still illegal, whatever the intention.
Before any test
- Written authorisation signed by someone who has the right to give it.
- Scope: exact IP addresses, domains, applications; what is excluded.
- Rules of engagement: dates and hours, allowed techniques (no denial of service, no social engineering unless agreed), emergency contacts, data handling.
- A non-disclosure agreement — findings are confidential.
The law
In Cameroon, law n° 2010/012 on cybersecurity and cybercrime punishes unauthorised access to and interference with information systems; most countries have similar laws (e.g. the Budapest Convention framework). "I was only testing" is not a defence.
Legal ways to practise
- Your own lab (next lesson), deliberately vulnerable apps (DVWA, OWASP Juice Shop).
- Training platforms: TryHackMe, Hack The Box, PortSwigger Web Security Academy.
- Bug bounty programmes that publicly invite testing within stated rules.
If you find a flaw by accident, report it privately to the owner (responsible disclosure) without exploiting it further.
Want to go further?
20 h · Enroll to access every lesson and earn the certificate.