<?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 RegEx looking for a specific UserAgent. in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15716#M408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I tried to migrate over my Cisco IPS regex to Palo Alto but it failed to load. Below is my Cisco Regex.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Uu][Ss][Ee][Rr][-][Aa][Gg][Ee][Nn][Tt][:][\x20][^\x0d\x0a]*([Ss][Yy][Nn][Aa][Pp][Ss][Ee])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I tried creating a new pattern but it is to specific and not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am looking to search the http header for User-Agent and if the value contains the word Synapse then alert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can someone help me to better understand what I am doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can someone educate me AND help generate the RegEx example for me.. (that is my real question)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 21:58:42 GMT</pubDate>
    <dc:creator>scantwell</dc:creator>
    <dc:date>2014-08-15T21:58:42Z</dc:date>
    <item>
      <title>RegEx looking for a specific UserAgent.</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15716#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I tried to migrate over my Cisco IPS regex to Palo Alto but it failed to load. Below is my Cisco Regex.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Uu][Ss][Ee][Rr][-][Aa][Gg][Ee][Nn][Tt][:][\x20][^\x0d\x0a]*([Ss][Yy][Nn][Aa][Pp][Ss][Ee])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I tried creating a new pattern but it is to specific and not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am looking to search the http header for User-Agent and if the value contains the word Synapse then alert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can someone help me to better understand what I am doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can someone educate me AND help generate the RegEx example for me.. (that is my real question)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 21:58:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15716#M408</guid>
      <dc:creator>scantwell</dc:creator>
      <dc:date>2014-08-15T21:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx looking for a specific UserAgent.</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15717#M409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works for XP detection:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Capture-xp user agent.PNG" class="image-0 jive-image" src="https://live.paloaltonetworks.com/legacyfs/online/14997_Capture-xp user agent.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So I would guess the pattern could be: User-Agent:.Synapse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to perfect it is to get a packet capture.&amp;nbsp; You may want to start with a pattern of just Synapse&amp;nbsp; and once you get a packet capture you can tune it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 23:34:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15717#M409</guid>
      <dc:creator>HITSSEC</dc:creator>
      <dc:date>2014-08-16T23:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx looking for a specific UserAgent.</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15718#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Phil,&lt;/P&gt;&lt;P&gt;Using your string and manipulating it a little bit, I was able to adapt it to my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 13:41:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/regex-looking-for-a-specific-useragent/m-p/15718#M410</guid>
      <dc:creator>Mariusz.pianka</dc:creator>
      <dc:date>2015-03-08T13:41:35Z</dc:date>
    </item>
  </channel>
</rss>

