Commonly Blocked File Formats

These file formats are can be considerd for the blocklist of the Attachment Blocker because they are common threat vectors for malware. The list is not exhaustive. Each administrator decides which file types to block, because blocking all of them could disrupt workflows.

The Attachment Blocker handles both file extensions and MIME types, and identifies the real MIME type if the file extension was changed. Separate blocklists exist for extensions and MIME types and can be used independently.

Note: Do not block generic MIME types such as text/plain or application/octet-stream. Several entries below, such as scripts and PowerShell files, share generic MIME types. For these entries, use the extension blocklist rather than the MIME blocklist. MIME types are practical reference values.

Overview by security section

Security section

Entries

Executable

14

Installer/package

13

Script/command

25

Shortcut/config/help

12

Active document

20

Archive/container

12

Disk/virtual image

4

Total

100

Executable

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

1

Executable

.exe

Windows executable

application/x-dosexec

Native code execution

2

Executable

.dll

Windows dynamic-link library

application/x-msdownload

Loadable native code

3

Executable

.com

DOS/Windows command executable

application/x-msdownload

Direct code execution

4

Executable

.scr

Windows screen saver executable

application/x-msdownload

PE executable disguised as screen saver

5

Executable

.cpl

Windows Control Panel item

application/x-msdownload

Loads executable control-panel code

6

Executable

.sys

Windows driver

application/x-msdownload

Kernel or driver code

7

Executable

.vxd

Legacy Windows virtual driver

application/x-msdownload

Driver-level executable code

8

Executable

.pif

Windows program information file

application/x-msdownload

Can launch a program

9

Executable

.elf

Linux/Unix ELF executable

application/x-executable

Native code execution

10

Executable

.so

Unix/Linux shared library

application/x-sharedlib

Loadable native code

11

Executable

.dylib

macOS dynamic library

application/x-mach-o-dylib

Loadable native code

12

Executable

.kext

macOS kernel extension

application/x-mach-o-kext-bundle

Kernel extension code

13

Executable

.class

Java class bytecode

application/java-vm

Executable JVM bytecode

14

Executable

.dex

Android Dalvik executable

application/x-dex

Executable Android bytecode

Installer/package

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

15

Installer/package

.msi

Windows Installer package

application/x-ms-installer

Installs software or code

16

Installer/package

.msp

Windows Installer patch

application/x-ms-installer

Modifies installed software

17

Installer/package

.mst

Windows Installer transform

application/x-ms-installer

Changes installer behavior

18

Installer/package

.msix

Windows MSIX package

application/vnd.ms-appx

Installs Windows applications

19

Installer/package

.appx

Windows AppX package

application/vnd.ms-appx

Installs Windows applications

20

Installer/package

.appxbundle

Windows AppX bundle

application/vnd.ms-appx.bundle

Bundles installable applications

21

Installer/package

.apk

Android application package

application/vnd.android.package-archive

Installs Android applications

22

Installer/package

.jar

Java archive

application/java-archive

May execute Java code

23

Installer/package

.jnlp

Java Network Launch Protocol

application/x-java-jnlp-file

Launches Java application

24

Installer/package

.deb

Debian software package

application/x-debian-package

Installs Linux software

25

Installer/package

.rpm

RPM software package

application/x-rpm

Installs Linux software

26

Installer/package

.application

ClickOnce deployment manifest

application/x-ms-application

Launches ClickOnce deployment

27

Installer/package

.appref-ms

ClickOnce application reference

application/x-ms-shortcut

Launches ClickOnce application

Script/command

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

28

Script/command

.bat

Windows batch script

application/x-bat

Command execution

29

Script/command

.cmd

Windows command script

application/x-bat

Command execution

30

Script/command

.ps1

PowerShell script

text/plain

PowerShell code execution

31

Script/command

.psm1

PowerShell module

text/plain

Importable PowerShell code

32

Script/command

.psd1

PowerShell data/module manifest

text/plain

Can influence PowerShell loading

33

Script/command

.ps1xml

PowerShell formatting/types file

application/xml

PowerShell configuration content

34

Script/command

.vbs

VBScript

text/x-vbscript

Windows Script Host execution

35

Script/command

.vbe

Encoded VBScript

text/x-vbscript

Obfuscated script execution

36

Script/command

.js

JavaScript source

text/javascript

Script execution via host or browser

37

Script/command

.jse

Encoded JScript

text/javascript

Obfuscated script execution

38

Script/command

.mjs

JavaScript module

text/javascript

Script or module execution

39

Script/command

.wsf

Windows Script File

application/xml

Can combine executable scripts

40

Script/command

.wsh

Windows Script Host settings

text/plain

Controls script execution

41

Script/command

.wsc

Windows Script Component

application/xml

Executable script component

42

Script/command

.hta

HTML Application

application/hta

HTML or Active Script execution

43

Script/command

.sh

Unix shell script

application/x-sh

Shell command execution

44

Script/command

.csh

C shell script

application/x-csh

Shell command execution

45

Script/command

.ksh

Korn shell script

application/x-sh

Shell command execution

46

Script/command

.py

Python script

text/x-python

Python code execution

47

Script/command

.pyw

Python GUI script

text/x-python

Python code execution

48

Script/command

.pyc

Compiled Python bytecode

application/x-python-code

Executable Python bytecode

49

Script/command

.pl

Perl script

text/x-perl

Perl code execution

50

Script/command

.php

PHP script

text/x-php

Server-side code if deployed

51

Script/command

.bas

BASIC source/script

text/x-basic

May execute in BASIC host

52

Script/command

.vb

Visual Basic source

text/x-vbdotnet

Compilable or executable code

Shortcut/config/help

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

53

Shortcut/config/help

.library-ms

Windows library description

application/xml

Can reference remote locations

54

Shortcut/config/help

.search-ms

Windows saved search

application/xml

Can reference remote locations

55

Shortcut/config/help

.settingcontent-ms

Windows settings shortcut

application/xml

Opens privileged settings surfaces

56

Shortcut/config/help

.xbap

XAML browser application

application/x-ms-xbap

Can launch managed browser application

57

Shortcut/config/help

.chm

Compiled HTML Help

application/vnd.ms-htmlhelp

May contain active content or links

58

Shortcut/config/help

.hlp

Windows Help file

application/winhlp

Legacy active help format

59

Shortcut/config/help

.msc

Microsoft Management Console file

application/xml

Loads administrative snap-in configuration

60

Shortcut/config/help

.reg

Windows Registry script

text/plain

Modifies Registry

61

Shortcut/config/help

.inf

Windows setup information

text/plain

Can install or configure components

62

Shortcut/config/help

.scf

Windows Explorer command file

text/plain

Can invoke shell actions or remote paths

63

Shortcut/config/help

.sct

Windows scriptlet

application/xml

Executable script component

64

Shortcut/config/help

.mht

MHTML web archive

multipart/related

May carry active web content

Active document

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

65

Active document

.docm

Macro-enabled Word document

application/vnd.ms-word.document.macroenabled.12

Embedded VBA macros

66

Active document

.dotm

Macro-enabled Word template

application/vnd.ms-word.template.macroenabled.12

Embedded VBA macros or template abuse

67

Active document

.xlsm

Macro-enabled Excel workbook

application/vnd.ms-excel.sheet.macroenabled.12

Embedded VBA macros

68

Active document

.xlsb

Excel binary workbook

application/vnd.ms-excel.sheet.binary.macroenabled.12

May contain macros or embedded objects

69

Active document

.xlam

Excel add-in

application/vnd.ms-excel.addin.macroenabled.12

Loads add-in code

70

Active document

.xltm

Macro-enabled Excel template

application/vnd.ms-excel.template.macroenabled.12

Embedded VBA macros

71

Active document

.pptm

Macro-enabled PowerPoint

application/vnd.ms-powerpoint.presentation.macroenabled.12

Embedded VBA macros

72

Active document

.potm

Macro-enabled PowerPoint template

application/vnd.ms-powerpoint.template.macroenabled.12

Embedded VBA macros or template abuse

73

Active document

.ppsm

Macro-enabled PowerPoint slideshow

application/vnd.ms-powerpoint.slideshow.macroenabled.12

Embedded VBA macros

74

Active document

.ppam

PowerPoint add-in

application/vnd.ms-powerpoint.addin.macroenabled.12

Loads add-in code

75

Active document

.sldm

Macro-enabled PowerPoint slide

application/vnd.ms-powerpoint.slide.macroenabled.12

Embedded VBA macros

76

Active document

.xll

Excel add-in library

application/vnd.ms-excel

Native add-in code

77

Active document

.doc

Legacy Word document

application/msword

Macros, OLE objects, or exploits

78

Active document

.xls

Legacy Excel workbook

application/vnd.ms-excel

Macros, formulas, OLE, or exploits

79

Active document

.ppt

Legacy PowerPoint presentation

application/vnd.ms-powerpoint

Macros, OLE objects, or exploits

80

Active document

.rtf

Rich Text Format

application/rtf

OLE objects or parser exploits

81

Active document

.iqy

Excel Web Query

text/plain

Fetches remote data and can aid payload delivery

82

Active document

.xla

Legacy Excel add-in

application/vnd.ms-excel

Loads macro or add-in code

83

Active document

.ppa

Legacy PowerPoint add-in

application/vnd.ms-powerpoint

Loads add-in code

84

Active document

.one

OneNote notebook

application/onenote;format=one

Embedded files, scripts, and links can be launched by user click

Archive/container

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

85

Archive/container

.zip

ZIP archive

application/zip

Can conceal nested or blocked payloads

86

Archive/container

.rar

RAR archive

application/x-rar-compressed

Can conceal nested or encrypted payloads

87

Archive/container

.7z

7-Zip archive

application/x-7z-compressed

Can conceal nested or encrypted payloads

88

Archive/container

.tar

TAR archive

application/x-tar

Bundles nested payloads

89

Archive/container

.gz

Gzip-compressed file

application/gzip

Compresses or conceals payload

90

Archive/container

.bz2

Bzip2-compressed file

application/x-bzip2

Compresses or conceals payload

91

Archive/container

.xz

XZ-compressed file

application/x-xz

Compresses or conceals payload

92

Archive/container

.lzh

LZH archive

application/octet-stream

Can conceal nested payloads

93

Archive/container

.ace

ACE archive

application/x-ace-compressed

Legacy archive; can conceal payloads

94

Archive/container

.arj

ARJ archive

application/x-arj

Legacy archive; can conceal payloads

95

Archive/container

.cab

Microsoft Cabinet archive

application/vnd.ms-cab-compressed

Packages installers or executables

96

Archive/container

.pst

Outlook personal folder

application/vnd.ms-outlook-pst

Mailbox container that can hide nested attachments and support data exfiltration

Disk/virtual image

#

Security section

Extension

File type

Canonical / practical MIME type

Primary security reason

97

Disk/virtual image

.iso

ISO disk image

application/x-iso9660-image

Can mount and hide executable payloads

98

Disk/virtual image

.img

Raw/FAT disk image

application/x-fat-diskimage

Can contain mountable payloads

99

Disk/virtual image

.dmg

Apple disk image

application/x-apple-diskimage

Can deliver macOS applications or installers

100

Disk/virtual image

.vhd

Virtual hard disk

application/x-vhd

Can contain mountable payloads