You opened an attachment, and only afterwards did something feel wrong: the sender, the tone of the message, a blank document asking you to “enable content”. The question that follows is a simple one: what do I do now?
First of all, take a breath. This happens to careful, well-informed people, because these messages are built precisely to look ordinary. Opening a suspicious attachment does not always mean your device is infected, but treating it as though it were is the safest way to limit any damage. What matters is acting early and in the right order. Early, though, does not mean in a rush.
This post organises the countermeasures into four moments: prevent it from happening again, detect the signs of a problem, respond in the first few minutes, and recover a stable situation. It is the practical side of the recommendation on not opening unknown attachments: an unexpected attachment is opened only once you know who sent it and why. If it has just happened, you can go straight to section 3.
Before you start: why the order matters
There are several things to do, but they do not all carry the same weight: some stop the damage, others help you work out whether there was any, and others keep you from falling for it again.
The order of priority that works in most cases is this one:
- disconnect the device from the network — it cuts off communication with the outside;
- do not type any passwords on that device until it has been checked;
- run a full scan with the protection built into the system;
- change your passwords from another device, starting with your email;
- let the sender and your contacts know, through a channel other than email;
- check your accounts and payments;
- keep the email so you can report it, without reopening the attachment;
- ask for help from someone competent, if something still does not add up.
Working out straight away which case you are in helps:
- you saw the attachment but did not open it: leave it closed, report the message and delete it; usually nothing else is needed;
- you opened it, it was an ordinary document and you did not allow anything: run a full scan anyway and keep an eye on the device over the following days;
- you opened it and enabled content, started a program or typed in a password: follow all the steps, in the order given.
1. Prevention: reducing the risk before anything happens
This part is for next time. If you are dealing with something that has already happened, come back to it with a clear head, once things are settled.
Make file extensions visible
What to do. The extension is the last part of a file name, after the dot, and it tells you what type of file it is: .pdf, .jpg, .docx. Many systems hide it by default. In the view options of your file manager, turn on the setting that always shows extensions.
Why it counts. A file called invoice.pdf may really be called invoice.pdf.exe, which means it is a program that runs. With extensions visible, the trick is easy to spot.
Keep protected view switched on
What to do. Many word processors and spreadsheet programs open documents that came from the internet in protected view: a read-only mode that blocks active content. Leave it on, and do not press “Enable Editing” or “Enable Content” on a document you were not expecting.
Don’t forget. Macros are small programs built into a document to automate tasks. They are useful at work, but they are also a common way to let a harmful program in. An unexpected document asking you to turn them on is a sign to take seriously. How these checks work, and where they stop, is explained in the post on how attachment scanning works.
Keep your system and programs up to date
What to do. Turn on automatic updates for your operating system, your browser and the programs you open documents with. Many harmful attachments exploit flaws that have already been fixed. How to set this up without effort is in the recommendation on keeping your software up to date.
Make regular backups
What to do. Keep a copy of your important files on an external drive that you connect only while the backup is running. If an attachment were ever to lock or encrypt your files, a disconnected copy lets you get them back. How to organise it is explained in the recommendation on backing up photos and videos.
2. Detection: noticing early
Notice what happened when you opened it
What to watch for. A blank or unreadable document asking you to enable something, a window that opens and closes on its own, a file that does not open at all, a request for your username and password “to view the document”. These are signs that the attachment was not what it seemed. The full list is in the post on the signs of a dangerous attachment.
Pay attention to how the device behaves
What to watch for. Sudden slowdowns, programs you did not install, changed settings, files with unusual names or extensions. None of these signs is proof on its own: straight after a suspicious attachment, they deserve attention. If you opened the attachment on your phone, the specific signs are described in the recommendation on spotting the signs of malware on your phone.
Be wary of warnings that ask you to call or pay
What to do. If, after opening it, a window appears announcing “viruses detected” and invites you to call a number or download a program, do not follow it. Genuine warnings from your system’s protection do not ask for payments or phone calls. This kind of fake alarm is explained in the resource on scareware and fake virus warnings.
Check the alerts from your accounts
What to watch for. Sign-ins from devices you do not recognise, password resets you did not request, contacts receiving strange messages from you. That last case has its own recommendation: messages sent in your name.
3. Response: what to do in the first few minutes
Here, more than anywhere else, the order matters.
Disconnect the device from the network
What to do. Turn off Wi-Fi, unplug the network cable if there is one, and on a phone switch on aeroplane mode. Unplug external drives and USB sticks too. There is no need to rush to switch the device off: taking it off the network is the step that counts.
Why it counts. A harmful program, often called malware, usually needs the network to send data out, download further components or reach other devices at home or in the office. Disconnecting it interrupts most of these steps.
If it is a work device. Tell your IT support straight away and follow their instructions, including on whether or not to switch it off. The sooner they hear about it, the easier it is to protect your colleagues too.
Do not type passwords on that device
What to do. Until the device has been checked, do not sign in to your email, your bank or any other service from it. If the attachment took you to a page asking for your sign-in details and you entered them, treat it as a stolen password and move on to the password step without waiting.
Why it counts. Some malware records what you type on the keyboard: this is known as a keylogger. A new password typed on an infected device can end up in the same hands as the old one.
Run a full scan
What to do. Start a full scan, not the quick one, with the protection built into your operating system or with the security program you already use. If the tool asks to update itself, reconnect only for as long as that takes and disconnect again before starting the scan. Follow its suggestions on which files to quarantine or delete.
A word of caution. A clean scan is good news, not a guarantee. If the signs you noticed carry on, the device should be checked by someone competent.
Change your passwords from another device
What to do. From a device that did not open the attachment, change the password for your main email account first, then those for your bank and payment services, then those saved in the browser of the affected device. Where it exists, use “sign out of all devices” after the change, and turn on multi-factor authentication, meaning a second check on top of the password, such as a code on your phone.
Why email comes first. Almost every other account can be reset from your inbox: as long as someone else can reach it, everything else can be reopened.

Cyber Security for All: Online Security, Passwords
On the page that opens, choose:
- The best available terms
- Valid until 25 November, for a limited number of enrolments
- Lifetime access to the content, updates included
4. Recovery: getting back to a stable state
Let the sender and your contacts know
What to do. If the attachment came from a person or a company you know, let them know through a channel other than email: their account may have been taken over and used to write to others too. If you think messages may have gone out from your own account, let your contacts know with a short, clear message and no attachments.
Check your accounts and payments
What to check. Bank activity, cards, subscriptions, online shops with saved payment methods. If you entered bank details, or suspect they may have been read, contact your bank on its official number, the one on the back of your card or in its app, never through contact details received by email. The rules for recognising emails pretending to be your bank still apply in the following days, when attempts can multiply.
Keep the email and report it
What to do. Do not forward the message to others “for an opinion” and do not reopen the attachment. Move it to a folder, note the day and time you opened it, and use your email service’s reporting feature to flag it as phishing. Phishing is a fake message built to look genuine and get you to do something you otherwise would not. If you have lost money, the email is also evidence for a report to the police or to your country’s official reporting service for online fraud.
Ask the right person for help
What to do. If the scan finds something it cannot remove, if the signs carry on, or if your files appear to be locked, turn to a technician you trust or to the manufacturer’s support, reached through its official website. In the more serious cases, the system is restored to its original state and the files are brought back from a clean backup.
A word of caution. There are no legitimate services that contact you first offering to “clean up your computer” or “recover your files” for a fee. If your files have been encrypted with a ransom demand, paying does not guarantee you will get them back: this is explained in the post on ransomware and personal files.
Build on your good habits
What to do. Close the loop with the habits from section 1 and one simple rule: an unexpected attachment is checked with the sender, through another channel, before you open it.
A plan in three sessions
If the list feels long, here is how to spread it out.
Session 1 — Straight away (15 minutes)
- Disconnect the device from the network and unplug external drives and USB sticks.
- Do not sign in to any service from that device.
- Start the full scan.
- If it is a work device, tell your IT support.
With this one session alone, you have cut off the main routes by which a harmful attachment can do further damage.
Session 2 — The same day (20 minutes)
- From another device, change your email password and sign out of open sessions.
- Change the passwords for your bank, payment services and anything saved in the browser.
- Let the sender and, if needed, your contacts know through another channel.
- Report the email as phishing and note the day and time.
Session 3 — Over the following days (20 minutes)
- Check your bank activity, sign-in alerts and the device’s behaviour again.
- Make file extensions visible and check that protected view is on.
- Turn on automatic updates and multi-factor authentication for your email.
- Set up a backup on a drive you keep disconnected.
In less than an hour, split into three moments, the situation is under control.
Frequent mistakes when fixing things
Even people who react straight away often stumble at the same points.
- Checking your email or bank from the same device. It is the most instinctive move, and it is exactly the one that exposes your passwords.
- Reopening the attachment “to take a closer look”. It adds no information and repeats the risk.
- Trusting a warning that asks you to call a number. Your system’s real protection does not ask for phone calls or payments.
- Treating the matter as closed after a clean scan. If the signs carry on, a more thorough check is needed.
- Keeping quiet out of embarrassment, especially at work. The time lost in doubt is the time needed to protect other people too.
Operational checklist
Stage 1 — Stop the damage
- ☐ Device disconnected from the network, external drives and USB sticks unplugged
- ☐ No sign-ins to any service from the affected device
- ☐ IT support informed, if it is a work device
Stage 2 — Look for warning signs
- ☐ Full scan completed with the system’s protection
- ☐ Device behaviour watched over the following days
- ☐ Sign-in alerts and messages from contacts checked
Stage 3 — Contain and report
- ☐ Email password changed from another device, then bank and saved services
- ☐ Sender and contacts informed through a different channel
- ☐ Email kept and reported as phishing, with day and time noted
Stage 4 — Consolidate
- ☐ File extensions visible and protected view switched on
- ☐ Automatic updates on for the system and programs
- ☐ Recent backup on a drive kept disconnected
A short scenario
Lucy receives an email from the address of the managing agent for her block of flats: “Attached is the service charge statement, please check it by Friday”. She opens the compressed file, and inside is a document that looks blank and asks her to “enable content”. Lucy clicks, and nothing happens. It is precisely that nothing that makes her suspicious.
She does not reopen the file to try again. She turns off the laptop’s Wi-Fi and starts a full scan. Meanwhile, from her phone, she changes her email password, turns on the verification code and changes her online banking password. She calls the managing agent: they did not send her anything, and other residents have received the same email.
The scan finds a file and quarantines it. Lucy reports the email, keeps it and checks her bank activity over the following days. Twenty minutes, in the right order, and a phone call instead of a reply to the email.
How this connects to the Cyber Welfare Framework
| Pillar | What this content contributes |
|---|---|
| Skills | Knowing how to carry out a containment sequence in the right order, starting with the network |
| Awareness | Understanding why passwords are changed from another device, and why an attachment can arrive even from a known sender |
| Secure Behaviour | Turning visible extensions, protected view, updates and backups into habits |
Reference level: FL2 — Beginner. This is the level at which you know the main risks and confidently follow a few clear rules, even under pressure, without needing technical skills.
Conclusion
A suspicious attachment that has been opened is not dealt with in a single move, but with a short sequence: off the network, no passwords on that device, a scan, passwords changed elsewhere, the right people informed.
What to do right now. If you have never done it, open your file manager settings today and make file extensions visible. It takes a minute, and from tomorrow an .exe dressed up as an invoice can be recognised at a glance.
To see where you stand, the digital resilience self-assessment gives you a reference point.
Related content
- Not opening unknown attachments — the recommendation this belongs to
- How attachment scanning works — the tools that make these fixes sustainable
- Signs of a dangerous attachment — what to watch in order to notice in time
- Consequences of opening a malicious attachment — what you avoid by acting early
- Malware in email attachments — what you are protecting yourself against
Related resources
Short explainers from the Resources section, for anyone who wants to focus on a single aspect:
- How to Recognise Phishing When It Is Built to Be Convincing
- Scareware: The Warning That Is Itself the Attack
Start with the first step: the Cyber Welfare Programme guides you free of charge, one recommendation at a time.




