Hacking
Table of Contents
Exploiting vulnerabilities or weaknesses in computer systems, networks, or applications to gain access beyond what is intended. The word is value-neutral — it describes a method, not an intent. Context and authorisation determine whether a given act of hacking is criminal, civil, or a legitimate professional service.
Related: Penetration Testing Penetration Testing Methodology Exploitation Vulnerability Classification Vulnerability Research Certifications
Classification by Authorisation
| Classification | Authorisation | Intent | Legal status |
|---|---|---|---|
| White hat | Explicit written permission | Identify and report | Legal |
| Black hat | None | Malicious — financial gain, espionage, disruption | Criminal |
| Grey hat | None | Not malicious — curiosity, demonstration | Legally ambiguous |
| Bug bounty hunter | Programme scope defines permission | Responsible disclosure | Legal within scope |
| Script kiddie | None | Recognition, disruption | Criminal |
| Nation state / APT | None (outside their jurisdiction) | Espionage, sabotage | Criminal internationally |
| Hacktivist | None | Political or ideological | Criminal |
The white/black/grey classification is a simplification — the meaningful legal distinction is simply: authorised or not. Unauthorised access to a system is illegal in most jurisdictions regardless of intent or whether damage was caused.
Legal Frameworks
UK: Computer Misuse Act 1990
— Unauthorised access: up to 2 years
— Unauthorised access with intent to commit further offences: up to 5 years
— Unauthorised modification: up to 10 years
EU: NIS2 Directive (network and information system security obligations)
GDPR (data protection obligations triggered by breaches)
US: Computer Fraud and Abuse Act (CFAA)
— Broad scope, heavily enforced
— "Exceeding authorised access" is as criminal as no access at all
The critical professional protection is a signed scope of work and rules of engagement document before any testing begins.
Professional Context
Hacking as a legitimate profession:
| Role | What it is |
|---|---|
| Penetration tester | Hired to attack systems and report findings before real attackers do |
| Red teamer | Simulates adversarial attack campaigns against an organisation |
| Bug bounty hunter | Independently finds and reports vulnerabilities for reward |
| CTF competitor | Practises offensive skills in controlled challenge environments |
| Security researcher | Studies vulnerabilities in systems, often with responsible disclosure |
Methodology Overview
Professional offensive security work follows a structured process — not ad hoc exploitation:
1. Scoping and rules of engagement — define what is in and out of scope 2. Reconnaissance — passive and active information gathering 3. Enumeration — map attack surface (ports, services, versions) 4. Vulnerability identification — map surface to known weaknesses 5. Exploitation — gain access 6. Post-exploitation — escalate, pivot, persist (within scope) 7. Reporting — document findings with evidence and remediation
See Penetration Testing Methodology for the detailed workflow.
Tips
- Authorisation is everything — verbal permission is not sufficient; a signed scope document is the minimum before any test begins
- "Grey hat" is not a legal defence — intent does not determine legality; access without authorisation is the offence
- The Computer Misuse Act in the UK criminalises possession of hacking tools with intent to use — relevant if you carry testing tools on a work device without clear organisational permission
- CTF environments are fully authorised — skills developed there are directly transferable to professional work