After a cyber incident, the instinct is to wipe infected machines and get back to work. Resist it until evidence is preserved. Isolate affected devices from the network but leave them powered on if possible, export cloud and email logs before they age out, keep copies of ransom notes and malicious emails, and write a timeline of what happened and who did what. Evidence tells you how the attacker got in, what they accessed and whether they are still inside, and it is what insurers, regulators and lawyers will ask for.
Why evidence matters
Without evidence, you cannot answer the questions that decide the cost of an incident: how did they get in, how long were they inside, what did they take, and are they gone? Those answers drive breach notification decisions, insurance claims, legal exposure and whether your rebuilt systems will be compromised again the same way.
What not to do
Common reactions destroy evidence.
- Do not wipe, reimage or rebuild affected machines before evidence is collected.
- Do not power off servers unless instructed; memory contents can be valuable.
- Do not delete malicious emails, inbox rules or attacker accounts before recording them.
- Do not run cleanup tools that alter files across the network before a responder advises.
- Do not communicate about the incident on systems that may be compromised.
Devices
Isolate affected computers by disconnecting the network cable or disabling Wi-Fi, or by using your endpoint tool's network isolation feature, which keeps the device on for analysis while cutting it off from the network. Note who used the device and when the problem was noticed. Responders can then capture memory and disk images in a forensically sound way.
Logs
Logs are the most time-sensitive evidence because many systems keep them for limited periods.
- Email and identity: sign-in logs, audit logs and mailbox activity from Microsoft 365, Google Workspace or your identity provider.
- Endpoint: alerts and telemetry from your antivirus or EDR console.
- Network: firewall, VPN and remote access logs.
- Servers: Windows event logs, web server logs, application logs.
- Cloud: audit trails from your cloud platforms.
- Export copies to a safe location, and increase retention where possible.
Other artefacts
Keep ransom notes, screenshots of error messages, malicious emails with full headers, suspicious files (do not open them), and any messages from the attacker. Record wallet addresses or contact details they provide. Store copies on a clean system with restricted access.
Keep a timeline
Start a written log as soon as the incident is suspected: what was observed, when, by whom, and every action taken, with times. Include calls with the bank, insurer and authorities. A clear timeline helps responders, supports notification decisions and is often requested by insurers and regulators.
Chain of custody
If the incident could lead to legal action or law enforcement involvement, evidence handling matters. Record who collected each item, when, how and where it is stored, and limit access. Professional responders follow established forensic practices, including hashing images to prove they have not changed. Involving legal counsel early can also help protect investigation findings.
Preparing before an incident
Evidence preservation is much easier if you prepare. Increase log retention on key systems, especially identity and email, to at least 90 days and longer where licences allow. Centralise logs somewhere an attacker with admin access cannot easily delete them. Make sure endpoint tools can isolate devices remotely. Keep a short evidence checklist in your incident response plan, and agree in advance with your retainer provider and insurer how evidence will be collected and who will hold it.
Train IT staff and your managed service provider on the first steps, so their instinct in the first hour is to isolate and preserve rather than to wipe and rebuild.
Working with law enforcement
If you report to the FBI, local police or another agency, they may ask for specific evidence or for systems to be preserved. Keep the contact details and case reference in your incident log, and coordinate with your responders and counsel before handing anything over.
Balancing evidence and recovery
You do not have to choose between evidence and getting back to business. A common approach is to isolate and image affected systems quickly, then restore from clean backups onto rebuilt systems while analysis continues on the copies. Agree this with your responders and insurer.
Our incident response team collects and analyses evidence while helping you recover. See also our ransomware recovery playbook and BEC response guide.
Frequently asked questions
Should I turn off an infected computer?
What evidence is most time-sensitive after an incident?
Why preserve evidence if we just want to recover?
Can we restore systems while evidence is analysed?
Preserve evidence, then recover
Our responders capture evidence correctly and help you restore operations at the same time.

