<?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 How do I Create a dlp policy to detect private IPs using Regular Expressions or what Regular expression should I used for data pattern in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-create-a-dlp-policy-to-detect-private-ips-using-regular/m-p/43859#M991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I Create a dlp policy to detect private IPs using Regular Expressions or what Regular expression should I used for data pattern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 00:23:15 GMT</pubDate>
    <dc:creator>opco-dm</dc:creator>
    <dc:date>2014-01-18T00:23:15Z</dc:date>
    <item>
      <title>How do I Create a dlp policy to detect private IPs using Regular Expressions or what Regular expression should I used for data pattern</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-create-a-dlp-policy-to-detect-private-ips-using-regular/m-p/43859#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I Create a dlp policy to detect private IPs using Regular Expressions or what Regular expression should I used for data pattern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 00:23:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-create-a-dlp-policy-to-detect-private-ips-using-regular/m-p/43859#M991</guid>
      <dc:creator>opco-dm</dc:creator>
      <dc:date>2014-01-18T00:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Create a dlp policy to detect private IPs using Regular Expressions or what Regular expression should I used for data pattern</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-create-a-dlp-policy-to-detect-private-ips-using-regular/m-p/43860#M992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;I am not sure what your goal is, so there may be a much better way to accomplish what your are trying to accomplish..&amp;nbsp; That being said, here is a link to the admin guide for 5.0:&lt;/P&gt;&lt;P style="font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #2889c5;"&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/servlet/JiveServlet/previewBody/4118-102-7-19329/PA-5.0_Administrators_Guide.pdf"&gt;https://live.paloaltonetworks.com/servlet/JiveServlet/previewBody/4118-102-7-19329/PA-5.0_Administrators_Guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;On pages 235 and 236 the "regex" rules are described.&amp;nbsp; This is not full blown regex as you are likely used to.&amp;nbsp; It is a very cut down version.&lt;/P&gt;&lt;P style="font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;Here are some "regex(s)" that I have come up with as an example.&amp;nbsp; The rules state that your data pattern "regex" must be at least 7bytes long.&amp;nbsp; This is constrained to the string you are searching for and not anything between brackets (so no tricking the system with logic (and, or, etc.).&amp;nbsp; In these examples I am keying on HTML form post data - so, uploading a file via a web form.&amp;nbsp; As you can see, the "string" here is "form-data":&lt;/P&gt;&lt;P style="font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;Any IP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;.*(form\-data).*((([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))).*&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;RFC 1918 (10/8) IP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;.*(form\-data).*(([10])\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))).*&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;RFC 1918 (172.16/12) IP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;.*(form\-data).*(([172])\.((1[6-9])|(2[0-9])|(3[0-1]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))).*&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;RFC 1918 (192.168/16) IP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;.*(form\-data).*(([192])\.([168])\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))).*&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;For looking in email, you might use the string "subject" as a key word.&amp;nbsp; The "regex" would then look like this:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;&lt;STRONG&gt;Any IP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #323333;"&gt;.*(subject).*((([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))\.(([0-9])|([0-9][0-9])|([1][0-9][0-9])|([2][0-5][0-5]))).*&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-size: 19px; font-family: 'Courier New'; color: #ff2500;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;!!!WARNING!!!:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #3b3b3b;"&gt;This will slow down your commit times, and if you use all of these at the same time, your commit may fail.&amp;nbsp; This is because there is a limited memory space for compiling custom signatures.&amp;nbsp; The more complex the signature, the more memory the compile takes.&amp;nbsp; I tested these on a PA-200 and the commits failed for the most part.&amp;nbsp; I was able to get the smaller ones to commit and work, but again, this is not recommended.&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #3b3b3b;"&gt;I hope this helps.&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #3b3b3b;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Courier New'; color: #3b3b3b;"&gt;-chadd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 03:00:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/how-do-i-create-a-dlp-policy-to-detect-private-ips-using-regular/m-p/43860#M992</guid>
      <dc:creator>cchristiansen</dc:creator>
      <dc:date>2014-01-23T03:00:20Z</dc:date>
    </item>
  </channel>
</rss>

