<?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 Howto filter javascript in mail-data? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42296#M31082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be not possible to write a custom signature, which filters out javascript in mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is to avoid something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#&amp;gt; telnet server 25&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;helo willi&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;mail from:&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:otto@lbsost.de"&gt;otto@lbsost.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rcpt to:&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:manfred.huels@lbswest.de"&gt;m.huels@lbswast.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;data&lt;BR /&gt;&lt;SPAN&gt;From: Mannis Emailcheck &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:otto@lbsost.de"&gt;otto@lbsost.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:willi@lbswest.de"&gt;willi@lbswist.de&lt;/A&gt;&lt;BR /&gt;X-Mailer: Mein Mailer&amp;nbsp; &lt;BR /&gt;Subject: test fuer javascript&lt;BR /&gt;MIME-Version: 1.0&lt;BR /&gt;Content-Type: text/html; charset=iso-8859-1&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;X-Real-Name: otto.lbsost.de&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;A HREF="javascript:void(0)" &lt;BR /&gt;&lt;SPAN&gt;onclick="window.open('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.dackel.de','OK-Link"&gt;http://www.dackel.de','OK-Link&lt;/A&gt;&lt;SPAN&gt;')"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;OK&amp;lt;/A&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;alert("Virus - please click here to exploit your computer")&amp;lt;/script&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;quit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;.*(220 mail).*(.de ESMTP).*(\x3c\x).*([sS][cC][rR][iI][pP][tT])&lt;/P&gt;&lt;P&gt;as a data pattern. But if i put this data pattern in a data filtering rule, it only filters in attachements and not in the mail text itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defined as spyware or vulnerability signature, you can only set&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; smtp-req-argument&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; smtp-resp-content&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; unknown-req-tcp-payload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and error this parameter in the next days (because its a lengthy process to install new rules on the firewall &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; and do report the results in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so long&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2011 14:04:57 GMT</pubDate>
    <dc:creator>mhuels</dc:creator>
    <dc:date>2011-05-30T14:04:57Z</dc:date>
    <item>
      <title>Howto filter javascript in mail-data?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42296#M31082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be not possible to write a custom signature, which filters out javascript in mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The challenge is to avoid something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#&amp;gt; telnet server 25&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;helo willi&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;mail from:&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:otto@lbsost.de"&gt;otto@lbsost.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rcpt to:&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:manfred.huels@lbswest.de"&gt;m.huels@lbswast.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;data&lt;BR /&gt;&lt;SPAN&gt;From: Mannis Emailcheck &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:otto@lbsost.de"&gt;otto@lbsost.de&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:willi@lbswest.de"&gt;willi@lbswist.de&lt;/A&gt;&lt;BR /&gt;X-Mailer: Mein Mailer&amp;nbsp; &lt;BR /&gt;Subject: test fuer javascript&lt;BR /&gt;MIME-Version: 1.0&lt;BR /&gt;Content-Type: text/html; charset=iso-8859-1&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;X-Real-Name: otto.lbsost.de&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;A HREF="javascript:void(0)" &lt;BR /&gt;&lt;SPAN&gt;onclick="window.open('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.dackel.de','OK-Link"&gt;http://www.dackel.de','OK-Link&lt;/A&gt;&lt;SPAN&gt;')"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;OK&amp;lt;/A&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;alert("Virus - please click here to exploit your computer")&amp;lt;/script&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;quit&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;.*(220 mail).*(.de ESMTP).*(\x3c\x).*([sS][cC][rR][iI][pP][tT])&lt;/P&gt;&lt;P&gt;as a data pattern. But if i put this data pattern in a data filtering rule, it only filters in attachements and not in the mail text itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defined as spyware or vulnerability signature, you can only set&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; smtp-req-argument&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; smtp-resp-content&lt;/P&gt;&lt;P&gt;pattern-match -&amp;gt; unknown-req-tcp-payload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and error this parameter in the next days (because its a lengthy process to install new rules on the firewall &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; and do report the results in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so long&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 14:04:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42296#M31082</guid>
      <dc:creator>mhuels</dc:creator>
      <dc:date>2011-05-30T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Howto filter javascript in mail-data?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42297#M31083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pattern-match -&amp;gt; smtp-resp-content does not works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 14:59:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42297#M31083</guid>
      <dc:creator>mhuels</dc:creator>
      <dc:date>2011-05-30T14:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Howto filter javascript in mail-data?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42298#M31084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried email header and email body pattern matches from the custom data patterns and it's worked in the past. Can you try creating a custom data pattern?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 06:22:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42298#M31084</guid>
      <dc:creator>fredallee</dc:creator>
      <dc:date>2011-05-31T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Howto filter javascript in mail-data?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42299#M31085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to set the custom data pattern in a data filtering rule, which did not work.&lt;/P&gt;&lt;P&gt;Perhaps PA covers the SMTP header and the data-body in two different matching-machines? If so, i would have to set two patterns. But although ".*(\x3c\x[sS][cC][rR][iI][pP][tT])" has 7 byte, you cannot install it because of beeing too short. ".*(&amp;lt;script)"&amp;nbsp; and ".*(\x3c\xscript)" are both malformed, "script" has only 6 byte and again would it be not sufficient for this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 08:07:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/howto-filter-javascript-in-mail-data/m-p/42299#M31085</guid>
      <dc:creator>mhuels</dc:creator>
      <dc:date>2011-05-31T08:07:43Z</dc:date>
    </item>
  </channel>
</rss>

