Dangerous Email Attachments and File Extensions
Recognise risky attachment types, uncover disguised file extensions and check unexpected accounting files before opening them.

Xian Hui
12 November 2026 · 8 min read

In brief
Which email attachment types should accountants treat as risky?
Treat programs, scripts, shortcuts and disk images as high risk. Web pages, archives and macro-enabled Office files also need care, even when Outlook delivers them. Reveal the full filename, check the final extension and verify unexpected files through a known contact route. Familiar document formats and icons do not prove safety.
What you'll learn
- Identify attachment types that can run code or conceal other files
- Reveal file extensions and recognise common filename disguises
- Assess familiar documents without relying on their names or icons
- Verify and report unexpected attachments through established channels
Dangerous Email Attachments and File Extensions
An accounts executive at a Singapore accounting practice is matching receipts when a remittance advice arrives. The attachment has a PDF icon and the name begins with a familiar client's name. Before opening it, she checks the complete filename: Remittance.pdf.exe. What looked like a document is a program. She pauses the reconciliation and asks the practice's designated reviewer to assess the message.
Client schedules, remittance advices, invoices and payroll files arrive by email daily. Attackers name attachments to match that work. Check the complete filename, the expected format and the reason for receiving it before opening an attachment. A familiar label is only a starting point.
What does a file extension tell you?
A file extension is the part after the last dot in a filename. In ClientSchedule.xlsx, the extension is .xlsx. It helps the computer decide which program opens the file and indicates what kind of behaviour to expect, such as displaying a document or running instructions.
The final extension matters when a name contains several dots:
Invoice.pdf Final extension: .pdf
Invoice.pdf.exe Final extension: .exe
Payroll.xlsx.lnk Final extension: .lnk
Statement.htm Final extension: .htmAn extension is a clue, not a guarantee. A plausible name does not establish who sent the file or whether its contents are trustworthy. Read the end of the name before accepting what the beginning suggests.
How can you make filename extensions visible?
Windows hides known extensions by default in File Explorer. As a result, Invoice.pdf.exe can appear as Invoice.pdf. Make extensions visible before you need to assess a doubtful file:
- In Windows 11 File Explorer, use View > Show > File name extensions.
- In Windows 10, use the View tab, then tick File name extensions.
- On a Mac, use Finder > Settings > Advanced > Show all filename extensions.
These settings concern filenames shown in File Explorer or Finder. Do not download a suspicious attachment just to inspect its name. If the email view truncates the name or leaves the type unclear, stop and ask the designated reviewer.
How do attackers disguise dangerous email attachments?
Double extensions exploit a quick glance. In Remittance.pdf.exe, the familiar .pdf sits before the real extension. Other tricks include inserting many spaces before the final extension so it falls outside the visible area, copying a PDF or Excel icon, and using long names whose opening words look routine.
An icon is not proof of file type. Nor does a name such as ClientSchedule_Final_Approved establish approval. Check the whole name, especially its ending, and compare the type with what the sender normally supplies. A statement arriving as .htm or .zip deserves a pause even when the sender's name is familiar.
What does a disguised statement look like in a chat app?
The same trick arrives in messaging apps. This message was received on WhatsApp from an account using a firm's name. The firm's name, logo and handle are replaced.
- A statement does not need to be zipped. A Statement of Account is normally a PDF. A ZIP archive named only with a date hides what is inside it.
- "Open it on a computer" is the giveaway. Phones cannot run most harmful files. Asking you to move the file to a computer moves it to where it can do damage.
- It asks you to pass it on. Forwarding it to the Finance Manager spreads the file to someone with payment authority.
- A firm's name in a chat proves nothing. Anyone can set up a business account with a firm's name and logo.
Do not open, save or forward the file. If you deal with the firm, contact them on a number or email address you already hold and ask whether they sent it. Report the message to your own practice's security contact.
Which attachment types need particular care?
Use this table as a practical attachment security reference. The action depends on both the file type and whether the file was expected.
| File type | Example extensions | Why it is risky | What to do |
|---|---|---|---|
| Programs and scripts | .exe, .bat, .cmd, .com, .scr, .pif, .msi, .js, .jse, .vbs, .vbe, .wsf, .ps1, .hta | Can run code, execute commands or install software. | Do not run an emailed program to read an invoice. Ask the designated reviewer. |
| Shortcuts | .lnk, .url | Can launch a program or direct you to an unsafe destination. | Do not treat a shortcut as the document its name suggests. Verify independently. |
| Disk images | .iso, .img, .vhd, .vhdx | Can contain programs and other dangerous files inside a disk-like container. | Do not open or mount an unexpected disk image. Escalate it. |
| Web pages | .htm, .html, .shtml | Can display an imitation sign-in page and request credentials. | Do not sign in through an attachment. See How Fake Outlook Attachments Steal Credentials. |
| Archives | .zip, .rar, .7z | Can conceal blocked file types, with encrypted contents unavailable to scanning without the password. | Verify unexpected archives before opening or extracting them. |
| Macro-enabled Office files | .docm, .xlsm, .pptm | Can contain macros, which are instructions that automate tasks and can run harmful code. | Do not enable macros on an unexpected file. Confirm its purpose independently. |
| Ordinary documents | .pdf, .docx, .xlsx | Generally lower risk, but can carry links to scam sites or instructions to enable editing or content. | Check the sender and purpose. Do not follow unexpected links or prompts. |
Also treat an unexpected .svg with care. This image format can contain script, so being labelled an image does not make it harmless. For the wider handling process, see Handling Suspicious Attachments and Malicious Downloads.
Why can risky files still arrive through Outlook?
Microsoft's blocked attachment guidance explains: "One of the most common ways of transmitting computer viruses is through file attachments." Classic Outlook blocks many dangerous types by default, including the programs, scripts, shortcuts and disk images in the table. Its list also includes .reg, .jar and .chm, which can change settings or contain executable or active content.
However, .htm, .html, .shtml, .zip, .rar, .7z, .docm, .xlsm, .pptm and .svg are not on that default blocked list. Your practice may apply additional controls, but delivery alone does not establish safety.
An archive can hide any of the blocked types inside. Email security cannot inspect encrypted archive contents without the password. Attackers therefore put passwords in the email body to encourage recipients to unlock the files themselves. A supplied password does not verify the sender or the contents.
What should you do when the attachment is unexpected?
Use the same pause for an expected type from an unexpected sender and an unexpected type from a known sender. For example, a routine payroll workbook from an unfamiliar address still needs checking.
- Leave the file unopened. Do not extract an archive or open the attachment to find out what it is.
- Do not enable editing, content or macros. An unexpected file's instructions are not permission to relax a control.
- Verify through a known route. Call the contact already on file and confirm the exact filename, format and purpose. Follow How to Verify an Unexpected Request Safely.
- Ask the designated reviewer. Give them the message details and follow the practice's approved review process.
- Report the concern. Use the established channel for reporting and containing cyber incidents. Say whether you received, downloaded or opened the file, enabled content or entered credentials.
Do not forward the attachment around the team for opinions. Preserve the original message for the reviewer and follow their instructions. You do not need to prove that a file is malicious before reporting it.
Key takeaways
- Reveal filename extensions and check the part after the last dot.
- Treat double extensions, copied icons and truncated names as reasons to pause.
- Remember that Outlook can deliver risky web pages, archives and macro-enabled files.
- Verify unexpected files independently, avoid enabling content and report concerns promptly.
Last source check: 12 November 2026.
Next in the course: How Fake Outlook Attachments Steal Credentials
Sources
Frequently asked questions
This information has been prepared for general informational purposes only and is not intended to be relied upon as accounting, tax, or other professional advice.


