<?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 Re: Reason why Checkpoint doesn't like my regex block for C2 traffic? in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69488#M11995</link>
    <description>What release?&lt;BR /&gt;What specific error do you get?</description>
    <pubDate>Thu, 05 Dec 2019 23:27:25 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-12-05T23:27:25Z</dc:date>
    <item>
      <title>Reason why Checkpoint doesn't like my regex block for C2 traffic?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69486#M11994</link>
      <description>&lt;P&gt;Trying to implement a regex block from a threat feed for known C2 traffic on app/url blade and policy will not install.&amp;nbsp; The only thing I noticed is the + operator that Checkpoint doesn't appear to like.&amp;nbsp; However, this conforms to PCRE format when I test on regex101.&amp;nbsp; Has anyone else dealt with this and how have you addressed it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^https?:\/\/[^\x2f]+\/(?:[a-zA-Z0-9\._-]+\/)+[1-3]c\.jpg$&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 21:02:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69486#M11994</guid>
      <dc:creator>Gregory_Link</dc:creator>
      <dc:date>2019-12-05T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reason why Checkpoint doesn't like my regex block for C2 traffic?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69488#M11995</link>
      <description>What release?&lt;BR /&gt;What specific error do you get?</description>
      <pubDate>Thu, 05 Dec 2019 23:27:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69488#M11995</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-05T23:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reason why Checkpoint doesn't like my regex block for C2 traffic?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69516#M11996</link>
      <description>&lt;P&gt;Replicated using R80.30 JT 111 SMS + GW + GW Cluster:&lt;/P&gt;
&lt;P&gt;- Verify is successfull&lt;/P&gt;
&lt;P&gt;- Access policy install fails:&lt;/P&gt;
&lt;DIV&gt;- Policy installation failed on gateway. If the problem persists contact Check Point support (Error code: 0-2000178).&lt;/DIV&gt;
&lt;DIV&gt;---&lt;/DIV&gt;
&lt;DIV&gt;According to&amp;nbsp;&lt;SPAN&gt;sk154435:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Custom application site object has a bad regular expression (regex) configured. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV id="Toggle_Scenario_X_solution"&gt;
&lt;P&gt;Fix problematic regex syntax, or delete it from the database.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Problem in all the regex with the last hyphen inside the brackets. It must be escaped with backslash.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Change:&lt;/STRONG&gt; ^https?:\/\/([A-Za-z0-9.-]+\.)?ama-assn\.org&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To:&lt;/STRONG&gt; ^https?:\/\/([A-Za-z0-9.&lt;STRONG&gt;\&lt;/STRONG&gt;-]+\.)?ama-assn\.org&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;After changing the RegEx to&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;^https?:\/\/[^\x2f]+\/(?:[a-zA-Z0-9\._\-]+\/)+[1-3]c\.jpg$&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Policy install succeeds&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;8)&lt;/img&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please try yourself, then mark this post as the solution...&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Dec 2019 11:29:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69516#M11996</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2019-12-06T11:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reason why Checkpoint doesn't like my regex block for C2 traffic?</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69540#M11997</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21294"&gt;@G_W_Albrecht&lt;/a&gt;&amp;nbsp;- Appreciate the help here.&amp;nbsp; Escaping the dash did the trick.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:26:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Reason-why-Checkpoint-doesn-t-like-my-regex-block-for-C2-traffic/m-p/69540#M11997</guid>
      <dc:creator>Gregory_Link</dc:creator>
      <dc:date>2019-12-06T13:26:49Z</dc:date>
    </item>
  </channel>
</rss>

