PATCH//NOTES Open the interactive version
← All lessons
Governance · Beginner · 6 min

The law and compliance

The rules that decide what you're allowed to touch, and what must happen after a breach.

What it is

Laws set the floor, and some apply to you as soon as you start practising. In the UK, the Computer Misuse Act 1990 makes it an offence to access a computer without authorisation (section 1), to do so in order to commit another offence (section 2), or to impair a system, for example with malware or a denial-of-service attack (section 3). Making, supplying or obtaining a tool intending it to be used for one of these offences, or believing it's likely to be, is covered too (section 3A); simply owning a security tool isn't. Good intentions are no defence: what matters is authorisation from someone entitled to give it, which is why testers work from a signed scope. UK GDPR and the Data Protection Act 2018 cover personal data. They set seven principles, including keeping data secure (integrity and confidentiality); a notifiable breach must be reported to the ICO without undue delay and, where feasible, within 72 hours of becoming aware of it (later reports must say why); and fines can reach £17.5 million or 4% of global turnover. The NIS Regulations 2018 cover essential services such as energy and transport, and the EU's NIS2 widens this across Europe. Some rules are contracts, not laws: PCI DSS is required by the card brands of anyone who stores, processes or transmits card data. In the EU, the Digital Operational Resilience Act (DORA) covers financial firms' digital resilience. Breaking these rules can bring fines, lost contracts or licences, and lasting damage to reputation. This is a plain-English summary for learning, not legal advice.

Real case · 2015

TalkTalk

Attackers used SQL injection on old web pages to steal data on about 157,000 customers. Several were convicted under the Computer Misuse Act, and the ICO fined TalkTalk £400,000 for failing to protect the data: both sides of the law in one breach.

Source: ICO: TalkTalk cyber attack, how the investigation unfolded

How defenders stop it

  • Get written permission before testing anything you don't own
  • Know where your personal data is, so you can report a breach in time
  • Keep a breach log, including breaches you didn't have to report
  • Check which rules apply to you: your sector, your customers and where you trade

Try it yourself

Allowed or not?

Check yourself

1. A friend asks you to 'see if you can hack' their employer's website. The employer hasn't agreed. Can you?

  1. No: only someone entitled to authorise access to that system can give permission
  2. Yes, because your friend works there
  3. Yes, as long as you don't change anything
  4. Yes, if you report what you find
Show answer

No: only someone entitled to authorise access to that system can give permission. Under the Computer Misuse Act, unauthorised access alone is an offence. Good intentions and 'just looking' are no defence.

2. How long does UK GDPR give an organisation to report a notifiable personal data breach to the ICO?

  1. Without undue delay, and where feasible within 72 hours of becoming aware
  2. 24 hours from the breach
  3. 30 days
  4. Only if customers complain
Show answer

Without undue delay, and where feasible within 72 hours of becoming aware. The clock starts when the organisation becomes aware, not when the breach happened, and runs through weekends. A later report must give the reasons.

3. Which of these is a contractual standard rather than a law?

  1. PCI DSS
  2. UK GDPR
  3. The Computer Misuse Act 1990
  4. The NIS Regulations 2018
Show answer

PCI DSS. PCI DSS is required by the card brands through contracts with banks and merchants. The others are law.

4. Which part of the Computer Misuse Act covers a denial-of-service attack?

  1. Section 3: impairing a computer's operation
  2. Section 1: unauthorised access
  3. Section 2: access to commit another offence
  4. None: DoS isn't covered
Show answer

Section 3: impairing a computer's operation. Section 3 covers unauthorised acts that impair a computer, which includes flooding it so it stops working.

5. Which of these is one of UK GDPR's principles?

  1. Integrity and confidentiality (keeping data secure)
  2. Encrypt everything
  3. Annual penetration tests
  4. Use only UK suppliers
Show answer

Integrity and confidentiality (keeping data secure). The seven principles include integrity and confidentiality, often called the security principle. They don't prescribe specific tools.

Answer them in the app to earn XP.

Next: How attacks are modelled →