Dealing with file attachments
From ASSPSMTP
One of the best ways of protecting against virus infection is to block particular email attachment types from reaching the computer; thus preventing it from ever having the chance to be executed. While blocking file attachments alone is not going to be complete protection from viruses or exploits, it is an important layer of protection for minimizing the likelihood of exposure. It is well known that a vast majority of virus outbreaks and Trojan-horse exploits are due to end-users inadvertently opening infected email attachments.
On This Page |
Methodologies
Executable email attachments are an equal threat to both home and business users. Each with the potential to effect data loss, security breaches, stolen identities, and leaving in their wake computer systems that can no longer be considered trusted. It can be of significant benefit to block these types of attachment attachments from being passed through e-mail gateways and to never to reach the unsuspecting end-user.
A better approach to dealing with a threat is not to block based on an administratively-maintained list, but to allow based on list of criteria that will inherently be shorter, easier to maintain, as well as faster to process. This methodology takes us full-circle to one of the basic principle lessons of Security 101, "deny all except those permitted explicitly".
The deny all principle is the cornerstone of many security implementations; extending from border router access control lists, firewall security policies, and the file systems of servers and desktop computers. This principle rightfully extends to anti-spam, anti-virus, and anti-malware methodologies as well.
Most all popular applications have been known to be subject to buffer overflow vulnerabilities in the past. Therefore it is important to stay informed about security vulnerabilities and keep up-to-date with system and application updates - especially those pertaining to security issues.
Each file extension listed is accompanied by a description of what that file-type represents, and is hyper-linked to the FileInfo.net - the definitive file extensions resource, which is a source of addition detail about the file-type and the programs that use them.
Dangerous Attachments
The following file-types in this extension list are strongly recommended for blocking. They all have a particular danger of executing or injecting malicious code on a system.
- .ADE - Microsoft Access Data Project Extension file
- .ADP - Microsoft Access Data Project file
- .ASF - Microsoft Advanced Streaming Format file
- .ASX - Microsoft Windows Media Active Stream Redirector file
- .BAS - BASIC Language Source file
- .BAT - Microsoft DOS Batch Processing file
- .BIN - Binary file
- .CHM - Microsoft Compiled HTML Help file
- .CMD - Microsoft Windows NT Command Script file
- .COM - Microsoft DOS Command Application file
- .CPL - Microsoft Windows Control Panel Extension file
- .CRT - Security Certificate file
- .CSH - C Shell Script file
- .DBX - Microsoft Outlook Express E-mail Folder file
- .DLL - Dynamic Link Library file
- .DOCM - Microsoft Word Document file, macro-enabled Open XML format
- .DOTM - Microsoft Word Template file, macro-enabled Open XML format
- .EXE - Executable Application file
- .FDF - Adobe Forms Data Format file (Adobe Acrobat exported form - likely spam)
- .FXP - Microsoft Visual FoxPro Compiled Program file
- .HIV - Microsoft Windows Registry Hive file
- .HLP - Microsoft Windows Help file
- .HTA - Hypertext Markup Language Application file
- .HTB - HTTP Browser Database file
- .HTM - Hypertext Markup Language file
- .HTML - Hypertext Markup Language file
- .INF - Information Setup file
- .INS - Microsoft Internet Communication Settings file
- .ISP - Microsoft Internet Service Provider Settings file
- .JS - JavaScript / JScript Script file
- .JSE - JScript Encoded Script file
- .KSH - Korn Shell Script file
- .LNK - Microsoft Windows Shortcut Link file
- .MDA - Microsoft Access Add-in file
- .MDB - Microsoft Access Database file
- .MDE - Microsoft Access Encoded Database file
- .MDT - Microsoft Access Database Template file
- .MDW - Microsoft Access Database Wokgroup file
- .MDZ - Microsoft Access Wizard Template file
- .MHT - Multipurpose Internet Mail Extension HTML file
- .MSC - Microsoft Management Console Snap-in Control file
- .MSH - Microsoft Shell Script file
- .MSI - Microsoft Windows Installer Package file
- .MSP - Microsoft Windows Installer Patch file
- .MST - Microsoft Test file
- .NCH - Microsoft Outlook Express Folder file
- .OBJ - Microsoft Object Code file
- .OCX - Microsoft ActiveX Control file
- .OFT - Microsoft Outlook Item Template file
- .OPS - Microsoft Office Profile Settings file
- .OVL - Overlay file
- .PCD - Photo CD Image file
- .PIF - Program Information File
- .PL - Perl Program file
- .POTM - Microsoft PowerPoint Template file, macro-enabled Open XML format
- .PPA - Microsoft PowerPoint Add-in file
- .PPAM - Microsoft PowerPoint Add-in file, macro-enabled Open XML format
- .PPSM - Microsoft PowerPoint Slideshow file, macro-enabled Open XML format
- .PPTM - Microsoft PowerPoint Presentation file, macro-enabled Open XML format
- .PRF - Microsoft Outlook Profile Settings file
- .PS1 - Microsoft PowerShell Script file
- .REG - Registry Data file
- .SCF - Microsoft Windows Explorer Shell Command File file
- .SCR - Screen Saver file
- .SCT - Windows Script Component file
- .SH - Shell Script file
- .SHB - Shell Shortcut Back Into A Document file
- .SHS - Shell Scrap object file
- .SYS - System file
- .URL - Uniform Resource Locator file
- .VB - Microsoft Visual Basic file
- .VBE - Microsoft VBScript Encoded Script file
- .VBS - Microsoft VBScript Script file
- .VSS - Microsoft Visio Stencil file
- .VST - Microsoft Visio Template file
- .VXD - Virtual Device Driver file
- .WMD - Microsoft Windows Media Download file
- .WMS - Microsoft Windows Media Skin file
- .WMV - Microsoft Windows Media Video file
- .WMZ - Microsoft Windows Media Compressed Skin file
- .WSC - Microsoft Windows Script Component file
- .WSF - Microsoft Windows Script file
- .WSH - Microsoft Windows Script Host Settings file
- .XLA - Microsoft Excel Add-in
- .XLAM - Microsoft Excel Add-in, macro-enabled Open XML format
- .XLSM - Microsoft Excel Spreadsheet/Workbook file, macro-enabled Open XML format
- .XLTM - Microsoft Excel Template file, macro-enabled Open XML format template
Regular Expression
ad[ep]|as[fx]|ba[st]|bin|chm|cmd|com|cpl|crt|csh|dbx|dll|docm|dotm|dotx|exe|fdf|fxp|hiv|hlp|ht[abm]|html|in[fs]|isp|js|jse|ksh|lnk|md[abetwz]|mht|ms[chipt]|nch|obj|ocx|oft|ops|ovl|pcd|pif|pl|potm|ppa|ppam|ppsm|pptm|prf|ps1|reg|sc[frt]|sh|sh[bs]|sys|url|vb|vb[es]|vs[st]|vxd|wm[dsvz]|ws[cfh]|xla|xlam|xlsm|xltm
- The Dangerous Attachments list is based on and is an expansion of Martin Blackstone's List of Danger.
Common Attachments
The following file-types in this extension list are commonly sent attachments that are generally considered safe. They should not pose a particular threat, as they are typically benign or are unable to execute code on systems running reasonably current versions of operating systems or applications required to read or open the files.
- .AI - Adobe Illustrator Vector Graphic file (Adobe Creative Suite)
- .ASC - ASCII Text file (used for PGP signatures)
- .BHX - BinHex Compressed Archive file
- .BMP - Bitmap Picture file
- .CSV - Comma Separated Values file
- .DAT - Data file (used by Microsoft Office Outlook e-mail with RTF and TNEF encapsulation)
- .DOC - Microsoft Word Document file (Microsoft Office)
- .DOCX - Microsoft Word Document file, Open XML format (Microsoft Office)
- .DOTX - Microsoft Word Template file, Open XML format (Microsoft Office)
- .EMF - Enhanced Windows Metafile file
- .EML - E-mail Message file (used with TNEF encapsulation)
- .EMZ - Enhanced Windows Metafile file, GZIP compressed
- .EPS - Encapsulated PostScript file
- .GIF - Graphic Interchange Format file
- .HQX - Macintosh BinHex Compressed Archive file
- .ICS - iCalendar Calendar Data file (calendar items for Mac, Office, Palm apps)
- .INDD - Adobe InDesign Document file (Adobe Creative Suite)
- .INDT - Adobe InDesign Template file (Adobe Creative Suite)
- .JPEG - Joint Photographic Experts Group Image file
- .JPG - Joint Photographic Experts Group Image file
- .P7S - PKCS #7 Signature (used for S/MIME signatures)
- .PDF - Adobe Portable Document Format file (Adobe Creative Suite)
- .PM6 - Adobe PageMaker (version 6) Document file
- .PMT - Adobe PageMaker Template file
- .POTX - Microsoft PowerPoint Template file, Open XML format (Microsoft Office)
- .PPT - Microsoft PowerPoint Presentation file (Microsoft Office)
- .PPTX - Microsoft PowerPoint Presentation file, Open XML format (Microsoft Office)
- .PSD - Adobe Photoshop Document file (Adobe Creative Suite)
- .PUB - Microsoft Publisher Document file (Microsoft Office)
- .RAR - RAR Compressed Archive file
- .RPT - Report file (Crystal Reports)
- .RTF - Rich Text Format file
- .SIT - StuffIt Compressed Archive file
- .SITX - StuffIt X Compressed Archive file
- .SNP - Microsoft Access Report Snapshot file (Microsoft Office)
- .TIF - Tagged Image Format file
- .TIFF - Tagged Image Format file
- .TXT - Text file
- .VCF - vCard Contact Data file (contact items for Mac, Office, Palm apps)
- .VCS - vCalendar Calendar Data file (calendar items for Mac, Office, Palm apps)
- .VSD - Microsoft Visio Document file (Microsoft Office)
- .WPD - Corel WordPerfect Document file (Corel WordPerfect Office)
- .XLS - Microsoft Excel Spreadsheet/Workbook file (Microsoft Office)
- .XLSB - Microsoft Excel Spreadsheet/Workbook file, Binary format (Microsoft Office)
- .XLSX - Microsoft Excel Spreadsheet/Workbook file, Open XML format (Microsoft Office)
- .XLTX - Microsoft Excel Template file, Open XML format (Microsoft Office)
- .XPS - XML Paper Specification file
- .ZIP - ZIP Compressed Archive file
Regular Expression
ai|asc|bhx|bmp|csv|dat|doc|docx|em[flz]|eps|gif|hqx|ics|ind[dt]|jpeg|jpg|p7s|pdf|pm[6t]|potx|ppt|pptx|psd|pub|rar|rpt|rtf|sit|sitx|snp|tif|tiff|txt|vc[fs]|vsd|wpd|xls|xls[bx]|xltx|xps|zip
- The Common Attachments list is based on and is an expansion of Micheal Espinola Jr's List of Creamy Goodness.


