<?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 Password Spray Search / Alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505532#M141277</link>
    <description>&lt;P&gt;Hello! I am building an alert to detect potential password spraying (it is looking for 10 or more failed logons within the last 15 minutes, where the username is correct but the password is wrong).&lt;/P&gt;&lt;P&gt;It works well, however there is one issue. If the same user fails to login a lot then it will trigger the alert. I only want a failure to count if the usernames are different. For example, if one user fails to login 10 times it will NOT alert. If 10 different users fail to login once each then it would alert. Below is my syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*-windows-logs EventCode=4625 signature="User name is correct but the password is wrong"
Account_Name!=*$
| stats count by src_ip
| where count &amp;gt; 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 16:15:36 GMT</pubDate>
    <dc:creator>johann2017</dc:creator>
    <dc:date>2020-06-22T16:15:36Z</dc:date>
    <item>
      <title>Password Spray Search / Alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505532#M141277</link>
      <description>&lt;P&gt;Hello! I am building an alert to detect potential password spraying (it is looking for 10 or more failed logons within the last 15 minutes, where the username is correct but the password is wrong).&lt;/P&gt;&lt;P&gt;It works well, however there is one issue. If the same user fails to login a lot then it will trigger the alert. I only want a failure to count if the usernames are different. For example, if one user fails to login 10 times it will NOT alert. If 10 different users fail to login once each then it would alert. Below is my syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*-windows-logs EventCode=4625 signature="User name is correct but the password is wrong"
Account_Name!=*$
| stats count by src_ip
| where count &amp;gt; 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 16:15:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505532#M141277</guid>
      <dc:creator>johann2017</dc:creator>
      <dc:date>2020-06-22T16:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Password Spray Search / Alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505536#M141278</link>
      <description>&lt;P&gt;You are counting events by src_ip when what you want is distinct accounts by src_ip&lt;BR /&gt;&lt;BR /&gt;Replace your "count" with "dc(Account_Name) AS distinct_accounts" and the correct the where to use this new field.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*-windows-logs EventCode=4625 signature="User name is correct but the password is wrong"
Account_Name!=*$
| stats dc(Account_Name) AS distinct_accounts by src_ip
| where distinct_accounts &amp;gt; 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 16:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505536#M141278</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-06-22T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Password Spray Search / Alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505593#M141297</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/90723"&gt;@diogofgm&lt;/a&gt;&amp;nbsp;this worked!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 19:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Password-Spray-Search-Alert/m-p/505593#M141297</guid>
      <dc:creator>johann2017</dc:creator>
      <dc:date>2020-06-22T19:23:30Z</dc:date>
    </item>
  </channel>
</rss>

