Splunk Search

How do you identify all accounts not automatically locked after 5 consecutive failed log in attempts?

sahiltcs
Path Finder

I need to check how to identify all technical accounts that are not automatically locked after 5 consecutive failed log in attempts

Please help with the query

Thanks,
Sahil

0 Karma
1 Solution

lakshman239
Influencer

When an account gets locked out, Active Directory sends out EventCode=4740. So, if you are indexing AD security logs, you could check for lock-outs using

index=wineventlog EventCode=4740 Account_Name=* ..... shows all locked accounts.

index=msad | timechart span=5m sum(badPwdCount) AS total by sAMAccountName ... gives count of lockouts for each user.

So, you can run the 2nd search to check for lockout counts and check if you have a 4740 event for that user. If there is no record, that could potentially indicate an account not getting locked out.

View solution in original post

0 Karma

lakshman239
Influencer

When an account gets locked out, Active Directory sends out EventCode=4740. So, if you are indexing AD security logs, you could check for lock-outs using

index=wineventlog EventCode=4740 Account_Name=* ..... shows all locked accounts.

index=msad | timechart span=5m sum(badPwdCount) AS total by sAMAccountName ... gives count of lockouts for each user.

So, you can run the 2nd search to check for lockout counts and check if you have a 4740 event for that user. If there is no record, that could potentially indicate an account not getting locked out.

0 Karma

sahiltcs
Path Finder

I checked Above query but not worked , Can you give me proper query so that I can test, May be query is right but some argument is missing.

Thanks,
Sahil

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...