All Apps and Add-ons

How to detect login failure followed by root password change in linux?

KSPriya
Explorer

Hello, fellow splunkers!

 

What I am trying to do is to detect a failed login attempts followed by root password change in linux with correlation search or datamodel search?

Labels (1)
Tags (1)
1 Solution

inventsekar
SplunkTrust
SplunkTrust

Hi Priya, with the "Splunk App for Unix and Linux", this will be an easy task.. without this App, you have to everything manually. 

ok, first lets try to monitor the folder /var/log/secure (the splunk user should have access to read this folder) and then once the logs reach Splunk, then you can check all details like login successful as well as failures and then you can drill down to the real issue of root user login failures(sudo failures).

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

View solution in original post

0 Karma

inventsekar
SplunkTrust
SplunkTrust

@KSPriya ... Please suggest us...

1. do you use Splunk_TA_nix or not

2. do you want to monitor for the root user or any user?.. because, linux users generally login with their user access and then do the sudo to become root., right.. so you might want to monitor user login failures, right.. or sudo commands you want to monitor.. 

 

best regards,

Sekar

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

KSPriya
Explorer

Hello sekar,

Good day!!!

Thanks for your reply. Below are my comments:

1. do you use Splunk_TA_nix or not - we are not using Splunk_TA_nix

2. do you want to monitor for the root user or any user?.. because, linux users generally login with their user access and then do the sudo to become root., right.. so you might want to monitor user login failures, right.. or sudo commands you want to monitor.. - ---That's correct we can't directly access sudo user, but i'm looking is for sudo/root password reset attempts after multiple user login failures.

 

Regards,

Kspriya

 

inventsekar
SplunkTrust
SplunkTrust

Hi Priya, with the "Splunk App for Unix and Linux", this will be an easy task.. without this App, you have to everything manually. 

ok, first lets try to monitor the folder /var/log/secure (the splunk user should have access to read this folder) and then once the logs reach Splunk, then you can check all details like login successful as well as failures and then you can drill down to the real issue of root user login failures(sudo failures).

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

KSPriya
Explorer

Thanks for the update champ

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...