Open to everyone Reading, lesson 91 of 100, 2 min read
Ethical hacking and permission
Thinking like an attacker, acting like a professional
Ethical hacking (also called penetration testing or offensive security) means using attackers' techniques, with permission, to find weaknesses before criminals do. The skills overlap with crime; the permission, purpose and conduct do not.
Permission comes first
Before any test, a professional has:
- written authorisation from someone who actually has authority over the systems (owning a website is not the same as owning the hosting server it runs on);
- a scope: exactly which addresses, applications and techniques are allowed, and which are not;
- rules of engagement: testing hours, who to call if something breaks, how sensitive data found during the test will be handled;
- an agreed report at the end.
Testing outside the scope, even by accident, can break the law and the client's trust.
Professional conduct
- Do no harm: avoid techniques that could crash systems or delete data unless explicitly agreed.
- Confidentiality: findings and any data seen during the test are private to the client.
- Honesty: report what you found and what you could not test.
- No personal gain: never keep data, access or tools from a client's systems.
- Stop and report immediately if you find signs of a real attacker or illegal content.
Kinds of test
| Kind | The tester knows |
|---|---|
| Black box | Nothing beyond what an outsider could find |
| Grey box | Some information, such as a normal user account |
| White box | Full details, including designs and source code |
Red, blue and purple
- Red team: simulates a realistic attacker over weeks, testing people, processes and technology together.
- Blue team: the defenders.
- Purple team: both working together to improve detection, as you saw in module 9.
Warning
"I was just testing" is not a legal defence. Practise only on your own lab, on platforms built for practice, or under a signed agreement.