---
id: CP-320
slug: show-file-extensions-invoice-pdf-exe
lang: en
title: "Showing file extensions: unmasking invoice.pdf.exe"
description: A file named invoice.pdf can be a program. Showing extensions in Windows File Explorer reveals the file's real type.
canonical_url: https://startbrain.io/cyberpedia/en/articles/show-file-extensions-invoice-pdf-exe/
markdown_url: https://startbrain.io/cyberpedia/en/articles/show-file-extensions-invoice-pdf-exe.md
publisher: Brain (https://startbrain.io)
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
cite_as: "Brain, \"Showing file extensions: unmasking invoice.pdf.exe\", Cyberpedia, 2026. https://startbrain.io/cyberpedia/en/articles/show-file-extensions-invoice-pdf-exe/ (CC BY 4.0)"
wing: 5
theme: secure_devices
reflex: cr-050
schema: G5
updated: "2026-11-14"
translations:
  en: https://startbrain.io/cyberpedia/en/articles/show-file-extensions-invoice-pdf-exe/
  fr: https://startbrain.io/cyberpedia/fr/articles/afficher-extensions-fichiers-facture-pdf-exe/
  de: https://startbrain.io/cyberpedia/de/articles/dateiendungen-anzeigen-facture-pdf-exe/
  es: https://startbrain.io/cyberpedia/es/articles/mostrar-extensiones-archivo-factura-pdf-exe/
  it: https://startbrain.io/cyberpedia/it/articles/mostrare-estensioni-file-fattura-pdf-exe/
  nl: https://startbrain.io/cyberpedia/nl/articles/bestandsextensies-weergeven-factuur-pdf-exe/
  pl: https://startbrain.io/cyberpedia/pl/articles/wyswietlanie-rozszerzen-plikow-facture-pdf-exe/
  pt: https://startbrain.io/cyberpedia/pt/articles/mostrar-extensoes-ficheiros-fatura-pdf-exe/
  ja: https://startbrain.io/cyberpedia/ja/articles/show-file-extensions-invoice-pdf-exe/
sources:
  - "n": 1
    title: "Masquerading: Double File Extension, Sub-technique T1036.007 - Enterprise | MITRE ATT&CK®"
    publisher: MITRE ATT&CK
    url: https://attack.mitre.org/techniques/T1036/007/
    accessed: "2026-11-14"
  - "n": 2
    title: Common file name extensions in Windows | Microsoft Support
    publisher: Microsoft
    url: https://support.microsoft.com/en-us/windows/experience/storage-filemanagement/common-file-name-extensions-in-windows
    accessed: "2026-11-14"
  - "n": 3
    title: Malicious Email Attachments - Definition & Protection | Proofpoint US
    publisher: Proofpoint
    url: https://www.proofpoint.com/us/threat-reference/malicious-email-attachments
    published: "2021-02-18"
    accessed: "2026-11-14"
  - "n": 4
    title: "Phishing: Spearphishing Attachment, Sub-technique T1566.001 - Enterprise | MITRE ATT&CK®"
    publisher: MITRE ATT&CK
    url: https://attack.mitre.org/techniques/T1566/001/
    accessed: "2026-11-14"
  - "n": 5
    title: "User Execution: Malicious File, Sub-technique T1204.002 - Enterprise | MITRE ATT&CK®"
    publisher: MITRE ATT&CK
    url: https://attack.mitre.org/techniques/T1204/002/
    accessed: "2026-11-14"
  - "n": 6
    title: Threat actors leverage tax season to deploy tax-themed phishing campaigns | Microsoft Security Blog
    publisher: Microsoft
    url: https://www.microsoft.com/en-us/security/blog/2025/04/03/threat-actors-leverage-tax-season-to-deploy-tax-themed-phishing-campaigns/
    published: "2025-04-03"
    accessed: "2026-11-14"
---

# Showing file extensions: unmasking invoice.pdf.exe

A file called invoice.pdf is not necessarily a PDF. Its name may be invoice.pdf.exe, and if the display hides the end of the name, all you see is invoice.pdf. In this technique, which MITRE ATT&CK calls Double File Extension, the second suffix is the file's real type: it determines how the file opens and runs [1].

This page shows how to display extensions in Windows File Explorer and which signals to look for in an attachment.

## In 30 seconds

- Where it happens: in email attachments whose name imitates a document, for example Evil.txt.exe, which displays as Evil.txt [1].
- What the attacker wants: to make you open what looks like a harmless file but is executable code [1].
- The reflex: show file name extensions in File Explorer (View, Show, File name extensions) [2], then be wary of any .exe, .lnk, .scr or .hta where you expect a document [1].
- If it's already done: disconnect from the internet as soon as you suspect the attachment [3].

## Straight answers

### What is a double extension?

It is a file name that contains two suffixes. According to MITRE ATT&CK, a name such as File.txt.exe can display as File.txt in some views, while the second extension is the file's real type [1]. Common types, such as .txt, .doc, .jpg or .gif, serve as the first extension to look harmless. The extensions that MITRE ATT&CK lists among the dangerous ones, such as .exe, .lnk, .hta and .scr, often come second [1].

### Why doesn't Windows always show the real suffix?

MITRE ATT&CK states that the operating system may hide the real extension in the file explorer (the example given is explorer.exe) [1]. Among its protective measures, MITRE ATT&CK recommends turning off the Windows default setting that hides extensions for known file types [1].

### What is the extension for?

According to Microsoft, a Windows file name has two parts separated by a dot: the name, then an extension of three or four characters that defines the file type. In expenses.xlsx, expenses is the name and xlsx the extension [2]. The extension tells the computer which application can open the file and which icon to display [2].

### How do I show extensions?

Microsoft describes the steps for Windows 11 and Windows 10 [2]. They are detailed in the "What you do" section below.

### Which files are the most suspicious in an email?

Proofpoint lists executable files (.exe) and compressed folders (.zip, .rar, .7z) among the types attackers often use [3]. It adds that you should ask yourself why someone would send an .exe, a .scr or a .zip, unless the file was explicitly expected [3].

## How it works

A double extension often arrives by email. MITRE ATT&CK describes a sequence: the file is sent as an attachment (spearphishing attachment), then the user opens it, which gives the attacker an initial foothold [1]. A booby-trapped attachment can be an Office document, an executable, a PDF or an archive [4]. The text of the email usually gives a plausible reason to open the file [4].

To make an executable pass for a document, attackers often modify extensions and icons [4]. The icon alone therefore proves nothing. MITRE ATT&CK also notes that masking methods can include a familiar-looking file name [5].

MITRE ATT&CK gives examples of malware and threat actors that have used this technique:

- the Bazar loader used executable files with a double extension such as PreviewReport.DOC.exe [1];
- DarkGate disguises malicious LNK files as PDFs with the double extension .pdf.lnk [1];
- the Kimsuky group also disguised malicious LNK files as PDFs with .pdf.lnk [1].

## What you do

### Show extensions in Windows File Explorer

If you can't see extensions in File Explorer, Microsoft gives these steps [2]:

- type file explorer in the taskbar search box, then open File Explorer;
- in File Explorer, choose View, then Show, then File name extensions.

Microsoft's page also describes the Windows 10 variant: under View, in the Show/hide group, tick the file name extensions box [2].

### Read the full name before opening

Once extensions are displayed, read the end of the name. Proofpoint recommends being particularly wary of double extensions such as "report.pdf.exe", designed to make you believe a file is safe [3].

### Warning signs

- An .exe, .lnk, .scr or .hta extension where you expect a document. MITRE ATT&CK lists these extensions among those often considered dangerous [1].
- An icon that does not match the announced type: attackers manipulate icons so that an executable looks like a document [4].
- An unexpected sender or content, especially with an urgent request for action [3].
- A sender address that imitates a known address with slight variations [3].
- A compressed file (.zip, .rar) or a document with macros (.docm) that no one was expecting [3].

### If you have already opened the file

Proofpoint advises disconnecting from the internet as soon as you suspect that an opened attachment is malicious, to stop the malware from sending data out or downloading other components [3]. It then advises running a full scan with an up-to-date antivirus, changing passwords from another device you consider safe, and monitoring financial accounts if sensitive information may have been compromised [3]. If you have doubts about an attachment, Proofpoint recommends consulting IT or cybersecurity professionals, and states that this step is particularly important in a company [3].

## Pitfalls

- MITRE ATT&CK cites .pdf.lnk as a disguise used by DarkGate and Kimsuky [1].
- Renaming a file does not transform it. Microsoft specifies that you can change a file name's extension, but that this does not convert the file to another format [2].
- A sender who seems familiar guarantees nothing: Proofpoint describes emails that imitate familiar addresses with slight alterations [3].
- A fake correspondent may first win your trust, as in the case below [6].

## Real cases

### March 3, 2025: fake tax documents delivered as .lnk shortcuts

On March 3, 2025, Microsoft observed a tax-themed phishing campaign targeting CPAs and accountants in the United States, aiming to deliver the GuLoader and Remcos malware. The campaign comprised fewer than 100 emails [6].

It began with a harmless email from a fake identity, asking for tax filing services because of the negligence of a previous CPA. If the recipient replied, they received a second email with a malicious PDF. According to Microsoft, this approach increases clicks on malicious payloads thanks to the trust already established [6].

The PDF contained an embedded link. If the attachment was opened and the link clicked, a ZIP file was downloaded from Dropbox. It contained several .lnk files configured to imitate tax documents. Once launched by the user, a .lnk file used PowerShell to download a PDF and a .bat file. The .bat file then downloaded the GuLoader executable, which installed Remcos [6]. Microsoft describes Remcos as a remote access Trojan that gives attackers full control over compromised systems [6].

## Sources

1. MITRE ATT&CK, "Masquerading: Double File Extension, Sub-technique T1036.007 - Enterprise | MITRE ATT&CK®". https://attack.mitre.org/techniques/T1036/007/ (accessed 14 November 2026)
2. Microsoft, "Common file name extensions in Windows | Microsoft Support". https://support.microsoft.com/en-us/windows/experience/storage-filemanagement/common-file-name-extensions-in-windows (accessed 14 November 2026)
3. Proofpoint, "Malicious Email Attachments - Definition & Protection | Proofpoint US", 18 February 2021. https://www.proofpoint.com/us/threat-reference/malicious-email-attachments (accessed 14 November 2026)
4. MITRE ATT&CK, "Phishing: Spearphishing Attachment, Sub-technique T1566.001 - Enterprise | MITRE ATT&CK®". https://attack.mitre.org/techniques/T1566/001/ (accessed 14 November 2026)
5. MITRE ATT&CK, "User Execution: Malicious File, Sub-technique T1204.002 - Enterprise | MITRE ATT&CK®". https://attack.mitre.org/techniques/T1204/002/ (accessed 14 November 2026)
6. Microsoft, "Threat actors leverage tax season to deploy tax-themed phishing campaigns | Microsoft Security Blog", 3 April 2025. https://www.microsoft.com/en-us/security/blog/2025/04/03/threat-actors-leverage-tax-season-to-deploy-tax-themed-phishing-campaigns/ (accessed 14 November 2026)

---

Original source: Cyberpedia, the public cybersecurity and AI encyclopedia published by Brain. Canonical version: https://startbrain.io/cyberpedia/en/articles/show-file-extensions-invoice-pdf-exe/
You may reuse this text freely under the CC BY 4.0 license (https://creativecommons.org/licenses/by/4.0/), provided you credit "Brain, Cyberpedia" with a link to the canonical URL above.
