Ethical Hacking Fundamentals
What makes hacking legal, useful and professional
Ethical hacking uses the same techniques as attackers, with one big difference: permission. This module covers the rules that make it legal and safe, the different kinds of security testing, the phases every test follows, and what to do when you find something.
Beginner · 5 steps
| First rule | Written permission, every time |
|---|---|
| Kinds of testing | Vulnerability scan, pen test, red team, bug bounty |
| Knowledge levels | Black, grey and white box |
| Methodologies | PTES, OWASP WSTG, NIST SP 800-115 |
| Disclosure standard | ISO/IEC 29147 |
| Common certifications | OSCP, PNPT, GPEN, CEH |
Step by step
Permission makes it ethical Authorisation and scope
The only technical difference between an attacker and an ethical hacker is often nothing; the legal difference is permission. Before any testing, the owner signs an authorisation that names the systems, dates, allowed techniques and an emergency contact. Laws such as the US Computer Fraud and Abuse Act and the UK Computer Misuse Act make unauthorised access a crime, whatever the intent.
Choose the right kind of test Not every assessment is a pen test
A vulnerability scan is automated and broad. A penetration test is a time-boxed, human-led attempt to prove real impact. A red team exercise imitates a real adversary to test detection and response, often over weeks. Bug bounties invite outside researchers to report issues under published rules. How much the tester is told up front ranges from nothing (black box) to full source code (white box).
The phases of a test Recon to report
Every professional test follows the same broad phases: reconnaissance (learn about the target), discovery and scanning (find what's exposed), vulnerability analysis (decide what might be weak), exploitation (prove it, safely), post-exploitation (show the impact without causing harm), and reporting.
Know when to stop Rules while testing
Halfway through, the tester finds a backup file with what looks like real customer records. A professional stops there: they note the location, don't download more than needed to prove it, and tell the client at once instead of waiting for the report. They also never follow a link into a third-party service that wasn't in scope.
Report and disclose responsibly The finding belongs to the owner
Results go only to the client, in a report with impact and fixes. If you ever stumble on a flaw in a system you're not contracted to test, use coordinated disclosure: contact the owner through their
security.txt, bug bounty or security email, give them time to fix it, and never demand payment.
Best practices
- Never touch a system without written authorisation that names it
- Stay inside the scope, dates and techniques agreed with the owner
- Prove impact with the least access and the least data possible
- Stop and report immediately if you find real personal data or cause an outage
- Report through agreed channels; never threaten, sell or publish findings early
More in Penetration Testing.
Packets
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|