Solaris logs - Tracking failed attempts from my host


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris logs - Tracking failed attempts from my host
# 8  
Old 01-30-2012
Hey bartus thanks for the reply - I see now that dtrace is real-time so it's no good to me unless it is running on the machine at the time of the infraction and I manage over 22K servers for a large organisation and they're all eventually being converted to Linux so I guess I'm screwed. In any event it was an interesting tool to view - thank you for your help!
# 9  
Old 01-30-2012
If successful login attempts normally show in "last", ask you administrator to take a look at the unsuccessful login attempts with "lastb" (if "btmp" is enabled). I'm not certain if Solaris has the "lastb" command.
# 10  
Old 01-30-2012
The problem is, OP was asking about outgoing SSH logins, not the incoming ones Smilie
# 11  
Old 01-31-2012
My mistake. The information recorded in btmp on the remote computer is enough to identify the source computer and the destination account, but not the source account.
# 12  
Old 01-31-2012
This just seems kind of weird unless you have dTrace and according to what I've read that is only for Solaris. The only other thing I can think of is if the admin checks each users' bash_history but even that is really questionable. If someone's bash history shows someone initiating an ssh attempt to that host it does not necessarily they conducted it at the specific time of the occurrence. Secondly, if someone is using ksh or other shell I am not aware of a history file associated with these shells.
# 13  
Old 02-01-2012
There is another option: process auditing. But it is way more difficult to setup than this DTrace one-liner. It also introduces overhead to the system (DTrace does not do that). You can read about Solaris auditing services here: Oracle Solaris Auditing - System Administration Guide: Security Services. There is probably something similar in Linux.
# 14  
Old 02-08-2012
Quote:
Originally Posted by bartus11
There is another option: process auditing. But it is way more difficult to setup than this DTrace one-liner. It also introduces overhead to the system (DTrace does not do that). You can read about Solaris auditing services here: Oracle Solaris Auditing - System Administration Guide: Security Services. There is probably something similar in Linux.
Bartus - thank you for your help! We're moving all 33K machines to Linux - not sure how long that will take but I believe once we're all Linux they better have some additional auditing system otherwise I'm not sure how we're going to get that information if dtrace is the only one that is known and from what I read it is for SunOS / Solaris only.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Cybersecurity

Failed SSHD Login Attempts (15,000 per day) - Is that a lot compared to your server?

The purpose of this thread is for everyone to follow the same methodology so we can create a future table, for the benefit of all, that shows how many failed login attempts (hacking) per day per server (and per minute) are happening. This is not a thread on writing scripts or creating... (10 Replies)
Discussion started by: Neo
10 Replies

2. Solaris

Need to recover/move diskgroup from failed host to another host

Hi All I am having VxVm on two Solaris hosts. host1 is using disk group dgHR. right now this server went down due to hardware fault. Not I need to import this dgHR into host2 server. Please let me know the procedure for the same. (1 Reply)
Discussion started by: amity
1 Replies

3. Shell Programming and Scripting

Job tracking in logs

I have two log files from two different days and some jobs start on one day and finish on the next. I also have jobs that start and then don't finish until other jobs start and finish. I'm trying to create a csv file with job name, start time and end time in the order that the jobs started. ... (2 Replies)
Discussion started by: wawa
2 Replies

4. UNIX for Dummies Questions & Answers

TCP failed connection attempts from netstat -s

Dear experts, I am seeing a lot of TCP failed connection attempts from "netstat -s" on one of our servers. How can I pin point what connection failed and what are the ports involved? Any tools/commands I can dig in deeper to diag. what went wrong on these "failed connection attempts"? ... (2 Replies)
Discussion started by: cache51
2 Replies

5. Shell Programming and Scripting

Another question for tracking failed logins via script

Hello Experts, I have this initial shell script that tracks failed login attempts: #!/bin/bash #Fetch failed user logins to file failed-logins.txt grep -i failed /var/log/secure | awk '{ print $1, $2" ", $3" ", $9" ", $11 }' > failed-logins.txt #Splitting the failed-logins in... (10 Replies)
Discussion started by: linuxgeek
10 Replies

6. Shell Programming and Scripting

Create a script that executes when a user attempts to delete history logs

Hi, I have a linux redhat 9 server and I am concerned about the security on that server. I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history. I was thinking about... (4 Replies)
Discussion started by: mishkamima
4 Replies

7. AIX

ftp check for failed attempts

Hi, I have created the below ftp script to put files over to our capacity server, the check at the end works if ftp fails to run however if the script cannot login or the transfer itself failed there is no warnings. Does anyone know the syntax to trap the erorr codes or to put a check within... (3 Replies)
Discussion started by: chlawren
3 Replies

8. AIX

Denying IPaddress for Multiple Failed Login Attempts

Hi. I would like to be able to deny IP address for too many failed login attemps (either from ssh, sftp, ftp, etc). The system I wish this to work on is an AIX 5.1 system. I'm new to AIX but I'm a linux user. There is a program for linux called fail2ban which reads from the log files and see if... (1 Reply)
Discussion started by: metzgerh
1 Replies
Login or Register to Ask a Question