The
Attachment filter facility can reject or quarantine mails which contain certain types of
files based on their extensions (e.g. executables) and/or their MIME types. If any mail part matches,
the whole mail is rejected.
Attachment Filtering Methods
The Attachment filters can identify file attachments using a number of
different methods, and also automatically scans compressed archive
files:
- Extension Filters: Using the messages MIME headers, the attachment filter can extract
each file attachments extension, and apply filter decision based on the listed extensions.
This will not recognize files correctly if the sender modified the filename. For example, if a win32
executable has been renamed photo.jpg, a exe extension will not detect it. For cases like
this it is necessary to also use the File Type Filters and/or MIME Type filters. You may also
select the Scan Double Extensions to identify files which may have been renamed in an attempt to
obfuscate their true identity. Double extensions are often used to trick users into opening malware. Often
mail clients such as Outlook may hide the second extension so filename.gif.exe may appear as an ordinary
filename.gif file.
Only alpha numeric characters are allow for filename extensions.
- File Name Filters: Using the messages MIME headers, the attachment filter can extract
each file attachments filename, and apply the filter decision based on the listed filenames.
Use the asterisk sign (*) to match zero or more characters; use the question mark sign (?) to match
a single character. For instance, to filter all executable attachments that include the word
sample, create a filter *sample*.exe.
- File Type Filters: Z Services Email Security will scan each attachment to determine its file type. If this
matches any of those listed in the File Type Filters table, then the message will be filtered
accordingly. This is useful in preventing users changing an attachments extension in order to try and
circumvent the filters. For instance, an executable attachment will get blocked even if the file itself
has a .txt extension.