solaris BSM and Auditing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers solaris BSM and Auditing
# 8  
Old 03-07-2007
Bug update

Hi,

i have change the audit_control please see below


Audit_control

dir:/var/audit
flags:lo,ad,cc
minfree:20
naflags:lo


audit_event

0

Audit_user

#
# Copyright (c) 1988 by Sun Microsystems, Inc.
#
# ident "@(#)audit_user.txt 1.6 00/07/17 SMI"
#
#
# User Level Audit User File
#
# File Format
#
# username:always:never
#
root:lo:no
hassan:lo,ad,cc
paul:lo,cc,ad

#ps
PID TTY TIME CMD
10696 pts/1 0:00 login
10790 pts/1 0:00 ps
10705 pts/1 0:00 ksh

#auditconfig -getpinfo 10705
audit id = hassan(100)
process preselection mask = all(0xffffffff,0xffffffff)
terminal id (maj,min,host) = 6413,23,unknown(172.16.1.202)
audit session id = 3136872915


auditreduce -u $uid /path/to/audit-trail | praudit
file,1970-01-01 01:00:00.000 +01:00,
file,2007-03-07 10:34:13.000 +00:00,

auditreduce -m AUE_EXECVE /path/to/audit-trail | praudit
file,1970-01-01 01:00:00.000 +01:00,
file,2007-03-07 10:33:21.000 +00:00,


Would it be possible to audit events from user level audit events
# 2048 - 6143 Reserved
?

I tried /usr/sbin/auditconfig -setclass 2048 6143 but it don't work
auditconfig: Invalid kernel audit event number specified.
2048 is outside allowable range 0-512.

(i might of made a mistake in the command line)

As you can see, I have done all the recommand command. What i had in mind is a simple output from the logs just like what you get from rootsh. I will have a look at auditreduce and see if i can tune the output.


Thanks
# 9  
Old 03-07-2007
Quote:
Originally Posted by skywalker850i
#auditconfig -getpinfo 10705
audit id = hassan(100)
process preselection mask = all(0xffffffff,0xffffffff)
terminal id (maj,min,host) = 6413,23,unknown(172.16.1.202)
audit session id = 3136872915
This tells you that all events generated by this process will end up in the audit trail.

Quote:
auditreduce -u $uid /path/to/audit-trail | praudit
file,1970-01-01 01:00:00.000 +01:00,
file,2007-03-07 10:34:13.000 +00:00,

auditreduce -m AUE_EXECVE /path/to/audit-trail | praudit
file,1970-01-01 01:00:00.000 +01:00,
file,2007-03-07 10:33:21.000 +00:00,
You need to replace /path/to/audit-trail with the actual path of the audit trail, e.g. /var/audit/20070307102412.not_terminated.vaccine.

Quote:
Would it be possible to audit events from user level audit events
# 2048 - 6143 Reserved
?

I tried /usr/sbin/auditconfig -setclass 2048 6143 but it don't work
auditconfig: Invalid kernel audit event number specified.
2048 is outside allowable range 0-512.
I'm not sure what you are trying to do here. The system audits those events based on your preselection mask, there is nothing you need to do to "enable" them.
# 10  
Old 03-07-2007
Bug it's working

auditd you are the king of auditing. it's working now.

it's logging (cd,ls) commands.

header,137,2,execve(2),,beatrix.cyberslotz.co.uk,2007-03-07 14:15:59.040 +00:00
path,/usr/bin/ls
attribute,100555,root,bin,32,342,0
exec_args,1,ls


task completed. Smilie

thank you
# 11  
Old 03-20-2007
X2100 AMD server

I am having a problem getting info from the x2100 servers running solaris 10. I can get things like (ls,cd) and so on but if i use the vi command the logs doesn't tell me what file the user has opened or (vi) at the time.

I wonder if it's a problem with the x2100 os artch or maybe some extra config that i have to do to fix it. I am using the excat same config on my test Sun e250 and that is working just fine.

Help please.

Thanks
# 12  
Old 03-20-2007
You need to use the +argv audit policy to see the arguments to exec(2).

Run:
auditconfig -setpolicy +argv

and then add the following line to /etc/security/audit_startup (for it to persist across reboots):
/usr/sbin/auditconfig -setpolicy +argv
# 13  
Old 03-20-2007
got it

thanks auditd its working... Smilie
# 14  
Old 03-28-2007
How to filter unnecessary events?

Hi auditd,
I wanted to see only login/logout and exec event in my logs and set up my auditd configuration as follows. Since i get the logs from binary file to my Arcsight Agent using Arcsight Solaris BSM Agent, i get the logs that i don't want to see. So these logs also increasing the file size.

Since i am not familier with Solaris&BSM i almost try every option to filter following events. I don't know what they means so i don't get such logs.

How can i make a config that i can only see who is logged in and what command is he/she typed?

Thanks in advance!

AUE_DOORFS_DOOR_CALL ==
AUE_IOCTL


###audit_startup ###
#!/bin/sh
/usr/bin/echo "Starting BSM services."
/usr/sbin/deallocate -Is
/usr/sbin/auditconfig -conf
/usr/sbin/auditconfig -aconf
/usr/sbin/auditconfig -setpolicy +cnt
/usr/sbin/auditconfig -setpolicy +argv

### audit_control ###
dir:/array/auditlogs
minfree:20
flags:lo,+ex
naflags:lo,+ex

####audit_user ####
#
# Copyright (c) 1988 by Sun Microsystems, Inc.
#
# ident "@(#)audit_user.txt 1.6 00/07/17 SMI"
#
#
# User Level Audit User File
#
# File Format
#
# username:always:never
#
#root:all:no
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Exclude an specific directory for auditing in Solaris 10

Hello, Im glad to become a member of this forums, Im new on solaris and recentrly im introducing to use auditing service in that system. The need is, that I need how to exclude a directory to the audit service not audit it. And, a plus, I need of how to disable auditing the root user in... (0 Replies)
Discussion started by: sysh4ck
0 Replies

2. Solaris

How can I read Solaris BSM log?

Hi all, I'm trying to read Solaris BSM log in user friendly form. Found old tools including bsmparser java tool and php code. But none of them working. What are you using for parsing BSM log? (2 Replies)
Discussion started by: sembii
2 Replies

3. Solaris

Needs some orientation on BSM/auditing

New to Solaris in general (coming from a RHEL background) I'm trying to enable auditing on the system with the following in /etc/security/audit_control: But there are two areas where it seems to break with expected behavior (maybe it's poor expectations on my part): 1) it seems to be... (0 Replies)
Discussion started by: thmnetwork
0 Replies

4. Solaris

BSM auditing

Hi , I don't want logs from a particular "library" to get recorded in the audit.log file. Is that possible with BSM? Please guide. Thanks. (2 Replies)
Discussion started by: chinchao
2 Replies

5. Solaris

BSM auditing issues, need to audit "permission denied"

Let me preface with I am semi-new to Solaris. I work with it in the labs at work and that's about my extent (although I run Linux at home). Well, a week ago security comes around with updated requirements, some of which are the need to audit all failures. For the life of me I cannot get a... (0 Replies)
Discussion started by: mph275
0 Replies

6. Solaris

Solaris user auditing

Hello, I was wondering when Solaris auditing is enabled, If it is possible to keep track of users that are allowed to sudo to root. In other words, I would like to know which user did what on my Solaris box. (assumig that user can "sudo su -" ) Thanks. (2 Replies)
Discussion started by: niyazi
2 Replies

7. Solaris

Solaris 9 Auditing

How do I setup audit to alert on write conditions for individual files? Thanks. (3 Replies)
Discussion started by: dxs
3 Replies

8. Solaris

Solaris BSM audit log

I got a lot of this message in my /var/audit log how can I exclude this message? header,127,2,invalid event number,fe,hostsol1.com.sg,2007-12-21 00:10:01.001 +08:00,argument,1,0x5,processor ID,argument ,2,0x3,flag,text,P_STATUS,subject,zhang1,root,root,root,root,18228,576129155,291 131094... (1 Reply)
Discussion started by: geoffry
1 Replies

9. Programming

how to write to Solaris BSM log

I have a C program and want to write messages to a log. BSM is being used for O/S auditing. Can I write my messages to the BSM log? If so, how do I do that? I'm not finding any API's for that. Any URLs, samples, guidance would be appreciated. (0 Replies)
Discussion started by: JDO
0 Replies

10. Solaris

Solaris BSM log software

I'm looking for a software to capture my systems logs, and bsm (basic security module) logs to centralise the administration. Do you have a suggestions. Opensource or not. (6 Replies)
Discussion started by: simquest
6 Replies
Login or Register to Ask a Question