<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Block Office documents containing macros in Email Security</title>
    <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915873#M13402</link>
    <description>&lt;P&gt;Is there any way to block office document types that contain macro's in this?&amp;nbsp; The most recent cryptolocker variant (Locky) contains macro's which makes it more challenging to intercept.&amp;nbsp; Blocking all office document attachments entirely isn't considered to be very business friendly.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 12:07:22 GMT</pubDate>
    <dc:creator>Evan M</dc:creator>
    <dc:date>2016-02-26T12:07:22Z</dc:date>
    <item>
      <title>Block Office documents containing macros</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915873#M13402</link>
      <description>&lt;P&gt;Is there any way to block office document types that contain macro's in this?&amp;nbsp; The most recent cryptolocker variant (Locky) contains macro's which makes it more challenging to intercept.&amp;nbsp; Blocking all office document attachments entirely isn't considered to be very business friendly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 12:07:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915873#M13402</guid>
      <dc:creator>Evan M</dc:creator>
      <dc:date>2016-02-26T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Hello Evan,</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915874#M13403</link>
      <description>&lt;P&gt;Hello Evan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a filter with some other customers whom I worked with with a similar situation and we created a filter together to attempt this stop all macro enabled office files by dropping the email if any macro enabled office file is seen. It goes through the use of a Message filter (configured on the CLI).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[Note:&lt;/STRONG&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; This is a filter I use on my lab environment for testing and deployed, there may be some other filter alternatives or better-written filters but at this stage this one has worked well and went through a few iterations to be what it is now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[Note2:]&lt;/STRONG&gt; This filter is to be deployed at your own discretion, this was written from myself and end users whom I worked with - this filter script is not a officially supported script, please modify it to your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;MacroFilter: if (attachment-filename == "(?i)\\.(xls|doc|ppt|xlsx|docx|pptx)$") AND&lt;BR /&gt; ((attachment-binary-contains("(?i)x-vba-macros")) OR ((attachment-binary-contains("(?i)vba")) AND&lt;BR /&gt; (attachment-binary-contains("(?i)versioncompatible32")))) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log-entry("$MatchedContent");&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;insert-header("X-Macro", "True");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="left"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Then create a content filter to look for this header to quarantine the email.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;GUI &amp;gt; &amp;nbsp;Mail Policies &amp;gt; Incoming Content Filters &amp;gt; Add a new filter&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Condition -&amp;gt; &amp;nbsp;Other Header -&amp;gt; X-Macro &amp;nbsp;-&amp;gt; Value Contains -&amp;gt; True&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Action -&amp;gt; Quarantine to the policy quarantine&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Optional Action (Please create the text resource GUI &amp;gt; Mail Policies &amp;gt; Text Resources -&amp;gt; Add a new notification template.)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Action 2 -&amp;gt; Notify -&amp;gt; Define the recipient of notification and choose the template.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Submit this content filter.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Deploy it into your Mail Policies where you want it to be used.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Commit changes.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1F497D"&gt;&lt;SPAN&gt;Then monitor the Policy quarantine going forward.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1f497d"&gt;This was tested against hundreds of macro enabled samples and worked to expectations of myself and the users who went forward to incorporate it.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1f497d"&gt;The reason why i did not just stop it at the message filter with a drop, that is very aggressive and while there are -some- legitimate emails containing macros, it's best to review it.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1f497d"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;FONT face="Calibri" color="#1f497d"&gt;Matthew&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:02:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915874#M13403</guid>
      <dc:creator>Mathew Huynh</dc:creator>
      <dc:date>2018-06-15T15:02:12Z</dc:date>
    </item>
    <item>
      <title>I am using Cisco hosted</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915875#M13404</link>
      <description>&lt;P&gt;I am using Cisco hosted IronPort and don't currently have CLI access.&amp;nbsp; It doesn't seem like I'll be able to create this content filter through GUI, is that correct?&lt;/P&gt;
&lt;P&gt;I believe I can request CLI access via the hosted service, so I may need to do that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:40:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915875#M13404</guid>
      <dc:creator>Evan M</dc:creator>
      <dc:date>2016-02-29T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Correct - in order to use the</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915876#M13405</link>
      <description>&lt;P&gt;Correct - in order to use the "&lt;SPAN&gt;attachment-binary-contains", this would be CLI and message filter only. &amp;nbsp;This is not an option for content filters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;-Robert&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:58:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915876#M13405</guid>
      <dc:creator>Robert Sherwin</dc:creator>
      <dc:date>2016-02-29T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Hi! i'am new to Ironport</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915877#M13406</link>
      <description>&lt;P&gt;Hi! i'am new to Ironport (testing at the moment) and i found this thread a few days ago.&lt;/P&gt;
&lt;P&gt;There are two problems, the first: it not looks into all potential macro-files (for example *.dotm) so i expanded the list of filenames.&lt;/P&gt;
&lt;P&gt;the second: there also seems to be a problem with detecting macros, so i expanded the filterrule.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Finally it looks like it will do its job. Please expand the rule if you can find any other problems/issues, or correct me if i'am wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MacroFilterNeu: if ((attachment-filename == "(?i)\\.(xls|xlsx|xlt|xla|xltx|xlsm|xltm|xlam|xlsb|doc|dot|docx|dotx|dotm|docm|ppt|pot|pps|ppa|pptx|potx|ppsx|ppam|pptm|potm|ppsm)$") OR (attachment-filetype != "Document")) AND ((attachment-binary-contains("(?i)x-vba-macros") OR (((attachment-binary-contains("(?i)vba")) AND (attachment-binary-contains("(?i)versioncompatible32"))) OR ((attachment-binary-contains("(?i)vba")) AND attachment-binary-contains("(?i)[Content_Types].xml"))))) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log-entry("$MatchedContent");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert-header("X-Macro", "True");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;-Matthias&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 07:31:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915877#M13406</guid>
      <dc:creator>matthias.muench</dc:creator>
      <dc:date>2016-03-15T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Matthias, could you please</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915878#M13407</link>
      <description>&lt;P&gt;Matthias, could you please expand the first half of that condition?&lt;/P&gt;
&lt;P&gt;if ((attachment-filename == "(?i)\\.(xls|xlsx|xlt|xla|xltx|xlsm|xltm|xlam|xlsb|doc|dot|docx|dotx|dotm|docm|ppt|pot|pps|ppa|pptx|potx|ppsx|ppam|pptm|potm|ppsm)$") OR (attachment-filetype != "Document"))&lt;/P&gt;
&lt;P&gt;I parse that as "if one of a series of document types or not a document".&lt;/P&gt;
&lt;P&gt;Additionally, I've seen Word malware downloaders masquerade as RTF documents. Word cheerfully loads and runs them as Word documents.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 09:15:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915878#M13407</guid>
      <dc:creator>exMSW4319</dc:creator>
      <dc:date>2016-03-15T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Hi, to get it right:</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915879#M13408</link>
      <description>&lt;P&gt;Hi, to get it right:&lt;/P&gt;
&lt;P&gt;you want me to add *.rtf files to the filename-list like:&lt;/P&gt;
&lt;P&gt;MacroFilter: if ((attachment-filename == "(?i)\\.(xls|xlsx|xlt|xla|xltx|xlsm|xltm|xlam|xlsb|doc|dot|docx|dotx|dotm|docm|ppt|pot|pps|ppa|pptx|potx|ppsx|ppam|pptm|potm|ppsm|rtf)$") OR (attachment-filetype != "Document")) AND ((attachment-binary-contains("(?i)x-vba-macros") OR (((attachment-binary-contains("(?i)vba")) AND (attachment-binary-contains("(?i)versioncompatible32"))) OR ((attachment-binary-contains("(?i)vba")) AND attachment-binary-contains("(?i)[Content_Types].xml"))))) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log-entry("$MatchedContent");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert-header("X-Macro", "True");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you! tested, also works!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 09:58:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915879#M13408</guid>
      <dc:creator>matthias.muench</dc:creator>
      <dc:date>2016-03-15T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Hi Matthias. My comment over</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915880#M13409</link>
      <description>&lt;P&gt;Hi Matthias. My comment over RTF was more of an observation to the forum that RTF can be exploited in this fashion so should probably be included, if the attachment-binary-contains rule is not tricked by the obfuscation.&lt;/P&gt;
&lt;P&gt;I was more interested in the reasoning behind the second part of the opening clause of that condition. If I read it correctly, you want your&amp;nbsp;appliance to run some quite expensive checks on any attachment that is &lt;EM&gt;not&lt;/EM&gt; a document.&lt;/P&gt;
&lt;P&gt;Regarding the types to include in the opening filename condition, I was thinking that all of the published macro-bearing suffixes could be in an Else&amp;nbsp;branch or separate filter that inserts the X-Macro header without further condition.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 11:02:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915880#M13409</guid>
      <dc:creator>exMSW4319</dc:creator>
      <dc:date>2016-03-15T11:02:18Z</dc:date>
    </item>
    <item>
      <title>my main problem here is: i</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915881#M13410</link>
      <description>&lt;P&gt;my main problem here is: i dont have any "bad"-RTF-Files to take a closer look...&lt;/P&gt;
&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 11:25:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915881#M13410</guid>
      <dc:creator>matthias.muench</dc:creator>
      <dc:date>2016-03-15T11:25:25Z</dc:date>
    </item>
    <item>
      <title>I'm presuming that the RTF</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915882#M13411</link>
      <description>&lt;P&gt;I'm presuming that the RTF obfuscation is nothing more&amp;nbsp;sophisticated than renaming&amp;nbsp;a DOC as RTF. The&amp;nbsp;recipient's class then says "load RTF using Word", and Word&amp;nbsp;simply opens the RTF as a Word document rather than squawking about a bad conversion. Macro support is all ready to go, and I've seen Troj/DocDl (Sophos)&amp;nbsp;variants with the usual picture&amp;nbsp;inside telling recipients they'll have to turn macros on in order to see the document and explaining how to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 11:59:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915882#M13411</guid>
      <dc:creator>exMSW4319</dc:creator>
      <dc:date>2016-03-15T11:59:20Z</dc:date>
    </item>
    <item>
      <title>as far as i can test it:</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915883#M13412</link>
      <description>&lt;P&gt;as far as i can test it:&lt;/P&gt;
&lt;P&gt;i renamed a existing "word-with-macro" file to rtf and sent trough the appliance --&amp;gt; filtered. so i would say the renaming thing should be done. Any other approach?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 12:57:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915883#M13412</guid>
      <dc:creator>matthias.muench</dc:creator>
      <dc:date>2016-03-15T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Hi, I tested it also. I</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915884#M13413</link>
      <description>&lt;P&gt;Hi, I tested it also. I thought the main problem is that the message filter is not "looking into" office attachments. It's simply performing a binary serch.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 13:09:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915884#M13413</guid>
      <dc:creator>olaf.boettger</dc:creator>
      <dc:date>2016-03-15T13:09:33Z</dc:date>
    </item>
    <item>
      <title>thats right, but all macro</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915885#M13414</link>
      <description>&lt;P&gt;thats right, but all macro files i had my hands on have binary readable phrases like:&lt;/P&gt;
&lt;P&gt;word/vbaData.xml&lt;/P&gt;
&lt;P&gt;word/_rels/vbaProject.bin.rel&lt;/P&gt;
&lt;P&gt;word/vbaProject.bin&lt;/P&gt;
&lt;P&gt;...and so on...&lt;/P&gt;
&lt;P&gt;so imho the ability to search for "vba" is at least better than nothing... but @cisco:i am looking forward to see a checkbox/filetype "makro" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;by the way i had a few false-positives today, seems to be more accurate to search for "/vba"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MacroFilterNeu: if ((attachment-filename == "(?i)\\.(xls|xlsx|xlt|xla|xltx|xlsm|xltm|xlam|xlsb|doc|dot|docx|dotx|dotm|docm|ppt|pot|pps|ppa|pptx|potx|ppsx|ppam|pptm|potm|ppsm|rtf)$") OR (attachment-filetype != "Document")) AND ((attachment-binary-contains("(?i)x-vba-macros") OR (((attachment-binary-contains("(?i)vba")) AND (attachment-binary-contains("(?i)versioncompatible32"))) OR ((attachment-binary-contains("(?i)/vba")) AND attachment-binary-contains("(?i)[Content_Types].xml"))))) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log-entry("$MatchedContent");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert-header("X-Macro", "True");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:41:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915885#M13414</guid>
      <dc:creator>matthias.muench</dc:creator>
      <dc:date>2016-03-15T15:41:31Z</dc:date>
    </item>
    <item>
      <title>So, I was digging through the</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915886#M13415</link>
      <description>&lt;P&gt;So, I was digging through the parenthesis party, and want to make sure of the logic...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;if ((attachment-filename == "(?i)\\.(xls|xlsx|xlt|xla|xltx|xlsm|xltm|xlam|xlsb|doc|dot|docx|dotx|dotm|docm|ppt|pot|pps|ppa|pptx|potx|ppsx|ppam|pptm|potm|ppsm|rtf)$") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; OR &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;(attachment-filetype != "Document"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;AND &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;attachment-binary-contains("(?i)x-vba-macros") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;OR &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (((attachment-binary-contains("(?i)vba")) AND (attachment-binary-contains("(?i)versioncompatible32"))) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;OR &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;((attachment-binary-contains("(?i)/vba")) AND attachment-binary-contains("(?i)[Content_Types].xml")))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;This first section before the first AND is almost always true... the only time its not true are "Documents" that aren't in the MS list... right?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;After the AND,&amp;nbsp;its looking for &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;"x-vba-macros"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;(vba and versioncompatible32&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;or /vba and content type xml)&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Did you mean to leave that slash on the second vba?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:31:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915886#M13415</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2016-03-15T17:31:09Z</dc:date>
    </item>
    <item>
      <title>Hello Matthias,</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915887#M13416</link>
      <description>&lt;P&gt;Hello Matthias,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Glad to see the filter was altered to your specifications to get it to work to your requirements.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However I must add, the reason why some of the formats were not there as I was testing with some other formats such as .docm which was a macro enabled document file (hence the m) but the binary matching was somewhat different, so i suppose the additional formats you looked into, the second OR clause would be for that one.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:55:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915887#M13416</guid>
      <dc:creator>Mathew Huynh</dc:creator>
      <dc:date>2016-03-15T21:55:20Z</dc:date>
    </item>
    <item>
      <title>To this note as well;</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915888#M13417</link>
      <description>&lt;P&gt;To this note as well;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When you rename a doc or docx containing a macro to RTF or to another filename, the binary information within it may not be 'complete' in the sense that it's of the true exploited document as it would retain the original binary information after the rename. So it may capture your renamed files, but if someone exploited an RTF with macros or different file by creating it and source is RTF and not a renamed doc/docx you may get a different result.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If actual samples are available that can be analyzed, then additional conditions can be added to match them I would say.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:59:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915888#M13417</guid>
      <dc:creator>Mathew Huynh</dc:creator>
      <dc:date>2016-03-15T21:59:41Z</dc:date>
    </item>
    <item>
      <title>I'm working on the premise</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915889#M13418</link>
      <description>&lt;P&gt;I'm working on the premise that true RTF attachments aren't dangerous beyond the "click URL to win" attack, dressed up in&amp;nbsp;whatever social engineering will be effective.&lt;/P&gt;
&lt;P&gt;Yes, defences that are analysing for Word threats and aren't misled by the renaming should still spot the danger.&lt;/P&gt;
&lt;P&gt;I'm watching developments downthread with considerable interest, as so far the code is only catching simple forms of the original DOC threat for us.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:25:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915889#M13418</guid>
      <dc:creator>exMSW4319</dc:creator>
      <dc:date>2016-03-17T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Thank you for this post and</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915890#M13419</link>
      <description>&lt;P&gt;Thank you for this post and those that followed. I have been catching several viral Macro Attachments that would have otherwise been just simply retrospect with AMP. Now it seems like we are catching and then releasing a very few false positives.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I was wondering if anyone is sending notifications to the sender or receiver, to let them know their message may be delayed due to a Macro detected in the attachment?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:02:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915890#M13419</guid>
      <dc:creator>Paul Cardelli</dc:creator>
      <dc:date>2016-03-22T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Paul,</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915891#M13420</link>
      <description>&lt;P&gt;Paul,&lt;/P&gt;
&lt;P&gt;Which code are you using,&amp;nbsp;Matthew's or Mathias'?&lt;/P&gt;
&lt;P&gt;Ken&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:16:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915891#M13420</guid>
      <dc:creator>Ken Stieers</dc:creator>
      <dc:date>2016-03-22T19:16:10Z</dc:date>
    </item>
    <item>
      <title>I have been using  a slightly</title>
      <link>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915892#M13421</link>
      <description>&lt;P&gt;I have been using&amp;nbsp; a slightly modified version of Mathias. Not sure what it is doing for performance. It has not captured a to many false positives, but like I said before I do see some retrospects from &lt;STRONG&gt;AMP&lt;/STRONG&gt; ending up in my Macro Quarantine. Which tells me I'm probably stopping them from hitting the users inbox at some level.&lt;/P&gt;
&lt;P&gt;I have also been more aggressive on type of attachments as well such as scripts and .js files which has cut down on McAfee endpoint detections on malicious artifacts that sometime make it through filters.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:33:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/email-security/block-office-documents-containing-macros/m-p/2915892#M13421</guid>
      <dc:creator>Paul Cardelli</dc:creator>
      <dc:date>2016-03-22T19:33:28Z</dc:date>
    </item>
  </channel>
</rss>

