public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Miloslav Trmac <mitr@redhat.com>
Subject: Re: Help on Audit Rules
Date: Thu, 18 Oct 2012 13:02:07 -0400	[thread overview]
Message-ID: <5957403.p99AX3JrmM@x2> (raw)
In-Reply-To: <CALnj_=5feZrzZ7teaRronxny3mgpP1W+3+nLTopBAs__MCrRyA@mail.gmail.com>

On Thursday, October 18, 2012 08:33:59 AM Peter Moody wrote:
> auditctl -a exit,always -S execve -F success=1
> 
> will audit log all successful execve(2) calls by all uids. It will
> incur a (possibly significant) performance hit though. Is there a
> particular binary/user about you're concerned?

Well, this is not the way we normally do it in the audit world. This would 
capture both system and user events. Normally you want to focus on user 
events. So, if you correct this rule then you are still faced with it won't 
catch sourced files. Or the user could event start python and type the commands 
in directly.

So, the way we normally do this is to use the key stroke logging. The main 
issue is that you won't get the meaning of up arrows and things like that. I 
think there are ways of restricting the history file and in memory history so 
that users cannot circumvent it.

-Steve


> On Thu, Oct 18, 2012 at 6:35 AM, Koresh... <koreshkumar@gmail.com> wrote:
> > So if i am correct, there is no way we can get the normal user activity
> > through auditd daemon ...
> > 
> > Or , please suggest the best way to capture the activity logs for normal
> > users ....
> > 
> > On Thu, Oct 18, 2012 at 4:59 PM, Miloslav Trmac <mitr@redhat.com> wrote:
> >> ----- Original Message -----
> >> 
> >> > So my question is why normal users audit event logs cant be captured
> >> > as a "type=USER_TTY" , where as root logs can be captured
> >> > similarway.
> >> 
> >> USER_TTY is sent by the process that accepts the keyboard input.
> >> Unprivileged users are not allowed to send audit records (otherwise they
> >> would be able to fill the queue and/or the log partition, causing a DoS),
> >> so the USER_TTY record is discarded.
> >> 
> >> Even for unprivileged users you should have the type=TTY records,
> >> although
> >> they are noticeably more difficult to interpret.
> >> 
> >>    Mirek
> > 
> > --
> > 
> > 
> > Thanks & Regards,
> > 
> > - Koresh

      parent reply	other threads:[~2012-10-18 17:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-17  2:51 Help on Audit Rules Koresh...
2012-10-17 14:37 ` Peter Moody
2012-10-18  1:39   ` Koresh...
2012-10-18 11:29     ` Miloslav Trmac
2012-10-18 13:35       ` Koresh...
2012-10-18 15:33         ` Peter Moody
2012-10-18 15:35           ` Peter Moody
2012-10-18 15:50             ` Peter Moody
2012-10-18 17:02           ` Steve Grubb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5957403.p99AX3JrmM@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=mitr@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox