Follow @guvnor.ai on TikTok (opens in a new tab)

Compliance & Legal

Contain a cyber attack and preserve evidence

Contain the attack without destroying the logs and system images an investigation needs, and keep a record from the start. If personal data may be involved, the 72-hour reporting clock may already be running from when you became aware of the breach, so note the time.

Cyber security and data protection UK-wide

Work out what has happened

The NCSC defines a cyber incident as unauthorised access, or attempted access, to an organisation's IT systems. It can be a malicious attack, such as malware or a denial of service attack, or an accident. Account and email compromise and data theft fall within the same definition.

Signs of an incident include:

  • computers running slowly
  • users locked out of their accounts or unable to open documents
  • people telling you about strange emails coming from your domain
  • redirected internet searches
  • requests for unauthorised payments
  • unusual account activity

Gather facts as soon as you suspect something has gone wrong. The NCSC suggests these questions as a starting point. The answers go to whoever fixes the problem and into the later review.

  • What problem has been reported, and by whom?
  • Which services, programs or hardware are not working?
  • Are there signs that data has been lost, or posted on the internet?
  • What information has been disclosed to unauthorised parties, deleted or corrupted?
  • Have customers noticed any problems, and can they use your services?
  • Who designed the affected system, and who maintains it?
  • When did the problem occur or first come to your attention?
  • How far does it reach in the organisation?
  • Is there any sign it began inside the organisation or through your supply chain?
  • What is the potential business impact?

Do not reprimand staff who fall for a phishing message, because fear of reprisal stops prompt reporting.

Contain the attack

Containment prevents further spread or lowers the impact. Start as soon as possible and keep it up throughout the response. Think through the repercussions of each action first. Overreacting can cause more damage than the incident itself, and an attacker may react or bury themselves more deeply. Sometimes it is better to monitor and analyse further before acting, and you assess that case by case.

  1. Note when you became aware

    Record the date and time. If you are a controller and personal data may be involved, the 72-hour reporting clock runs from becoming aware of the breach.

  2. If the attack is under way, phone Report Fraud's live-attack line

    Report Fraud covers England, Wales and Northern Ireland. Phone 0300 123 2040 immediately. The line runs 24 hours a day, 7 days a week, and the call is triaged and may go on to law enforcement.

  3. Open the central record early

    Log what was found and when, decisions taken (by whom and why), and actions agreed and their status. Use standard time references and consider appointing a designated recorder.

  4. Phone your insurer early

    Phone the insurer's incident hotline if your policy has one, and check what the policy requires.

  5. Bring in an NCSC-assured incident response provider

    The NCSC advises securing the services of an NCSC-assured Cyber Incident Response provider.

  6. Make sure someone can authorise decisions

    The NCSC says it is vital that staff are available who can authorise critical decisions, such as taking a customer database or website offline.

  7. Decide whether to disconnect or shut down

    Disconnecting systems from the internet or other networks can stop attackers issuing further commands, limit spread and preserve forensic evidence. It may not stop activity already under way. Shutting down may be quicker and may halt active processes, but can lose investigative evidence and make it harder to confirm the attacker has been removed. The decision should balance business impact, containment, safety and investigation, with specialist advice where available.

  8. Contain the spread

    Once you are certain it is safe, block activity, isolate systems and reset accounts. Containment can also mean locking down remote access and blocking inbound and outbound traffic and emails.

Contain each type of attack

Attack What to do What to watch for
Account or email compromise Check the mailbox's filters and forwarding rules first. Once no unwanted forwarding rule remains, change the password of the hacked account and of any account that shares it. Then log every device and app out of the account and set up two-step verification. Criminals commonly set up a forwarding rule that copies every email to them. A hacked email account often leads to compromise elsewhere, so check bank and shopping accounts.
Malware Check antivirus alerts and server or audit logs for the specifics. If they do not show it but you know which device is affected, run a full antivirus scan and keep notes of the results. If nothing is found, consider using alternative antivirus software. Malware can lock devices, steal, delete or encrypt data, take control of devices and steal credentials for onward access.
Data theft Treat it as unauthorised access: isolate the affected systems, reset credentials and lock down remote access. If personal data was taken, it is a personal data breach and the reporting clock may already be running.
Denial of service Gather traffic, bandwidth, processor and database data, plus helpdesk tickets and social media feeds, to find the cause. An internet or cloud provider may offer controls such as blocking IP addresses or geo-blocking. Adding computing resource to an overloaded system may be the right first step. A slowdown can have non-malicious causes, such as popular content, a misconfiguration or a coding error. An attack can be a diversion for a more penetrative attack, or come in waves, so keep reviewing other alerts.

Preserve evidence

Evidence can show that something did not happen as well as that it did. Many investigations are hindered by log data the organisation thought it had but did not.

Typical evidence includes:

  • host logs, event and antivirus logs, and full images or memory dumps of affected systems
  • network metadata
  • email logs, full email files and email audit logs
  • domain controller, Active Directory and remote login (RDP and VPN) logs

Cloud and hosting providers may not turn on all logging by default, or give you admin access to it. Arrange access to that data.

Ideally keep logs for at least 3 months, and sync evidence and log sources to the same time server and timezone so that events can be correlated.

Where court action is likely, it may be necessary to capture data evidentially. If you decide on legal proceedings, law enforcement must be engaged, and these and civil cases may need careful evidence handling.

Decide who to involve

Statutory reporting deadlines

A controller must notify a personal data breach to the Information Commission (formerly the ICO) without undue delay and, where feasible, within 72 hours of becoming aware of it. No notification is needed if the breach is unlikely to result in a risk to people's rights and freedoms. A notification made after 72 hours must give reasons for the delay.

A processor, such as an IT or cloud provider holding your data, must tell the controller without undue delay after becoming aware of a breach. The controller's own 72 hours runs from the controller becoming aware.

Further duties apply only to some businesses, each with a 72-hour limit. An operator of essential services within the Network and Information Systems Regulations 2018 must notify its designated competent authority in writing of an incident with a significant impact on the continuity of its service, without undue delay and in any event no later than 72 hours after it is aware that the incident has occurred.

A relevant digital service provider must notify the Commission in writing of an incident with a substantial impact, without undue delay and in any event no later than 72 hours after first being aware, if it has the information to assess the impact. That means a provider of an online marketplace, search engine or cloud computing service in the UK, with its head office or a nominated representative in the UK that is not a micro or small enterprise.

A provider of a public electronic communications service must notify a personal data breach to the Commission without undue delay and, where feasible, not later than 72 hours after becoming aware of it (regulation 5A of the Privacy and Electronic Communications Regulations 2003). A notification not made within 72 hours must be accompanied by reasons for the delay.

Your insurer

Most cyber insurance policies provide a 24/7 incident hotline. Incident support can include notifying customers, public relations, IT forensics, legal fees and working with regulators. Consider legal advice if the impact on your business or customers is significant, and your insurer can advise.

Cover for business email compromise may sit in a crime insurance policy rather than a cyber policy, and some cyber policies limit or exclude social engineering. Check which policy responds. An insurance broker can advise.

An incident response provider

The NCSC recommends that all UK organisations use an NCSC-assured Cyber Incident Response provider when dealing with cyber incidents. Providers are assured at Enhanced or Standard level, and either can assist with most incidents. A provider investigates how the attackers got in, how they moved, what they did and whether they kept access, and helps you recover.

Full host forensics, large-scale log analysis and advanced malware analysis are often outsourced. Where possible, investigate before systems are restored.

The police

A cyber attack is a crime. Under section 1 of the Computer Misuse Act 1990 it is an offence to cause a computer to perform any function with intent to secure unauthorised access to a program or data, knowing the access is unauthorised.

Report Fraud is the national reporting service for cyber crime and fraud in England, Wales and Northern Ireland. It replaced Action Fraud on 4 December 2025, and the phone number is unchanged. A report gets a police crime reference number. Report Fraud is not an emergency service: dial 999 if anyone is in immediate danger.

The NCSC strongly encourages reporting, and says that the more people report, the more likely it is that perpetrators will be arrested, charged and convicted.

The NCSC

For a significant attack the NCSC recommends that you start by reporting it to the NCSC. Report an incident that affects data on employees, customers or clients, your firmware, software or hardware, or personal data. The NCSC is not a regulator and will not pass information to regulators without first seeking your consent.

Reporting to the NCSC does not fulfil any legal or regulatory reporting requirement. The report is not shared with the Commission, so a personal data breach may need a separate report.

Where to report a cyber incident (opens in a new tab)

Recover safely

Confirm that remediation has worked before moving to recovery. That may involve monitoring for a period, and it includes establishing whether the attacker has been evicted. Backups must be confirmed as clean before you rely on them.

Rushing recovery before you understand the incident can significantly increase risk, so allow enough time for the investigation. Depending on the incident, in-house resolution may involve replacing hardware, restoring from backups, patching software, cleaning machines and changing passwords. Removing malicious files can mean cleaning or rebuilding machines, cleaning user profiles, running antivirus scans or deploying a script. Actions often need to be synchronised across the whole estate so that infections are removed in a single pass.

After a denial of service attack, recovery normally begins when there is evidence that the attack has reduced and mitigations are in place.

Controllers and processors must implement security appropriate to the risk, which, as appropriate, includes the ability to restore availability and access to personal data in a timely manner after an incident.

Keep staff and customers informed of anything that affects them, for example compromised personal data. Tell staff at a time proportionate to the effect of the incident. If normal communications may be compromised, use secure alternatives.

Keep the record

Note in the central record the data captured and any data that is missing. Regulators or insurers may require the record, so retain it. Analysis can continue after the attacker is removed, so that legal, regulatory and other stakeholders can be told what happened.

A controller must document any personal data breach, whether or not it is reportable. The record covers the facts, the effects and the remedial action taken, and must be enough for the Commission to verify compliance. Where you decide a breach does not need reporting, be able to justify that decision and document it.

Once the incident is over, review the actions you documented during the response and update your incident plan where necessary. Reassess your risk and change controls where needed. After a password attack, for example, that might mean a new password policy.

Official guidance