solaris BSM and Auditing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers solaris BSM and Auditing
# 15  
Old 03-29-2007
Bug steps

you auditd config should like the following:


run

/etc/security/bsmconv

make sure the /etc/system has been update
(set c2audit:audit_load = 1)

reboot


vi audit_startup

/usr/bin/echo "Starting BSM services."
/usr/sbin/auditconfig -conf
/usr/sbin/auditconfig -aconf
/usr/sbin/auditconfig -setpolicy +argv

Add the following class to you /etc/security/audit_class

0x08000000:cc:CIS custom class

vi the audit_event

find entry 23 and add cc, just like the following entry:

23:AUE_EXECVE:execve(2)Smilies,ex,cc

vi audit_control

make sure that you have the following lines:

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

vi audit_user

where userX is the name of the user you want to audit.

userX:lo:no
userX:lo,ad,cc,exec,all
userX:lo,ad,cc,exec,al


to get any reading from your logs use the below command:

auditreduce -c lo /var/audit/20070329110000.not_terminated.*servername* |praudit

and that will give you what you want !!
good luck.
# 16  
Old 03-30-2007
fine!

hi auditd. Its ok now Smilie
Thanks for yor help.
# 17  
Old 09-25-2007
Effective UID root

Hello all,

I am working with a solaris 10 system that has minimum 250 users on it during any business day. I need to track all +ex where the effective uid is root and nothing more. BSM seems like the best tool for this because of how well it tracks each user with it's audit-id.

I have root:+ex in my audit_user file, however this setting applies only for console logins of root because we do not allow remote. I have flags: +ex in my audit_control file, however this setting with the number of users I have will generate an audit trail which is too large for my file system with a ton of unnecessary data. Does anyone know how I could setup BSM to audit only the effective UID of root?
# 18  
Old 01-20-2008
I need to find some answers for this, according to the manuals this BSM auditing when turned on uses up a lot of disk space, my question is how much disk will the logs use up every month?

Also does anybody also know what is the equivalent of solaris BSM on hpux, does HPUX have any built in auditing capabilities similiar to solaris?

Last edited by sparcguy; 01-21-2008 at 05:04 AM..
# 19  
Old 03-02-2008
Quote:
Originally Posted by sparcguy
I need to find some answers for this, according to the manuals this BSM auditing when turned on uses up a lot of disk space, my question is how much disk will the logs use up every month?
How long is a piece of string? Smilie

The problem is that it depends on a lot of things, like:
  • number of active and audited users
  • user activity (running lots of commands)
  • policy settings (such as argv and arge)

The best way is to start auditing using the settings you want and closely monitor the audit trail, and then tune the settings if they grow too large.

I have system which generates over 100 MB/day and I have others which generates less than 1 MB/day - using the same audit settings.

See this page for more information.
 
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