UK and EU Law: Computer Misuse Act, Directive 2013/40/EU and NIS2
Europe regulates security from two directions. Criminal law says what an attacker (or a careless tester) must not do: the UK's Computer Misuse Act and, in the EU, a directive that every member state has written into its own criminal code. Resilience law says what organisations must do to protect themselves and whom they must tell when something goes wrong: in the EU, the NIS2 Directive. A security professional meets both, the first when testing, the second when defending or responding to an incident.
Note: This is an overview for learners, not legal advice. Statutes are amended and member states transpose directives differently; read the current national text and ask a lawyer before relying on it.
United Kingdom: the Computer Misuse Act 1990
The Computer Misuse Act 1990 (CMA) was one of the first hacking laws anywhere. It has been amended several times, and its offences today, with the maximum prison sentences on indictment as summarised in the Crown Prosecution Service's guidance, are:
| Section | Offence | Maximum |
|---|---|---|
| s.1 | unauthorised access to computer material, knowing the access is unauthorised | 2 years |
| s.2 | unauthorised access with intent to commit or facilitate further offences | 5 years |
| s.3 | unauthorised acts with intent to impair, or reckless as to impairing, the operation of a computer (denial of service, deleting data, malware) | 10 years |
| s.3ZA | unauthorised acts causing, or creating a significant risk of, serious damage (inserted by the Serious Crime Act 2015) | 14 years; life where human welfare or national security is at stake |
| s.3A | making, supplying or obtaining articles (software, data) for use in a s.1, s.3 or s.3ZA offence | 2 years |
Things to notice:
- Section 1 needs no damage and no bad purpose. Logging into a system you know you may not use is the complete offence. "I only looked" is not a defence.
- Section 3A is about tools. Security tools are dual-use; what the offence targets is making or supplying them for an offence, or believing they are likely to be used for one. Publishing a scanner for defenders is different from selling an "exploit kit" to strangers, and intent and context are what prosecutors examine.
- There is no statutory defence for security research. Researchers and industry groups have campaigned for one for years. The security minister said on 3 December 2025 that the government would amend the Act with a statutory defence for researchers who meet certain safeguards, and CMA reform was announced again in the King's Speech of May 2026; press reports describe the planned defence as much narrower than researchers asked for (essentially scanning of Internet-facing systems, by accredited researchers). When this lesson was written (November 2026) no such amendment had become law; until one does, authorisation is the only safe basis for testing.
European Union: Directive 2013/40/EU on attacks against information systems
An EU directive is not applied directly: each member state must write it into national law (transposition). Directive 2013/40/EU, adopted on 12 August 2013, replaced an earlier framework decision (2005/222/JHA) and had to be transposed by 4 September 2015. It sets a common minimum for computer crime across the EU:
| Article | Offence (when committed intentionally and "without right") |
|---|---|
| Art. 3 | illegal access to an information system, where committed by infringing a security measure, at least for cases that are not minor |
| Art. 4 | illegal system interference: seriously hindering or interrupting a system (DoS, sabotage) |
| Art. 5 | illegal data interference: deleting, damaging, altering or suppressing data |
| Art. 6 | illegal interception of non-public transmissions |
| Art. 7 | tools: producing, selling, distributing programs designed or adapted primarily for these offences, or passwords and access codes, with intent that they be used for them |
The key phrase is defined in Article 2: "without right" means conduct not authorised by the owner or another right holder of the system, or not permitted under national law. Authorisation is again the line. Article 9 sets minimum maximum penalties: member states must allow a maximum of at least two years' imprisonment for these offences (at least where they are not minor), and higher maximums for system and data interference (Articles 4 and 5) that uses a tool to hit a significant number of systems (botnet-style), is committed by a criminal organisation, causes serious damage or hits critical infrastructure. Recital 17 adds that the directive does not impose criminal liability where acts are committed without criminal intent, for example in mandated testing, where a company assigns someone to test its own security.
Because each country transposes it, the details (does mere access count without breaking a security measure? what are the penalties?) differ from one member state to the next. Always read the national law of the country where the system is and where you are.
European Union: NIS2, Directive (EU) 2022/2555
NIS2 is about defence, not crime. Adopted on 14 December 2022, it replaced the first NIS Directive (2016/1148), which was repealed with effect from 18 October 2024. Member states had to transpose it by 17 October 2024 and apply it from 18 October 2024; several were late, so check the national status.
- Who it covers. As a rule, medium and large organisations (some, such as DNS and top-level-domain providers, trust service providers and public electronic-communications providers, regardless of size) in many sectors (energy, transport, banking, health, drinking water, digital infrastructure, public administration, space, and others such as postal services, waste, chemicals, food, manufacturing and digital providers), sorted into essential and important entities.
- What they must do. Risk-management measures (Article 21), approved and overseen by the management body, whose members must take cybersecurity training and can be held liable (Article 20).
- Incident reporting (Article 23). For a significant incident: an early warning without undue delay and within 24 hours of becoming aware, an incident notification within 72 hours, and a final report no later than one month after the notification.
- Fines (Article 34). Member states must allow fines of at least up to EUR 10 million or 2 % of worldwide annual turnover (whichever is higher) for essential entities, and EUR 7 million or 1.4 % for important entities.
- Coordinated vulnerability disclosure (Article 12). Each member state designates a CSIRT as coordinator, a trusted intermediary between a researcher and the vendor, and ENISA runs a European vulnerability database. For researchers this is a legitimate channel when a vendor does not answer.
The reporting clock is the part engineers meet first, at 3 a.m. Here it is for one incident (a simplified reading: national law may count the month differently, and the clock starts when the organisation becomes aware, not when the attack began):
from datetime import datetime, timedelta, timezone
import calendar
def add_month(t):
y, m = (t.year + 1, 1) if t.month == 12 else (t.year, t.month + 1)
day = min(t.day, calendar.monthrange(y, m)[1]) # 31 Jan -> 28/29 Feb
return t.replace(year=y, month=m, day=day)
aware = datetime(2026, 1, 30, 22, 15, tzinfo=timezone.utc) # SOC confirms a significant incident
early_warning = aware + timedelta(hours=24)
notification = aware + timedelta(hours=72)
sent = datetime(2026, 1, 31, 18, 5, tzinfo=timezone.utc) # when the notification actually went out
final_report = add_month(sent)
for label, t in [("became aware", aware), ("early warning due", early_warning),
("incident notification due", notification), ("notification sent", sent),
("final report due", final_report)]:
print(f"{label:<26} {t:%a %Y-%m-%d %H:%M} UTC")
print("notification on time:", sent <= notification)became aware Fri 2026-01-30 22:15 UTC
early warning due Sat 2026-01-31 22:15 UTC
incident notification due Mon 2026-02-02 22:15 UTC
notification sent Sat 2026-01-31 18:05 UTC
final report due Sat 2026-02-28 18:05 UTC
notification on time: True
The early warning is due a day after awareness, even on a Saturday; "one month" after 31 January lands on 28 February. An incident-response plan should name who sends each report, through which national portal, and who decides that an incident is "significant".
A third EU act is now arriving: the Cyber Resilience Act, Regulation (EU) 2024/2847, sets security requirements for products with digital elements. Its obligation for manufacturers to report actively exploited vulnerabilities and severe incidents applies from 11 September 2026; most other obligations apply from 11 December 2027. Unlike a directive, a regulation applies directly in every member state.
The UK after Brexit
The UK kept its own version of the first NIS Directive (the Network and Information Systems Regulations 2018) and is not bound by NIS2. A Cyber Security and Resilience Bill to update that regime was introduced in November 2025 and was still going through Parliament in autumn 2026. Organisations operating in both the UK and the EU must follow both systems.
Pitfalls
- "It's legal in my country." Computer-crime law usually applies where the computer is and where you are. Testing a server in Germany from Vietnam can bring both legal systems into play.
- Confusing the two kinds of law. NIS2 does not authorise anyone to test; it obliges organisations to protect and report. The CMA and Directive 2013/40/EU decide whether your testing is a crime.
- Assuming the directive's wording is the law. Courts apply the national transposition. Read that text.
Practice
1. A UK student finds that a school's grade portal accepts the password "admin". He logs in, looks around, logs out and changes nothing. Which CMA offence is relevant?
Section 1, unauthorised access: he knew he was not authorised to log in as an administrator. No damage or further intent is needed. The right action would have been to stop at the discovery and report it without logging in.
2. A company in an EU member state becomes aware of a significant ransomware incident on Monday at 14:00 UTC. When are the NIS2 early warning and incident notification due?
Early warning by Tuesday 14:00 UTC (within 24 hours), incident notification by Thursday 14:00 UTC (within 72 hours), each "without undue delay", so earlier if possible. The final report is due one month after the notification is sent.
Test yourself
Under s.1 of the UK Computer Misuse Act, what must the prosecution show?
- That data was damaged
- That the person caused a computer to perform a function to get unauthorised access, knowing it was unauthorised
- That money was stolen
- That a security measure was broken
What does 'without right' mean in Directive 2013/40/EU?
- Without a university degree
- Conduct not authorised by the owner or other right holder of the system, or not permitted under national law
- Without using a security tool
- Without causing damage
Under NIS2 Article 23, which sequence of reports is required for a significant incident?
- One report within 30 days
- Early warning within 24 h, incident notification within 72 h, final report within one month of the notification
- A report only if data was stolen
- Notification within 7 days
Which NIS2 provision gives researchers a channel when a vendor does not respond?
- Article 12: national CSIRTs act as coordinators for vulnerability disclosure
- Article 34: fines
- Article 20: management training
- There is none