Some others have already written simple auditd decoders, but I decided
to take a stab at something comprehensive enough for inclusion into
release. It has been tested with a few supported types on logs from
CentOS 5.5 and Ubuntu 10.04 LTS. Auditd supports over 90 event types, so
obviously this only supports a small subset, but I think it should be a
good start for most situations.
Please try it out and let me know if your logs decode properly. Do the
extracted fields make sense? Any suggestions?
Here is the current rev (available for one month from the date of this
post): http://pastebin.com/8R6S5L1N
Thanks,
Mike
> Here is the current rev (available for one month from the date of this
> post): http://pastebin.com/8R6S5L1N
Woops, copy and paste error. The auditd-path decoder should look this this:
<!-- path (will only decode if name is not null)-->
<decoder name="auditd-path">
<parent>auditd</parent>
<prematch offset="after_parent">^PATH </prematch>
<regex offset="after_parent">^(PATH)
msg=audit\(\d\d\d\d\d\d\d\d\d\d.\d\d\d:(\d+)\): item=\d+ name="(\.+)"
inode=\d+ dev=\S+ mode=\d+ ouid=\d+ ogid=\d+ rdev=\S+</regex>
<order>action,id,extra_data</order>
</decoder>
You're not seeing auditd-user because ossec-logtest doesn't show the
child decoder. It looks like it decoded it properly, but it would be
more useful with the user. What distro is this from? I would like to
compare this with my samples to see why I may not have decoded the user.
--
Michael Starks
[I] Immutable Security
http://www.immutablesecurity.com
> **Phase 2: Completed decoding.
> decoder: 'auditd'
> action: 'USER_ACCT'
> id: '1222'
> extra_data: '/usr/bin/sudo'
> srcip: '?'
> status: 'success'
I took a look at the decoder. Here's a version that will decode the
username for you: http://pastebin.com/UjzyvH46. Just replace the <!--
user-related --> section. I have to do some regression testing, but I
don't think it will break the other formats.
Regards,
Dennis
--
Dennis Golden
Golden Consulting Services, Inc.
Seems like a good idea; I concur. But I wonder if -r would be pretty
standard across the nixes.
-r requires 2 arguments, a high uid and a low uid.
Which high and which low will be free on every system out there?
Why not let the system decide? ;)
I have configured OSSEC sever of an AIX5.3 box, i cant seem to get email
alerting to work
see below the ERROR , i am getting in the ossec.log
2011/07/18 15:31:35 os_sendmail(1764): WARN: Mail from not accepted by server
2011/07/18 15:31:35 ossec-maild(1223): ERROR: Error Sending email to 10.x.x.x (
smtp server)
Could someone help on how to fix this problem
Kind Regards
George Ochola