All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: Rituraj Buddhisagar <rituraj@vayana.com>
Cc: linux-audit@redhat.com
Subject: Re: Excluding audit for BIND daemon
Date: Sat, 23 Sep 2017 14:54:47 -0400	[thread overview]
Message-ID: <4054591.avblJfevpb@x2> (raw)
In-Reply-To: <CAPHnQ1D8AiRwVSnqvbM3e3gPx7GwaLpfCQpFL06QdG=Eb3EzLw@mail.gmail.com>

Hello,

On Saturday, September 23, 2017 2:29:47 PM EDT Rituraj Buddhisagar wrote:
> As per the config file which I had sent (/etc/audit/audit.rules); below
> line has root_action
> 
> *-a exit,always -S all -F euid=0 -F perm=wxa -F auid!=4294967295 -k
> root_action*

If you wanted just people and not daemons, then I would suggest changing the
rule to this:

-a exit,always -S all -F euid=0 -F auid>=1000 -F auid!=4294967295 -F key=root_action

However, that is likely to trigger way more events than you need. Because this
will trigger on every single syscall and slow down the system. What you would
normally want to know is which commands were run as root. A rule for that
would look like this:

-a exit,always -F arch=b32 -S execve -F euid=0 -F auid>=1000 -F auid!=4294967295 -F key=root_action
-a exit,always -F arch=b64 -S execve -F euid=0 -F auid>=1000 -F auid!=4294967295 -F key=root_action

Another approach would be to enable keystroke logging. This would involve
adding pam_audit_tty to the su and sudo pam configs. Use the default setting
shown in the pam man page. If you do this, then don't have the root_action
rule because you'll get double information.

And last bit of advice...there are pre-written rules that you can install. On
Fedora, they are located in /usr/share/doc/audit/rules/. There is a README-rules
file that explains how to use them.

-Steve

> I do not see root_action anywhere else in /etc/audit/* and /etc/audisp/*
> 
> Thanks!
> 
> 
> 
> Best Regards,
> Rituraj B
> 
> On Sat, Sep 23, 2017 at 11:46 PM, Steve Grubb <sgrubb@redhat.com> wrote:
> > On Saturday, September 23, 2017 10:08:40 AM EDT Rituraj Buddhisagar wrote:
> > > Continued...from previous mail of mine..
> > > 
> > > While I am reading and exploring much on auditd & on how I can have a
> > > proper central system where logs are stored and daily reports get
> > > generated, you might want to look at my config file on server and
> > > suggest/recommend if anything - would appreciate if any pointers.
> > > 
> > > I am using default config which came with Ubuntu 16.04 and only change
> > 
> > was*
> > 
> > > "-F auid!=4294967295"* on line where root_action is defined .
> > 
> > There is no rule, root_action, that is shipped with the audit package. I
> > would
> > be interested in seeing it if you could copy and paste it into a reply.
> > 
> > -Steve

      parent reply	other threads:[~2017-09-23 18:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-22  5:09 Excluding audit for BIND daemon Rituraj Buddhisagar
2017-09-22 16:47 ` Steve Grubb
2017-09-23 14:00   ` Rituraj Buddhisagar
2017-09-23 14:08     ` Rituraj Buddhisagar
2017-09-23 18:16       ` Steve Grubb
2017-09-23 18:29         ` Rituraj Buddhisagar
2017-09-23 18:40           ` Rituraj Buddhisagar
2017-09-23 18:54           ` 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=4054591.avblJfevpb@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=rituraj@vayana.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.