From: Steve Grubb <sgrubb@redhat.com>
To: Warron S French <warron.s.french@aero.org>
Cc: "linux-audit@redhat.com" <linux-audit@redhat.com>
Subject: Re: AUDIT changes - true sense of security
Date: Fri, 18 Mar 2016 11:46:49 -0400 [thread overview]
Message-ID: <3237549.65a39n60nT@x2> (raw)
In-Reply-To: <BY1PR09MB0887D2F49855C831720CA4FBC78C0@BY1PR09MB0887.namprd09.prod.outlook.com>
On Friday, March 18, 2016 03:45:20 PM Warron S French wrote:
> Hello sir,
> The command with the '-l' argument, is that auditctl?
> The command with the '-s' argument... what is that one called, auditd?
These are both auditctl commands. The other command that you will need to read
up on is ausearch which is used to examine the resulting logs.
-Steve
> Thanks for replying so quickly, sorry for being a nag.
>
> Warron French, MBA, SCSA
> The Aerospace Corporation
>
> -----Original Message-----
> From: Steve Grubb [mailto:sgrubb@redhat.com]
> Sent: Friday, March 18, 2016 9:56 AM
> To: linux-audit@redhat.com
> Cc: Warron S French <warron.s.french@aero.org>
> Subject: Re: AUDIT changes - true sense of security
>
> On Friday, March 18, 2016 01:14:31 PM Warron S French wrote:
> > I have an issue, I believe, and I am asking for help on how to
> > properly address/assess it.
> >
> > I have been given guidance in support of auditing on CentOS-6.x systems:
> >
> > 1. To place various watch (-w) and action (-a) rules into place.
> >
> > 2. Make certain the configurations are immutable.
> >
> > Sometimes I have to add more rules, so I do that. However, I am not
> > certain if the rules are working properly, and I do know that I have
> > broken the auditd init-scripts on my systems a few times, and just
> > commented out the offending audit controls to work around/fix this very
> > type of problem.
> While you are experimenting, do not put in the -e 2 configuration option.
>
> > What I need to know is, since the configurations have to be immutable
> > ( with the -e 2) how can I properly start the audit service, and
> > without any inkling of a doubt be certain that the rules are in place
> > and are functioning properly?
>
> There is a rule listing command, -l, that will dump what the kernel has
> loaded. There is also a status command, -s, that will tell you if audit is
> enabled. If the rules are loaded and audit is enabled, its working.
> > Also, being a total novice, how can I test/trigger audit log actions
> > on watch and action rules to see that the rules are configured properly?
>
> If its a watch, then accessing the file and running ausearch should do it.
> If you have a syscall rule, then you have to trigger the syscall either by
> using a program or creating one.
> > Finally, is there a tool that will do a sanity check on the audit.rules
> > file?
> auditctl reports any problems that it sees with the rules.
>
> > Or is the only option to attempt to restart the auditd service, and
> > think "It started, it worked!" is acceptable?
>
> List the rules and status the audit subsystem.
>
> -Steve
prev parent reply other threads:[~2016-03-18 15:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-18 13:14 AUDIT changes - true sense of security Warron S French
2016-03-18 13:55 ` Steve Grubb
2016-03-18 15:45 ` Warron S French
2016-03-18 15:46 ` 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=3237549.65a39n60nT@x2 \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=warron.s.french@aero.org \
/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