<?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: How to audit security logs to find password compromises? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357303#M8963</link>
    <description>&lt;P&gt;Hi thomasbchurch,&lt;BR /&gt;
to have the 4624 within 120 seconds after 4625 it's easy using transaction command, the problem is to know that it's a compromised password and not a simple logon fail.&lt;BR /&gt;
Anyway, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog (EventCode=4624 OR EventCode=4625) 
| transaction Account_Name, Workstation_Name startswith="EventCode=4625" endswith="EventCode=4624" maxspan=120s
| search EventCode=4624 EventCode=4625 
| table _time Account_Name, Workstation_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 08:45:11 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-09-26T08:45:11Z</dc:date>
    <item>
      <title>How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357302#M8962</link>
      <description>&lt;P&gt;We audit the security logs looking for password compromises.  A user will put the password in as the username and result in a 4625.  The user will then log in within minutes on the same machine and show a 4624.  We then have the user name and the password.&lt;BR /&gt;&lt;BR /&gt;
We currently use the below command.  This show us the password comprimise and the workstation name.   I am trying to figure out how to add a line to show the 4624's within a 120 seconds of a failed log on.&lt;/P&gt;

&lt;P&gt;4625 | stats count by Account_Name, Workstation_Name | sort - Account_Name &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357302#M8962</guid>
      <dc:creator>thomasbchurch</dc:creator>
      <dc:date>2020-09-29T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357303#M8963</link>
      <description>&lt;P&gt;Hi thomasbchurch,&lt;BR /&gt;
to have the 4624 within 120 seconds after 4625 it's easy using transaction command, the problem is to know that it's a compromised password and not a simple logon fail.&lt;BR /&gt;
Anyway, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog (EventCode=4624 OR EventCode=4625) 
| transaction Account_Name, Workstation_Name startswith="EventCode=4625" endswith="EventCode=4624" maxspan=120s
| search EventCode=4624 EventCode=4625 
| table _time Account_Name, Workstation_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 08:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357303#M8963</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-26T08:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357304#M8964</link>
      <description>&lt;P&gt;That worked thank you!  The only issue im running into now is we have alot of system noise that has account names that show up as"-"  frequently as 4624's.  I can do search NOT Account_Name=- or where Account_Name != "-"  however this removes any search with - in it.  is there a way to have - removed from just 4624's using the search above?  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357304#M8964</guid>
      <dc:creator>thomasbchurch</dc:creator>
      <dc:date>2020-09-29T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357305#M8965</link>
      <description>&lt;P&gt;index=wineventlog  (EventCode=4624 OR EventCode=4625)&lt;BR /&gt;&lt;BR /&gt;
| transaction Account_Name, Workstation_Name startswith="EventCode=4625" endswith="EventCode=4624" maxspan=120s&lt;BR /&gt;&lt;BR /&gt;
| search EventCode=4624 EventCode=4625    Account_Name!="-" &lt;BR /&gt;
| table  _time Account_Name, Workstation_Name&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357305#M8965</guid>
      <dc:creator>sajidalisajid</dc:creator>
      <dc:date>2020-09-30T00:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357306#M8966</link>
      <description>&lt;P&gt;index=wineventlog (EventCode=4624 OR EventCode=4625)&lt;BR /&gt;&lt;BR /&gt;
| transaction Account_Name, Workstation_Name startswith="EventCode=4625" endswith="EventCode=4624" maxspan=120s&lt;BR /&gt;&lt;BR /&gt;
| search EventCode=4624 EventCode=4625    Account_Name!="-" &lt;BR /&gt;
| table  _time Account_Name, Workstation_Name&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357306#M8966</guid>
      <dc:creator>sajidalisajid</dc:creator>
      <dc:date>2020-09-30T00:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to audit security logs to find password compromises?</title>
      <link>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357307#M8967</link>
      <description>&lt;P&gt;To narrow down to a possible password in the username field, you need to add the Sub_Status field for a value of "0xc0000064"&lt;BR /&gt;
index=wineventlog EventCode=4625 Sub_Status="0xc0000064"&lt;BR /&gt;
This will return failed logon attempts where "Username does not exist."&lt;/P&gt;

&lt;P&gt;The problem you have is that you will have a username that doesn't exist (likely a typo of the user's name, but sometimes is a password) and then you will have a valid username. Therefore, your transaction cannot be by the Account_Name field. If your target is a workstations, you can probably remove Account_Name from the transaction. Things will be more difficult if you're working with an RDP server or something else with lots of logons from different users. &lt;/P&gt;

&lt;P&gt;Explore your data with the addition of the Sub_Status - I think that will get you closer to where you want to be. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-audit-security-logs-to-find-password-compromises/m-p/357307#M8967</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2020-09-30T00:15:50Z</dc:date>
    </item>
  </channel>
</rss>

