<?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: Multi destination brute force attempt rule in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292520#M5347</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Authentication"
| stats values(tag) AS tag values(app) AS app count(eval('action'=="failure")) AS failure count(eval('action'=="success")) AS success BY src user
| multireport
   [ eventstats sum(failure) AS src_fails sum(success) AS src_successes list(user) AS users dc(user) AS user_count BY src ]
   [ eventstats sum(failure) AS user_fails sum(success) AS user_successes list(src) AS sources dc(src) AS src_count BY user ]
| where user_count &amp;gt; 5 OR src_count &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This keeps the raw events to examine but you can change the &lt;CODE&gt;eventstats&lt;/CODE&gt; to &lt;CODE&gt;stats&lt;/CODE&gt; to just keep the summary.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 14:23:38 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-06-30T14:23:38Z</dc:date>
    <item>
      <title>Multi destination brute force attempt rule</title>
      <link>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292519#M5346</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am trying to create a rule that alerts when one source IP/user tries to login in to several (more than one) different destinations/hosts but I'm struggling a bit with the syntax. I was wondering if anyone could help, this is what I've got so far: &lt;/P&gt;

&lt;P&gt;| from datamodel:"Authentication"."Authentication"&lt;BR /&gt;&lt;BR /&gt;
| stats values(tag) as tag,values(app) as app,count(eval('action'=="failure")) as failure,count(eval('action'=="success")) as success, by src, user&lt;BR /&gt;
| where failure&amp;gt;10 &lt;BR /&gt;
| streamstats sum(failure) as total_fails, values(user) as user, values(success) as success, values(failure) as failure by src&lt;BR /&gt;
| stats list(failure) as fails, list(success) as success, list(user) as user, dc(user) as user_count by src, total_fails&lt;BR /&gt;
| where user_count &amp;gt; 5&lt;/P&gt;

&lt;P&gt;Any help is appreciated, thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292519#M5346</guid>
      <dc:creator>Robbie1194</dc:creator>
      <dc:date>2020-09-29T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multi destination brute force attempt rule</title>
      <link>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292520#M5347</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Authentication"
| stats values(tag) AS tag values(app) AS app count(eval('action'=="failure")) AS failure count(eval('action'=="success")) AS success BY src user
| multireport
   [ eventstats sum(failure) AS src_fails sum(success) AS src_successes list(user) AS users dc(user) AS user_count BY src ]
   [ eventstats sum(failure) AS user_fails sum(success) AS user_successes list(src) AS sources dc(src) AS src_count BY user ]
| where user_count &amp;gt; 5 OR src_count &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This keeps the raw events to examine but you can change the &lt;CODE&gt;eventstats&lt;/CODE&gt; to &lt;CODE&gt;stats&lt;/CODE&gt; to just keep the summary.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292520#M5347</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-30T14:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multi destination brute force attempt rule</title>
      <link>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292521#M5348</link>
      <description>&lt;P&gt;Thanks for your answer, I gave it a go and it didn't do quite what I need it to do (definitely done better than my search though, I didn't even know multireport was a thing!)&lt;/P&gt;

&lt;P&gt;My goal is to alert when a src has at least 3 failed login attempts to 3 different destinations. As if someone was on the network with a few passwords trying different machine after machine till they get in. &lt;/P&gt;

&lt;P&gt;It's frying my brain. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292521#M5348</guid>
      <dc:creator>Robbie1194</dc:creator>
      <dc:date>2017-06-30T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multi destination brute force attempt rule</title>
      <link>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292522#M5349</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Authentication"."Authentication"
| stats values(tag) AS tag values(app) AS app count(eval('action'=="failure")) AS failureCount count(eval('action'=="success")) AS successCount BY src user
| stats sum(failureCount) AS failureCount values(dst) AS destinations dc(dst) AS dstCount
| where failureCount&amp;gt;=3 AND dstCount&amp;gt;=3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I took you literally with &lt;CODE&gt;destinations&lt;/CODE&gt; but maybe you meant &lt;CODE&gt;users&lt;/CODE&gt;; if so &lt;CODE&gt;s/dst/user/g&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 23:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Multi-destination-brute-force-attempt-rule/m-p/292522#M5349</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-30T23:58:38Z</dc:date>
    </item>
  </channel>
</rss>

