<?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 Detecting Port Knocking in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Detecting-Port-Knocking/m-p/436369#M76130</link>
    <description>&lt;P&gt;I'm looking for specific conditions where 2 or more ports (as seen by firewall) have allowed events (action=allowed) and then a third port, typically with a service such as port 22 is the final request. This far, I am working with:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=firewall_index&lt;BR /&gt;
    | bin _time span=5m&lt;BR /&gt;
    | stats count, values(dest_zone) as dest_zone, values(dest_port) as dest_port,&lt;BR /&gt;
         values(user) as User by _time src_zone src_ip dest_ip  &lt;BR /&gt;
    | where (src_zone != dest_zone)&lt;BR /&gt;
    | bin _time as Day span=1d &lt;BR /&gt;
    | eventstats values(dest_port) as all_dest_ports by Day src_ip dest_ip&lt;BR /&gt;
    | where (mvcount(dest_port) &amp;gt;= 5)  OR (mvcount(all_dest_ports) &amp;gt;= 25)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which was borrowed for a port scan search.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2018 13:20:46 GMT</pubDate>
    <dc:creator>drico618</dc:creator>
    <dc:date>2018-12-13T13:20:46Z</dc:date>
    <item>
      <title>Detecting Port Knocking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detecting-Port-Knocking/m-p/436369#M76130</link>
      <description>&lt;P&gt;I'm looking for specific conditions where 2 or more ports (as seen by firewall) have allowed events (action=allowed) and then a third port, typically with a service such as port 22 is the final request. This far, I am working with:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=firewall_index&lt;BR /&gt;
    | bin _time span=5m&lt;BR /&gt;
    | stats count, values(dest_zone) as dest_zone, values(dest_port) as dest_port,&lt;BR /&gt;
         values(user) as User by _time src_zone src_ip dest_ip  &lt;BR /&gt;
    | where (src_zone != dest_zone)&lt;BR /&gt;
    | bin _time as Day span=1d &lt;BR /&gt;
    | eventstats values(dest_port) as all_dest_ports by Day src_ip dest_ip&lt;BR /&gt;
    | where (mvcount(dest_port) &amp;gt;= 5)  OR (mvcount(all_dest_ports) &amp;gt;= 25)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which was borrowed for a port scan search.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 13:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detecting-Port-Knocking/m-p/436369#M76130</guid>
      <dc:creator>drico618</dc:creator>
      <dc:date>2018-12-13T13:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Port Knocking</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Detecting-Port-Knocking/m-p/436370#M76131</link>
      <description>&lt;P&gt;@drico618 "such as port 22" as in only port 22 or any port?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Detecting-Port-Knocking/m-p/436370#M76131</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-13T17:23:54Z</dc:date>
    </item>
  </channel>
</rss>

