Guides

Check email attachments before opening them

Verify an unexpected attachment, inspect its file type without running it, understand archive and Office warnings, and choose a response if you already opened it.

An unexpected attachment is a request to do something with a file, not just a question about its sender name. Before downloading or opening it, establish why you need it, whether the sender intended to send it, and whether its format fits the task. A familiar contact can have an exposed account, and a convincing invoice can still ask you to run something unrelated to viewing a bill.

This guide covers everyday email attachments on Windows and Mac. The Office controls described below have platform and version limits. If the message itself may be deceptive, use email verification for independent confirmation, sender details, and link-analysis limits. On a work or school device, use the organization’s reporting channel and leave blocked items blocked while IT reviews them.

Confirm the purpose without using the message’s route

Ask whether this file was expected now, from this person, for this transaction. Confirm an unexpected attachment through a number, app, or conversation route you already know. Replying to the same message can reach whoever controls that mailbox, so it is not independent confirmation by itself.

For a bank, delivery service, employer, or public agency, open the known app or website independently and look for the relevant document or request there. If the message demands an urgent payment, a password, or a new program to read the file, verify that specific demand before interacting with the attachment.

Receiving a message, viewing it, saving a file, opening a document, and executing code are different exposure levels. Do not run a suspicious item just to find out which application opens it. A mail preview may process content; it is not a universal safety boundary for every file or client.

Inspect the file name and type while it stays closed

If you already saved the file, keep it closed and inspect the full filename. Microsoft’s file-extension guide explains showing the extension in File Explorer. A double extension such as statement.pdf.exe should not be treated as an ordinary PDF. Changing the name does not remove executable behavior or convert the format.

What the attachment asks you to handleQuestion before openingSafer decision when uncertain
A document or PDF you expectedDid the sender confirm the exact document through a known route?Obtain it through an established portal or trusted process
A program, script, shortcut, or disk imageWhy is code needed for this message’s purpose?Leave it unopened and verify the request
A password-protected archiveWhy was encryption used, and what is supposed to be inside?Confirm the purpose without extracting or running contents
A document requesting macros or relaxed securityIs that active feature actually necessary and approved?Stop and use a supported alternative or IT review
A link disguised as a shared documentWhich service and destination will it use?Treat it as a link-verification task, not a safe attached file

File types alone do not certify safety. An ordinary document can contain active content or exploit a vulnerable viewer, while a legitimate business workflow can require a script. The question is whether you can establish this particular file’s need, origin, and appropriate handling.

Leave mail-provider blocks in place

Gmail’s blocked-file documentation covers certain executable/script types, harmful macro documents, and password-protected archives with archived content. Outlook’s attachment guidance likewise describes blocked types and differences between its supported clients. These controls reduce exposure; successful delivery is not a clean-file certificate.

Do not rename an attachment, ask for a differently packaged copy, or adjust security settings merely to get around a block. A real business need can be handled through an approved transfer method after the sender and contents have been established. On managed accounts, the administrator may determine that process.

An archive password is not proof of a legitimate sender. It can prevent some tools from inspecting the contents. Do not assume an encrypted archive is more trustworthy than the same material sent openly, or that every scanner can inspect it without the password. For browser-delivered files, the download guide explains Chrome’s different local and uploaded archive checks.

Understand document protections before clicking past them

Microsoft’s Protected View explanation describes a restricted, generally read-only mode for documents from potentially unsafe locations. It is a risk-reduction control, not a guarantee about the document. An Enable Editing prompt is a decision to leave those restrictions, not a required first step for every file you receive.

Macros are a separate decision. Microsoft documents blocking internet-origin VBA macros by default in affected Windows Office applications. Version, organizational policy, trusted locations/publishers, and earlier trust decisions can affect the outcome. The documented change does not apply universally to Office on Mac, mobile devices, or the web.

Do not disable Protected View, unblock a downloaded file, trust a whole folder, or enable macros because a document says that is needed to reveal its contents. First verify the task and use the appropriate administrator or software support route. Keeping the viewer and operating system current matters even when you do not enable active features.

Use checks without creating a new disclosure

For a file already saved, a local security scan through your installed product may help answer a defined question. Record the product’s result and action, without interpreting zero detections as permission to open an otherwise unexplained file.

On Windows, you can compute a local identifier with PowerShell if you need to compare an attachment with a confirmed copy:

Get-FileHash -LiteralPath 'C:\Users\YourName\Downloads\attachment.pdf' -Algorithm SHA256

Get-FileHash reads the file’s contents without running it. The hash is useful for identifying those bytes; it is not an authenticity or safety result. Only compare it with evidence whose source you have independently established.

Do not upload private attachments or complete email messages to a public reputation service. A hash lookup avoids uploading the file itself but still discloses a query to that service. VirusTotal search documentation also warns that web indicators queried or submitted can be scanned and enter its community dataset. Keep account-bearing links and confidential documents out of casual public checks.

Browser Guard, urlscan.io, and website reputation tools can help with certain link questions described in the phishing guide. A website report does not assess every attachment, verify a sender’s intent, or make an unknown download appropriate to open.

Choose the response that matches what already happened

If the item is unopened or was blocked, leave it that way while you verify or report the message. Do not restore a quarantined attachment just to examine it. Save the relevant message details through the mail application’s supported process if IT or the service needs a report.

If you opened a document, note which application was used and whether you enabled editing, macros, a link, or another permission. Close it and pause further interaction. Opening alone does not establish infection, but the extra actions affect the next step.

If you executed a program, script, or fake repair command, use the beginner flow and the platform-appropriate investigation. For Windows, scanning guidance explains scope and completed actions. If you entered credentials or approved a sign-in, start account recovery from a trusted device even if a scan reports nothing. Ongoing encryption or remote control needs urgent incident help and disconnected backup storage.

Once the immediate issue is addressed, use safer downloads for ordinary software and safer browsing for the next permission or message decision. This guide is based on official documentation. No attachment was opened, executed, or submitted to a service to produce it.

Sources & documentation

Sources checked on 6 Oct 2026. Documentation research does not establish independent testing.

MalwareCleanupTools

Guides based on official documentation. About our content · Corrections policy