Solaris 10 audit, need to catch redirections


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 audit, need to catch redirections
# 1  
Old 02-03-2015
Solaris 10 audit, need to catch redirections

Hello,
I've installed solaris audit on a Solaris 10 SPARC system.
Latest patch 143962-04 is installed.
My problem is that while I can catch all arguments and processes created, I cannot catch a redirection. ie
Code:
cat /tmp/test.txt > /tmp/test2.txt

Catches the first part but not the redirection.
Can somebody tell if it is a limitation of the system, or I'm just missing something?

Thank you

Last edited by rbatte1; 02-03-2015 at 11:36 AM.. Reason: Capitalised first person singular
# 2  
Old 02-03-2015
Redirections are done by the shell before the command is exec'ed. So tracing exec operations won't see redirections.
# 3  
Old 02-03-2015
Quote:
Originally Posted by Don Cragun
Redirections are done by the shell before the command is exec'ed. So tracing exec operations won't see redirections.
So... no ideas on how to catch them?

Solaris audit is growing veeeery tiresome...
# 4  
Old 02-03-2015
You don't "catch" as much as "replace".
Code:
exec >stdout-output
exec 2>stderr-output
exec <stdin-input

Of course, being unable to use their output or feed a script any input makes it very annoying to use...
# 5  
Old 02-03-2015
If you audit file creation, you will have events from specified user.

Around the same timestamp it would generate file creation and executed command with parameters passed (other class).

I haven't tested this of course but i figure it is like that.

Question is what is the actual requirement of audit, what information on what incident do you need ?
Try talking to the folks to refine/define the requirements of audit, be more specific etc.

Hope that helps
Regards
Peasant.
# 6  
Old 02-03-2015
Quote:
Originally Posted by gowron
So... no ideas on how to catch them?

Solaris audit is growing veeeery tiresome...
Redirection is just another form of file creation/truncation/read/write.

How is that any different from starting an editor and opening the file from within the editor? You don't see that on any command line either.

If you're already auditing file creation/truncation/read/write, it really doesn't matter HOW the user did something. And if you're not already auditing those, you're wasting your time with auditing.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Audit not working on Solaris 10

hi, I enabled bsm modules (/etc/security/bsmconv) and rebooted Solaris 10. But service is going into maintenance state. I rebooted server and I see one error saying "sys/c2audit:audit_kssl() not defined properly". I am not sure, what it is indicating and how it should be fixed. Please suggest, how... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Solaris

Audit useradd/userdel - Solaris 11

Linux audits in syslog, any time a user is deleted or added. However, I'm running a Solaris11 VM, and find no such entries. How can I enable auditing for useradd and userdel? Oracle's documentation on managing the auditing service, has been of no assistance. Thanks. Customizing What Is... (7 Replies)
Discussion started by: Nvizn
7 Replies

3. Solaris

How to view audit logs in Solaris?

Does anyone know if there is software written to view the audit logs generated by Solaris? I am referring the the logs created by auditd. It produces an unreadable log. I am familiar with auditreduce and praudit, but I am looking for something that produces a report, much like logwatch looks at the... (4 Replies)
Discussion started by: brownwrap
4 Replies

4. Solaris

Enabling Solaris Audit log: Solaris 9

Dear All, I have one of my Servers, running Solaris 9. I wanna enable the Audit log enabling, the way I did in Solaris 10 Servers. After running, the bsmconv script, giving the reboots, modifying all the audit files in /etc/security, the audit is enabled, but the audit file which shall be... (3 Replies)
Discussion started by: sumeet1806
3 Replies

5. Solaris

Cron audit problem in Solaris 8

cron audit problem. job failed I’m getting problem with crontab in Solaris 8 Crontab stop and is not running for all the cron jobs under cat /var/cron/log > CMD: /var/sh/go.sh > root 24835 c Sun Sep 26 08:06:00 2010 < root 24835 c Sun Sep 26 08:06:00 2010 rc=1 ! cron audit problem.... (5 Replies)
Discussion started by: Mr.AIX
5 Replies

6. Solaris

Audit in Solaris Servers.

Hi Friends I am a Solaries newbie and I am looking out for a software or command or config that can capture all commands run by all users on a server on a daily basis. I believe that this Audit is being done in almost all enterprises and would like to know how the same is done there. Any... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

7. Solaris

audit useradd, userdel on solaris 10

I just want to audit and log to syslog when a user is added, removed or modified from the system. According to the docs I have: #/etc/security/audit_control dir:/var/audit flags:ua minfree:20 naflags:ua plugin:name=audit_syslog.so.1; p_flags=ua But neither syslog nor auditreduce -c ua... (7 Replies)
Discussion started by: glisha
7 Replies

8. Solaris

audit in solaris 10

can you please share what you use to audit what files are deleted, when files are deleted and who deleted them? thx (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

9. Solaris

audit in solaris

How do I know that audit is enabled in soalris. in AIX 'audit query' command gives me the info whether auditing is on or not. Raghav (1 Reply)
Discussion started by: raghavender_sri
1 Replies

10. Solaris

Sun Solaris Audit Program

Hi All, Any one has, sun solaris audit program which covers everything one need to check as a security auditor. Audit Program will help. Thanks, Ghanshyam Emails not allowed - see the Rules (4 Replies)
Discussion started by: ghanshyampatel
4 Replies
Login or Register to Ask a Question