<?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: The SPL search command about port scanning in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358006#M174814</link>
    <description>&lt;P&gt;eventcount field gets added automatically as part of transaction command -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | transaction maxpause=7s maxspan=60s scan_sip scan_dip | where eventcount &amp;gt;40 | rename eventcount as count | table scan_sip scan_dip count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 May 2017 10:00:35 GMT</pubDate>
    <dc:creator>dineshraj9</dc:creator>
    <dc:date>2017-05-02T10:00:35Z</dc:date>
    <item>
      <title>The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358003#M174811</link>
      <description>&lt;P&gt;Now I'm doing a port scan alert Policy.&lt;/P&gt;

&lt;P&gt;Port scanning is a hacker's attack method。I can see its activity track in the firewall。I can see the source IP（scan_sip）, source port and destination IP（scan_dip）, destination port。Too many ports connected log on the firewall。&lt;/P&gt;

&lt;P&gt;I passed the following method to extract the port scan behavior.&lt;/P&gt;

&lt;P&gt;Set a time range, for example: 60s. And the interval between each event can not be greater than 7s. There are more than 40 elements in the collection. I think he is port scan, how do i search for such events?&lt;/P&gt;

&lt;P&gt;I only need scan_sip, scan_dip, the number of elements in the collection&lt;/P&gt;

&lt;P&gt;use "transaction"？&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/194291-02.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358003#M174811</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2020-09-29T13:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358004#M174812</link>
      <description>&lt;P&gt;Yes, try using transaction command this way -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | transaction maxpause=7s maxspan=60s scan_sip scan_dip | where eventcount &amp;gt;=40
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 07:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358004#M174812</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-02T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358005#M174813</link>
      <description>&lt;P&gt;ok.now, How do I count the number of collections?&lt;/P&gt;

&lt;P&gt;I want to get this result：&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;scan_sip      scan_dip      count

1.1.1.1        2.2.2.2             45
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 09:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358005#M174813</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2017-05-02T09:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358006#M174814</link>
      <description>&lt;P&gt;eventcount field gets added automatically as part of transaction command -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | transaction maxpause=7s maxspan=60s scan_sip scan_dip | where eventcount &amp;gt;40 | rename eventcount as count | table scan_sip scan_dip count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 May 2017 10:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358006#M174814</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-02T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358007#M174815</link>
      <description>&lt;P&gt;good !  thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358007#M174815</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2017-05-05T02:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: The SPL search command about port scanning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358008#M174816</link>
      <description>&lt;P&gt;If the scan_port (the port following the scan_ip field) is all the same, how do I exclude this group of events&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-SPL-search-command-about-port-scanning/m-p/358008#M174816</guid>
      <dc:creator>xsstest</dc:creator>
      <dc:date>2020-09-29T13:58:01Z</dc:date>
    </item>
  </channel>
</rss>

