Skip to content

What to Do When a Malware Attachment Arrives by Email

A practical plan for the first hour after a suspicious or infected attachment reaches your business: contain, check, clean up, tell the right people and reduce the chance of a repeat.

10 min readUpdated Nov 22, 2026By XPASS Editorial Team

What to Do When a Malware Attachment Arrives by Email

Sooner or later, an email with a suspicious attachment lands in somebody's inbox. It may be an invoice nobody expected, a "scanned document" from an unknown sender, or a reply to a conversation that never happened. Most of these never do harm because the recipient does not open them or because a filter caught them first. The cases that matter are the ones where someone clicks. This guide gives you a calm, ordered response plan for the first hour and the days after, so that panic does not make the situation worse. It is written for small and medium businesses without a dedicated security team, and it assumes you cooperate with your IT provider or mail administrator.

Recognising a risky attachment

You cannot always tell a malicious attachment by looking at it, but several signals should slow you down. Official guidance such as CISA's advice on recognising and reporting phishing stresses that urgency, surprise and requests to act quickly are classic warning signs.

Treat an attachment with extra suspicion if any of these apply:

  • You did not expect it, or it does not match anything you were working on.
  • The sender is unfamiliar, or the display name looks right but the real address does not.
  • The message creates pressure: an overdue payment, a legal notice, a delivery problem.
  • The file type is unusual for the context, such as an executable, a script, a shortcut or an archive inside an archive.
  • A document asks you to "enable editing" or "enable content" before it will show anything.
  • The message is vague, generic or oddly worded, or it quotes a previous conversation that you do not recall.
  • A password is included in the message body to open an attached archive, which prevents some scanners from looking inside.

None of these proves anything by itself. They are reasons to stop and verify before you act.

If you have not opened it

The best outcome is also the simplest. If you suspect an attachment, follow these steps:

  1. Do not open, preview or download it. Some programs preview files automatically, so also avoid clicking into the message if your policy says to report it unread.
  2. Do not reply or click any links in the message.
  3. Report it. Send it to your IT contact or mail administrator using whatever method your organisation has chosen, such as a report button or a dedicated address.
  4. Keep it as evidence until told otherwise. The headers and the original file help investigators understand the campaign.
  5. Verify through another channel if the sender appears to be someone you know. A short call to a number you already have is better than replying.
  6. Delete or quarantine the message once the administrator tells you to.

If the message reached several people, ask your administrator to search all mailboxes and remove copies at once, rather than leaving it to each person.

If you have opened it

If the file was opened, speed and calm both matter. The goal is containment, not investigation.

  1. Disconnect the device from the network. Unplug the cable or turn off Wi-Fi. Do not necessarily shut the computer down unless your IT contact tells you to, because some evidence is held in memory.
  2. Stop using the device. Do not keep working, do not sign in to new accounts and do not plug in storage drives.
  3. Tell your IT contact immediately. Give them the time, the sender, the subject, the file name and what happened when you opened it. Honesty matters here; people who report quickly make recovery easier.
  4. Do not try to clean it up alone. Deleting files or running random tools can destroy evidence or make things worse.
  5. Use a different, clean device to change passwords for accounts that were signed in on the affected machine, starting with email and anything financial. Where possible, turn on multi-factor authentication, which CISA explains as more than a password.
  6. Watch for follow-up signs. Unexpected pop-ups, slow performance, unknown programs, mail rules you did not create or password reset messages for accounts you did not touch should all be reported.

If the attachment asked for credentials, payment or a login, treat those accounts as exposed even if the device appears normal.

What your administrator should check

Your IT provider or mail administrator will typically work through a checklist. Understanding it helps you cooperate effectively.

Step Purpose
Isolate the affected device Stop any spread inside the network
Identify the message and sender Find out who else received it
Search and remove copies from other mailboxes Prevent further opens
Scan the device with up-to-date security tools Look for known malicious files
Review sign-in logs and mail rules Detect account takeover or forwarding
Reset credentials and sessions Cut off an attacker who has a password
Check backups before restoring Make sure the backup is clean and recent enough
Document the timeline Support later review and any required notifications

If the incident involved personal data, your business may have legal duties to notify regulators or affected people. Those duties differ by country, so ask a qualified adviser rather than guessing.

Cleaning up and recovering

Recovery is rarely just deleting a file. Depending on what happened, your options may include:

  • Rebuilding the device from a known-good image, which is often safer than trying to repair a machine that ran unknown code.
  • Restoring data from backup after confirming the backup predates the infection. A backup that already contains malware only restores the problem.
  • Rotating credentials for the user and for shared accounts used on that device.
  • Reviewing mailbox rules and forwarding because attackers sometimes hide copies of mail in rules.
  • Informing contacts if the account sent messages on behalf of the user, so that others do not open them.

A plain example: an accounts clerk receives an "invoice" attachment from an unknown supplier and opens it. A pop-up asks to enable content, which she does. Realising something is wrong, she unplugs the network cable and phones the IT provider. The provider isolates the laptop, finds the same message in three other mailboxes and removes them, checks sign-in logs, resets the clerk's password and rebuilds the laptop. Because she reported within minutes, nothing else was affected.

Reducing the chance of a repeat

After the immediate response, spend a little time on prevention. A layered approach works better than any single control.

  1. Filter mail before it reaches users. A filtering layer screens incoming messages for malware and suspicious attachments. If you are weighing options, see how per-domain pricing works for filtering services so you can compare offers fairly.
  2. Train people. Short, repeated, practical training works better than an annual lecture. The related guide on stopping staff from clicking phishing links covers how to start.
  3. Keep systems up to date. Operating systems, browsers and office software should receive security updates.
  4. Limit permissions. Users who do not need administrator rights should not have them, so a single click causes less damage.
  5. Use multi-factor authentication on email and critical accounts.
  6. Back up and test restores. A backup you have never restored is a hope, not a plan.
  7. Keep a record of mail. An archive can help you trace who received a message and when, as explained in email archiving explained.

File types and what makes them risky

Not every attachment carries the same level of risk, and knowing the general pattern helps you decide how cautious to be. The table below is a rough guide, not a safe-list; any file type can be abused.

Type of file Why it deserves care
Executables and installers They run code directly when opened
Scripts and shortcuts Small files that start other programs or download more content
Office documents with macros Embedded automation can run commands once content is enabled
Compressed archives They can hide other files and may be password-protected to avoid scanning
PDF files Usually carry links or forms that lead to fake login pages rather than code
Disk images and unusual containers Sometimes used to get around simple filtering
HTML attachments Can display a fake login page locally and send what you type to an attacker

Two patterns are worth remembering. First, many attacks rely on you taking an extra action, such as enabling editing, clicking a link inside a document or typing a password into a form. If a file asks for that action before it shows anything useful, stop. Second, an attachment with a familiar name and a double extension, for example a document name followed by another extension, can hide its real type depending on how your system displays file names. Ask your administrator whether file extensions are shown by default on company devices.

A short checklist to keep near your desk

A printed or pinned checklist helps when you are stressed. Adapt this one to your organisation.

  1. Stop. Do not open or forward the file.
  2. If it is already open, disconnect from the network.
  3. Call or message the person responsible for IT, using the contact details you have saved in advance.
  4. Write down the time, sender, subject and what you did.
  5. Change passwords from another device if you entered any credentials.
  6. Wait for instructions before deleting anything or restarting.

Keep the contact details somewhere you can reach even if your own computer is unusable, such as on paper or on your phone.

Limits and what to watch for

  • No filter catches everything. New campaigns can pass unnoticed for a short time. Filtering lowers the odds; it does not remove them.
  • Antivirus is not proof of safety. A clean scan result does not prove a file is harmless, especially for newly created malware.
  • Trusted senders can be compromised. An attachment from a real colleague or supplier may come from a hijacked account. Verify unusual requests regardless of who appears to send them.
  • Do not open suspicious files to "see what happens". Curiosity is the common factor in many incidents.
  • Sharing a sample carelessly spreads it. If you must pass a suspicious file to a colleague, follow your administrator's process rather than forwarding it casually.
  • Avoid blame. If staff fear punishment, they will hide mistakes, and hidden mistakes cost more. Make reporting easy and safe.
  • Write down the plan before you need it. Include who to call, how to isolate a device and where credentials can be reset from.

Summary

When a suspicious attachment arrives, do not open it, report it and keep it as evidence. If someone has opened it, disconnect the device, stop using it, tell your IT contact straight away and change passwords from a clean device. Your administrator can then isolate, search for other copies, review logs and reset credentials before recovery from a verified backup or a rebuilt system. Afterwards, strengthen the layers: filtering, staff training, updates, limited permissions, multi-factor authentication and tested backups. No single measure is perfect, but together they reduce both the chance and the cost of an incident. For more on adding filtering to your domain, see the Email Security page, and for mailboxes you can compare the options on the Business Email page.

Frequently asked questions

What should I do if I have not opened the attachment?

Do not open it. Report the message to your IT contact or mail administrator, keep it as evidence, and then delete or quarantine it as instructed. Do not forward it to colleagues as a warning unless your process says how to do so safely.

What if I already opened it?

Disconnect the device from the network, stop using it, tell your IT contact immediately and do not try to clean it up alone. Change passwords from a different, clean device and review any accounts that were signed in on the affected one.

Should I reply to the sender?

No. The sender address may be forged or the sending account may itself be compromised. Contact the apparent sender through a separate channel you already trust, such as a known phone number, to check whether they really sent it.

How can I lower the chance of this happening again?

Use layered controls: email filtering, up-to-date devices, limited permissions, multi-factor authentication, regular backups and staff awareness. No single control removes the risk entirely.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Protect your email and stop spoofing

Spam filtering and DMARC monitoring for your domain.

See email security

Keep reading

Business Email Guides

What Does SpamExperts Per-Domain Pricing Mean?

Per-domain pricing ties an email security service to each protected domain rather than each mailbox. See what that means, how to count your domains, and what to check.

9 min read

Business Email Guides

How to Stop Staff Clicking Phishing Links: Where to Start

People will always click something eventually. Here is a practical way to start: filter first, train in short bursts, make reporting easy, and measure what changes.

10 min read

Business Email Guides

Email Archiving Explained: Which Businesses Need It

Email archiving keeps a searchable, protected copy of business messages for the long term. See how it differs from backup, which businesses need it, and what to plan first.

10 min read