Koozali.org: home of the SME Server

How to block ZIP file attachment

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: How to block ZIP file attachment
« Reply #45 on: February 27, 2015, 03:55:46 AM »
devtay

Here is what I get:

echo 'UEsDBBUAA' | perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)' >/tmp/23.exe
file /tmp/23.exe
/tmp/23.exe: data

echo 'UEsDBBUAAAAJAIpjWUZv8l5lF74AAACKAQAcAAAASU1HXzAyXzIwMTVfNzg4ODkyMi5KUEVHLmV4' | perl -MMIME::Base64 -0777 -ne 'print decode_base64($_)' >/tmp/24.exe
file /tmp/24.exe
/tmp/24.exe: data
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: How to block ZIP file attachment
« Reply #46 on: February 27, 2015, 10:54:48 AM »
devtay

Quote
IMG_02_2015_3301796.JPEG.zip
IMG_02_2015_3537629.JPEG.zip
IMG_02_2015_8824553.JPEG.zip
I know this zip file is a virus because the desktop antivirus caught it when the email got downloaded. Here's my notification:
dated Thu, 26 Feb 2015 15:25:32 +0100  contains Win32/TrojanDownloader.Wauchos.AF trojan.

Based on my tests it is not a zip file. It might be named zip but it is a data file, with a Trojan embedded in it, & it is purporting to be a jpeg compressed as a zip file.

So if you create a mailpattern for that signature, then you need to be careful you are not blocking other data files that you do want to pass through your mail system.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline willdoicu

  • 4
  • +0/-0
Re: How to block ZIP file attachment
« Reply #47 on: July 07, 2016, 07:42:55 AM »
Hello,
Last days I have some problem with a pattern which looks like this
UEsDBBQABgAIAAAAIQB+OOx6hwEAAK0FAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAAC

It's a .docm attachment, it does contain a malicious macro. The problem is the "+" in the middle of the pattern. If I try to block the hole pattern the server(SME 9.1) it won't. As a result only the characters before the "+" will work, and .xlsx files would be blocked too.
Any ideea?