Sponsored Content
Operating Systems Solaris Solaris audit to syslog - where is arguments to the commands executed? Post 302404938 by masloff on Wednesday 17th of March 2010 02:54:07 PM
Old 03-17-2010
Solaris audit to syslog - where is arguments to the commands executed?

Hi,

we have server, that is auditing actions executed, and then sends them to the syslog server.

But there is arguments to issued to the commands in the audit trail, but there is no such arguments in the syslog output on the syslog server!

Example - I executed:

Code:
# ls -la

audit trail on the server
Code:
header,151,2,execve(2),,server.com,2010-03-17 18:50:46.784 +00:00
path,/usr/bin/ls
attribute,100555,root,bin,85,339,0
exec_args,2,ls,-la
subject,root,root,root,root,root,5259,3491027475,12281 131094 
return,success,0
zone,global

syslog output:
Code:
Mar 17 18:50:46 server.com audit: [ID 702911 audit.notice] execve(2) ok session 3491027475 by root as root:root in global from anotherserver.com obj /usr/bin/ls


Why am I missing the -la argument to the ls in the syslog output?

That`s mine conf files:
Code:
cat /etc/security/audit_control
#
# Copyright (c) 1988 by Sun Microsystems, Inc.
#
# ident "@(#)audit_control.txt  1.4     00/07/17 SMI"
#
dir:/var/audit
flags:lo,ex
minfree:20
naflags:lo
plugin:name=audit_syslog.so; p_flags=all

Code:
# auditconfig -getpolicy
audit policies = argv,cnt,zonename


Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Capturing commands executed by user

Hello Unix Champs, For keeping audit trail, I want to log the commands entered by the normal users, on their terminal into a text file. I tried putting a "script -a username.timestamp.txt" in the user profile file, but script command stops execution when user types exit or presses CTRL+D... (3 Replies)
Discussion started by: bhaven.haria
3 Replies

2. Solaris

rsh commands not getting executed from Solaris 10 System to AIX System

Hi Friends, I am trying to execute rsh commands from Solaris 10 system to AIX system. When I give; Solaris10# rsh <hostname> ls -l , it gives me an error rshd : 0826-826 The host name for your address is not known At the same time, Solaris10# rsh <hostname> ---- gives me remote shell of... (25 Replies)
Discussion started by: jumadhiya
25 Replies

3. Solaris

whole day commands executed by particular user

Hi all I want to know the commands executed a by particular user .. for the whole day on my machine. I have checked out with the commad $lastcomm <user> It is throwing an error called: .. /var/adm/pacct: No such file or directory Can u help me in this regard.. Thank U Naree (1 Reply)
Discussion started by: naree
1 Replies

4. UNIX for Dummies Questions & Answers

How does the internal commands are executed?

Hi all, I am new to unix OS. Commands(external commands) given by the user are examined by shell and later executed by kernel. Now I want to know how the internal(built in) commands are executed. Please clarify whether they are executed directly by shell or by kernel. Thanks in... (2 Replies)
Discussion started by: chaitra
2 Replies

5. Shell Programming and Scripting

Viewing the commands executed

Hi, I have executed a set of commands on the linux server and later rebooted the server. Is it possible to get the details of the commands I executed prior to the reboot? If yes please let me know how? Thanks. (1 Reply)
Discussion started by: yoursdavinder
1 Replies

6. UNIX for Dummies Questions & Answers

multiple commands to be executed at the same time

how to execute more than one command at the same time in unix .. (4 Replies)
Discussion started by: hemaa
4 Replies

7. Shell Programming and Scripting

To inform the executed commands

Dear friends, Whenever I do logout from a session initiated by ssh/su, I need to print a small report which says the login time, logout time, commands got executed.. How can it be done? I know when doing ssh, .profile file will get executed. Shall we do something with the help of it. (1 Reply)
Discussion started by: nagalenoj
1 Replies

8. UNIX for Dummies Questions & Answers

Clearing history of commands executed

Hi, I have cleared the commands by using >$HOME/.sh_history. But if i issue HISTORY it shows some reference numbers but not the commands executed. But i want to truncate those line numbers too. May i know how i can achieve this? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

9. Shell Programming and Scripting

How to time stamp executed commands?

Hi guys, I am executing a pretty long ksh script and need to time stamp every command which runs inside. Unfortunatly 'echo date' is not the option here. May be someone knows another way or utility which can be used to log executed command and timestamp next to it. Thanks PS I work in ksh88 (4 Replies)
Discussion started by: aoussenko
4 Replies

10. UNIX for Dummies Questions & Answers

List commands executed on a server

Hi All, how to list all the commands executed by users on a linux server.... I dont have access to others .bash_history. and i am not root user.. Please help.. Thanks in advance.. (6 Replies)
Discussion started by: nanz143
6 Replies
audit_syslog(5) 					Standards, Environments, and Macros					   audit_syslog(5)

NAME
audit_syslog - realtime conversion of Solaris audit data to syslog messages SYNOPSIS
/usr/lib/security/audit_syslog.so DESCRIPTION
The audit_syslog plugin module for Solaris audit, /usr/lib/security/audit_syslog.so, provides realtime conversion of Solaris audit data to syslog-formatted (text) data and sends it to a syslog daemon as configured in syslog.conf(4). The plugin's path is specified in the audit configuration file, audit_control(4). Messages to syslog are written if selected via the plugin option in audit_control. Syslog messages are generated with the facility code of LOG_AUDIT (audit in syslog.conf(4)) and severity of LOG_NOTICE. Audit syslog messages contain data selected from the tokens described for the binary audit log. (See audit.log(4)). As with all syslog messages, each line in a syslog file consists of two parts, a syslog header and a message. The syslog header contains the date and time the message was generated, the host name from which it was sent, auditd to indicate that it was generated by the audit daemon, an ID field used internally by syslogd, and audit.notice indicating the syslog facility and severity values. The syslog header ends with the characters "] ", that is, a closing square bracket and a space. The message part starts with the event type from the header token. All subsequent data appears only if contained in the original audit record and there is room in the 1024-byte maximum length syslog line. In the following example, the backslash () indicates a continuation; actual syslog messages are contained on one line: Oct 31 11:38:08 smothers auditd: [ID 917521 audit.notice] chdir(2) ok session 401 by joeuser as root:other from myultra obj /export/home In the preceding example, chdir(2) is the event type. Following this field is additional data, described below. This data is omitted if it is not contained in the source audit record. ok or failed Comes from the return or exit token. session <#> <#> is the session ID from the subject token. by <name> <name> is the audit ID from the subject token. as <name>:<group> <name> is the effective user ID and <group> is the effective group ID from the subject token. in <zone name> The zone name. This field is generated only if the zonename audit policy is set. from <terminal> <terminal> is the text machine address from the subject token. obj <path> <path> is the path from the path token The path can be truncated from the left if necessary to fit it on the line. Truncation is indi- cated by leading ellipsis (...). proc_uid <owner> <owner> is the effective user ID of the process owner. proc_auid <owner> <owner> is the audit ID of the process owner. The following are example syslog messages: Nov 4 8:27:07 smothers auditd: [ID 175219 audit.notice] system booted Nov 4 9:28:17 smothers auditd: [ID 752191 audit.notice] login - rlogin ok session 401 by joeuser as joeuser:staff from myultra Nov 4 10:29:27 smothers auditd: [ID 521917 audit.notice] access(2) ok session 255 by janeuser as janeuser:staff from 129.146.89.30 obj /etc/passwd OBJECT ATTRIBUTES
The p_flag attribute, specified by means of the plugin directive (see audit_control(4)), is used to further filter audit data being sent to the syslog daemon beyond the classes specified through the flags and naflags lines of audit_control and through the user-specific lines of audit_user(4). The parameter is a comma-separated list; each item represents an audit class (see audit_class(4)) and is specified using the same syntax used in audit_control for the flags and naflags lines. The default (no p_flags listed) is that no audit records will be gener- ated. EXAMPLES
Example 1: One Use of the plugin Line In the specification shown below, the plugin line (in conjunction with flags and naflags) is used to allow class records for lo but allows class records for am for failures only. Omission of the fm class records results in no fm class records being output. The pc parameter has no effect because you cannot add classes to those defined by means of flags and naflags and by audit_user(4). You can only remove them. flags: lo,am,fm naflags: lo plugin: name=audit_syslog.so; p_flags=lo,-am Example 2: Use of all In the specification shown below, with one exception, all allows all flags defined by means of flags and naflags (and audit_user(4)). The exception the am metaclass, which is equivalent to ss,as,ua, which is modified to output all ua events but only failure events for ss and as. flags: lo,am naflags: lo plugin: name=audit_syslog.so; p_flags=all,^+ss,^+as ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT Level |MT-Safe | +-----------------------------+-----------------------------+ |Interface Stability |: | +-----------------------------+-----------------------------+ | message format |Unstable | +-----------------------------+-----------------------------+ | message content |Unstable | +-----------------------------+-----------------------------+ | config parameters |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
auditd(1M), audit_class(4), audit_control(4), syslog.conf(4), attributes(5) NOTES
Use of the plugin configuration line to include audit_syslog.so requires that /etc/syslog.conf is configured to store syslog messages of facility audit and severity notice or above in a file intended for Solaris audit records. An example of such a line in syslog.conf is: audit.notice /var/audit/audit.log Messages from syslog are sent to remote syslog servers by means of UDP, which does not guarantee delivery or ensure the correct order of arrival of messages. If the parameters specified for the plugin line result in no classes being preselected, an error is reported by means of a syslog alert with the LOG_DAEMON facility code. The time field in the syslog header is generated by syslog(3C) and only approximates the time given in the binary audit log. Normally the time field shows the same whole second or at most a few seconds' difference. SunOS 5.10 26 Aug 2004 audit_syslog(5)
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy