|
|||||||||||
|
RE: BSM Audit Records
From: Small, Jim <jim.small(at)eds.com>
Date: Wed May 21 2003 - 18:37:12 EDT
I still haven't figured out the solution to my question. In a nut shell
it's this:
For each record, you will see something like this:
header,81,2,login - telnet,,Wed 21 May 2003 11:43:09 AM EDT, + 65 msec
subject,root,root,other,root,other,5861,5861,183 131095 host1.dom1.com
text,successful login
On the "subject" line, the last field is: 183 131095 host1.dom1.com
If you look on docs.sun.com
The IP address is obvious-host1.dom1.com. I'm not sure what the IP type is. I'm not sure what exactly the port is either and this is what I'm interested in. According to the docs, it's a 4-byte number. Is this 2-bytes for the local port and 2 for the remote? The information: 183 131095 doesn't seem to match anything, either the local or remote port. I tried converting it all to hex and grouping the hex digits in different ways, but that doesn't seem to work either. Am I doing it wrong or missing something? How do you interpret the information to get the correct port out of it? If it is helpful, here is what information I have found about BSM:
I've found two tools and the following articles about BSM:
First tool:
Second tool:
Docs/Info:
Darren's InFocus Article:
InFocus Article (for Intrusion Detection): http://www.securityfocus.com/infocus/1211
SANS Article:
Sun BluePrint:
Another Article and Tool:
Sun Docs:
<> Jim
-----Original Message-----
Darren,
I know about the docs.sun.com reference. Specifically, just like you said,
it covers the terminal ID:
For port numbers in the Solaris 7 release or earlier releases: 32-bit applications: 4-byte port number, 4-byte IP address 64-bit applications: 8-byte port number, 4-byte IP address For port numbers in the Solaris 8 or 9 releases: 32-bit with IPV4: 4-byte port number, 4-byte IP type, 4-byte IP address 32-bit with IPV6: 4-byte port number, 4-byte IP type, 16-byte IP address 64-bit with IPV4: 8-byte port number, 4-byte IP type, 4-byte IP address 64-bit with IPV6: 8-byte port number, 4-byte IP type, 16-byte IP address This doesn't completely clear things up for me though. Perhaps an example would be better. If I am parsing login/logout (lo) records in my "short" form, I might see something like this (truncated for clarity): +ftp access for root from 8197 21 host1.dom1.com on Wed 07 May 2003... +login - local for root from 0 0 192.168.128.95 on Mon 12 May 2003... +login - telnet for root from 419 23 192.168.145.35 on Mon 12 May 2003... +login - ssh for root from 0 1447 host1.dom1.com on Tue 20 May 2003...
Here we have 4 types of access:
If I do a file on ftp, dtlogin, telnet, and ssh, I can determine that they
are all 32bit apps:
Therefore, all of these except for dtlogin should be giving me a 4-byte port number, and 4-byte IP type, and a 4-byte IP address.
The 4-byte IP is obvious.
Now dtlogin, since you are logging in via the console, I'm not sure what you should expect and you get 0 0.
For the other 3, I connected to the Solaris 9 box and using netstat detected
the ports on the local and remote end.
For telnet, 419 23, it's the same story. 23 could be the local port, but what is 419? Also, this is not consistent with the documentation which states a 4-byte port number, especially because see below with ssh. For ssh, 0 1447, 1447 is the remote port, and 22 is the local. This seems to contradict the logic displayed by telnet and ftp earlier. So I don't know how I should interpret the port numbers. Is there more documentation somewhere or an example program? Is this just a problem with using praudit? Any advice or pointers would be greatly appreciated. Heck Darren, I'm in the Detroit Area Sun Technologies User Group, let me know who maintains BSM/auditd and maybe my local Sun friends can get them to speak at our group! Thanks, <> Jim Received on Fri May 23 15:12:05 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:37 EDT |
||||||||||
|
|||||||||||