Emergency guide · 12 Oct 2026

I Got Hacked - What to Do Right Now

If something is happening on your accounts or servers at this moment, start at the top of this page and work down. The order matters more than the speed: a few of these steps destroy the evidence you will need later if you do them in the wrong sequence.

The first fifteen minutes

Work through these in order. Each one is written so you can do it without waiting for anybody's approval, and none of them makes the situation worse if it turns out to be a false alarm.

1. Cut the network, not the power

If a specific machine is behaving badly, disconnect it from the network and leave it switched on. Unplug the cable, turn off Wi-Fi, and don't reboot. Powering off wipes memory, and memory is where the running malware, the open connections and sometimes the encryption keys live. Isolation stops the spread; shutdown destroys the explanation.

2. Change the password that matters most, from a clean device

Your email account is the master key - almost every other account resets through it. Change that password first, and do it from a device you believe is clean: a phone on mobile data is usually the safest thing in the room. Typing a new password into a compromised laptop just hands the attacker the new one too.

3. Revoke every active session

This is the step people skip, and it's the reason intrusions come back an hour after the password change. A password reset does not evict someone who already holds a valid session token. In Google, Microsoft 365 and most serious platforms, look for "sign out of all sessions" or "revoke access" in the security settings and use it. While you're there, check the app passwords and connected apps / OAuth grants lists and remove anything you don't recognise - those are credentials in their own right and they outlive a password change.

4. Check what was changed, not just what was accessed

Attackers configure for persistence before they do anything noisy. In a mailbox, look for forwarding rules, auto-delete rules, new recovery addresses and new phone numbers. On a server, look for new users, new SSH keys, new scheduled tasks or cron jobs, new services. These changes are how they keep access and stay quiet, and every one you find is also evidence. Write down what you find before you undo it.

5. Turn on multi-factor authentication

If MFA wasn't on, enable it now on email first, then on anything financial. If it was on and they still got in, that matters a great deal - it points to a stolen session token, an MFA-fatigue or prompt-bombing attack, SIM-swap on SMS codes, or a device enrolled by the attacker. Check the registered MFA devices and remove any you don't recognise.

6. If money moved, call the bank now

Not email - phone, on the fraud line. Recovery windows for transferred funds are measured in hours, and banks can sometimes recall or freeze a transfer inside that window. This step runs in parallel with everything else. Do it before the detailed report, before the cleanup, before you finish reading this page.

What not to do

Four mistakes do more damage than the original intrusion, and all four feel productive at the time.

  • Don't wipe and reinstall yet. It feels decisive, and it destroys every trace of how they got in - which means you rebuild straight back onto the same hole. Preserve first: a disk image or a snapshot, and a copy of the logs off the machine. Then rebuild.
  • Don't delete the ransom note, the phishing email or the defacement. Screenshot and export everything, with full email headers intact. It is the raw material for the report and sometimes identifies the strain or the crew.
  • Don't negotiate or pay in the first hour. There's usually a free decryptor, a backup, or a cheaper path, and none of them get cheaper because you waited twenty minutes to check. See ransomware first steps for the actual sequence.
  • Don't announce it publicly before you've contained it. A premature "we've been hacked, we're on it" tells the intruder you've noticed and triggers their cleanup - or their escalation. Tell the people who must be told; hold the public statement until containment is real.

Preserve the evidence while you still have it

Evidence has a short shelf life. Cloud audit logs roll off - many default retention windows are ninety days, some are thirty - and server logs rotate even faster. Ten minutes of collection now is worth more than a week of investigation later.

Collect, in rough priority order: authentication and sign-in logs covering the whole suspected window (not just the day you noticed); mail audit logs including rule and permission changes; the full headers of any phishing or extortion message; screenshots of ransom notes, defacements and unfamiliar admin users; a list of the configuration changes you found in step 4; and, for a compromised server, a snapshot or disk image taken before you touch anything else. Copy it all somewhere off the affected system - a different cloud account or an external drive, not a folder on the machine in question.

Then write a plain timeline: when you first noticed, what you were doing, and what changed around that moment. Facts with timestamps, not theories about who did it. That document is what makes a report, an insurance claim or an investigation actually work.

Find your scenario

Containment is generic; cleanup is not. Pick the one that matches what you're seeing:

Check your exposure while you wait

Three of these answer questions that come up in nearly every incident, and all three are free and need no sign-up:

  • Password breach checker - whether a password you use already appears in a public breach corpus. Checked by partial hash, so the password never leaves your browser.
  • Email breach check - which breaches an address has turned up in, and what that means for the accounts behind it.
  • Port scanner and the full perimeter scan - what your network answers to from the public internet, which is where most server intrusions begin.

The rest of the free tools cover hash identification and HTTP security headers.

When to bring in help

Most account takeovers are something you can handle yourself with the pages above. Bring someone in when the stakes change: money moved, other people's data was involved, a server or a domain controller is in scope, a regulator or insurer is now part of the story, or - the clearest signal - you cleaned it up and it came back. A recurrence almost always means the original entry point was never found.

What that work looks like: containment first, then a real answer to how they got in, then the remediation steps that close it, and a written report you can hand to an insurer, a client or a board. If the incident exposed a wider problem, a penetration test is the follow-up that finds the rest of it before someone else does - an external and internal network assessment for server-side intrusions, Active Directory when a Windows domain is involved, or assumed-breach and ransomware readiness if the question is how far an intruder could have got.

I handle incident response and post-incident testing remotely, worldwide, as a solo consultant - which means you talk to the person doing the work. Get in touch or book a call below; if it's urgent, say so in the first line and I'll prioritise it.

Immediate questions

Disconnect it from the network; don't power it off if you can avoid it. Pulling the plug destroys everything held in memory - running processes, open network connections, decryption keys that only exist while the machine is on - and that is often the only evidence of how the intrusion worked. Unplug the Ethernet cable, switch off Wi-Fi, and leave the machine running. The exception is active destruction: if you can see files being encrypted or deleted in front of you, stopping it beats preserving it.

Often yes, and the deadlines are short. If other people's personal data was involved and you fall under GDPR, that's a 72-hour notification to your supervisory authority. Many jurisdictions have equivalent rules, payment-card incidents bring PCI DSS obligations, and regulated firms usually have sector-specific reporting with tighter clocks. Your insurer may also require notice within a fixed window or the policy won't pay. Ask counsel early - the question is almost never whether to notify but who and by when.

Only if the compromise was a single account and nothing else was touched. Password changes do nothing about an active session token, an app password, an OAuth grant, a mail-forwarding rule, or a backdoor on a server - all of which survive a password reset. That's why revoking sessions and auditing what was changed matters as much as the new password. On a server compromise, assume the attacker left a way back in and go looking for it.

You usually can't tell by looking at the symptoms - most intrusions are quiet by design. The reliable signals are in the logs: authentication events from unfamiliar locations, new accounts or privilege grants, scheduled tasks and services you didn't create, outbound connections from servers that have no business initiating them, and configuration changes with timestamps you can't account for. If you have no logging, that is itself the finding, and it's why the first engagement after an incident usually starts with instrumentation.

It depends on what you'd lose by getting it wrong. If this is one compromised mailbox with no money moved and no client data in it, the guides here are enough. Bring someone in when any of these are true: money moved, other people's data was exposed, a server or domain controller is involved, you're facing a regulator or an insurer, or you've cleaned up once and it came back. That last one is the clearest signal of all - a recurrence means the entry point is still open.

Dealing with a live incident?

Remote incident response, worldwide. Containment first, then the full picture of how they got in.

Contact