Is ethical hacking legal in the United Kingdom? Permission, scope and practical steps
October 30, 2026 · by Pentevo
Ethical hacking can be legal in the United Kingdom when the activity is authorised and stays within that authority. Calling it "ethical" or intending to help doesn't grant permission under the Computer Misuse Act 1990. We explain the practical checks below as general information, not legal advice.
Is ethical hacking legal in the United Kingdom?
Yes, but the exact activity and the authority behind it matter. Permission to assess an application doesn't mean permission to attempt every possible attack against it.
Under section 1 of the Computer Misuse Act 1990, an offence involves making a computer perform a function intending to secure unauthorised access. The person must also know that access is unauthorised.
An unsuccessful attempt can still fall within the offence, according to CPS prosecution guidance. Failing to gain access doesn't automatically put an activity outside the law.
What should permission and test scope cover?
Get clear, documented authorisation from someone entitled to approve the proposed work on the target systems. Record:
- Authority: who approves testing and which systems they control.
- Targets: named domains, addresses, applications, accounts and dependencies, with explicit exclusions.
- Methods: permitted techniques, including any exploitation or potentially disruptive activity.
- Operations: test dates or windows, emergency contacts and stop conditions.
- Data: rules for accessing, storing, sharing and deleting evidence.
Make the boundaries specific
Use exact target identifiers rather than descriptions such as "our infrastructure". The NCSC recommends documenting technical boundaries, expected test types, timeframes and relevant compliance or legislative requirements.
Both the tester and system owner should be able to identify an out-of-scope action. For example, approval to test a website shouldn't leave its payment integration's status unclear.
Does good intent or a disclosure policy protect a researcher?
Good intentions and a reporting route aren't substitutes for authority to test. A vulnerability disclosure policy explains how to report findings and may set testing conditions. Read its actual permissions and restrictions, not just the presence of a reporting form.
The UK Government Vulnerability Reporting Service policy prohibits disruptive scanning, denial-of-service testing, social engineering, data modification and unnecessary or significant data access. It also says the policy doesn't grant permission to act unlawfully.
If you notice a flaw accidentally, stop rather than probe further. Avoid collecting extra evidence and use the organisation's stated reporting channel.
Organisations establishing a reporting process can use the NCSC's Vulnerability Disclosure Toolkit.
What if the test involves cloud or third-party systems?
Check who operates every target rather than treating client approval as permission for the entire connected environment. Before starting, map targets to their operators and check relevant service terms and authorisation requirements.
Include cloud infrastructure, managed services and supplier applications in that review. Resolve unclear boundaries before sending test traffic, particularly where infrastructure is shared with other customers.
Keep automation inside the agreed scope
Automation doesn't expand the agreed scope. Configure discovery and exploitation tools with approved targets, methods and limits.
Keep human oversight available. Stop automated activity if it reaches excluded systems or causes unexpected effects, rather than letting the tool continue collecting results.
How should testers handle data and unexpected effects?
Minimise access to personal data and keep evidence secure. Don't copy entire datasets when a limited record will demonstrate the issue. Follow the agreed escalation and stop procedures if sensitive information appears or systems react unexpectedly.
The NCSC advises testers to avoid undue impact, while recognising that unexpected system reactions remain possible.
For organisations, the ICO says UK GDPR requires regular testing, assessment and evaluation of security measures. Suitable scope and frequency depend on the organisation and the personal data it processes. Document results and act on recommendations, or record a valid reason for not doing so.
Use a before, during and after testing workflow
Keep the agreed plan available throughout testing, not just during approval:
- Before: verify authority, targets, exclusions, methods, timing, contacts and data-handling rules.
- During: record relevant actions, stay within scope and stop or escalate unexpected effects.
- After: report findings securely, document recommendations and confirm authority for follow-up work. Obtain fresh approval where that work falls outside the existing agreement.
These legal points concern the UK. For cross-border work, check the laws relevant to both your location and the target systems, with legal advice where needed.
Before testing begins, confirm authority, the target list, permitted methods and stop conditions. To build foundational skills first, we offer Pentevo Academy's free cybersecurity courses, with no account required.
Frequently asked questions
Do I need written permission before penetration testing a system in the UK?
We recommend documented authorisation as a practical safeguard, rather than treating a signed form as what makes testing lawful. The Computer Misuse Act focuses on unauthorised access and knowledge that access is unauthorised. Record who approves the work, which systems they control and exactly what activities they permit.
Is it illegal to scan a website for vulnerabilities without permission?
Not every scan is legally identical. The tool, actions, intent and authority all matter. CPS guidance says an attempt to secure unauthorised access can fall within the offence even if access fails. Don't scan a system without clear authorisation covering the proposed activity.
What should I do if I discover a vulnerability without actively testing for it?
Stop rather than explore further. Avoid accessing additional records, copying data or attempting to demonstrate greater impact. Report what you already observed through the organisation's stated vulnerability disclosure channel. A reporting route isn't blanket permission for more testing, as the government reporting policy makes clear.
Are denial-of-service tests, phishing simulations and social engineering always included in a penetration test?
No. Agree these methods explicitly, including targets, limits and stop conditions. Don't treat a general penetration-testing scope as approval for disruptive tests or exercises involving people. The UK Government Vulnerability Reporting Service policy, for example, excludes denial-of-service testing and social engineering from activities permitted under its rules.
Sources
Related reading
Is ethical hacking legal in the United States? What permission really covers
Is ethical hacking legal in the United States? Understand authorization, DOJ policy and scope with a practical checklist for safer security testing.
SecurityVulnerability management platform: how to choose one that fits your team
Choose a vulnerability management platform by comparing asset coverage, prioritisation, remediation workflows, pricing, and proof-of-concept results.
SecurityAI agent security best practices: a practical plan for safer deployment
Apply AI agent security best practices with a deployment plan to limit access, test realistic threats, set approval rules and monitor activity.
SecurityAI cybersecurity courses: how to choose the right learning path
Compare AI cybersecurity courses by goal, prerequisites, hands-on practice and credentials, then choose a path that fits your next step.
Practice this hands-on
Pentevo Academy turns these concepts into guided lessons, videos and quizzes — free.
Start learning free