Unfortunately your 'test version' rules are being used in the production version releases of SECSCN.  As I mentioned before, those rules came from SECSCN version 4.3. Version 4.4 is now available but I strongly suspect that the rules are the same in both versions.  Even more unfortunate, many C&A reps demand 'compliance' with SECSCN recommendations and insist that those rules are implemented exactly as written.  My colleagues and I spend a lot of time, effort and (<i>taxpayer</i>) dollars trying to convince certifiers and accreditors that the rules as written are not appropriate for operational systems and must be modified to avoid adversely impacting functionality.<div>
<br></div><div>The law of unintended consequences demands that no good deed goes unpunished.  I appreciate whatever work you contributed to developing SECSCN I just wish there was some documentation, from an authoritative source, that instructed compliance personnel about the importance and necessity of customized configurations.</div>
<div><br></div><div>-Mike Nixon, CISSP</div><div>LTC Engineering Associates, Inc.</div><div><br><div class="gmail_quote">On Sun, Aug 23, 2009 at 12:32 AM, David Muran-de Assereto <span dir="ltr"><<a href="mailto:dmuran@tuad.org" target="_blank">dmuran@tuad.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Aug 17, 2009, at 12:58 , Mike Nixon wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Attached are is the audit.rules file from SECSCN 4.3.  There is a v4.4 now<br>
available but I don't have it handy.  Also attached are two docs which<br>
explain SECSCN's auditd configuration expectations.<br>
<br>
-Mike<br>
<br>
</blockquote>
<br>
Yeah, the audit.rules that you have there is the test version that I hacked together more than two years ago as a "first cut".<br>
It includes a lot of stuff which might or might have not been installed or needed, just on the off chance. The intent there was to discuss the rules requirements with your certifier, not to take them as gospel.<br>
That stuff should have been reviewed some time ago. I will be glad to refer specific concerns or recommended fixes to the current development team.<br>
<br>
Lenny, you should have dropped me a line about this thread. I only casually monitor this list, and happened upon it by chance.<br>
<br>
Dave Muran-de Assereto<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Aug 17, 2009 at 11:34 AM, Norman Mark St. Laurent <<br>
<a href="mailto:mstlaurent@conceras.com" target="_blank">mstlaurent@conceras.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi David,<br>
<br>
I too would like to know what version of SECSCAN you are using for the<br>
"required watches".  I run the STIGS, SECSCAN, and a myriad of vulnerability<br>
analysis tools (outside looking in -->  inside looking around) on systems<br>
that I ISSE and provision.  I do not recall "required watches" that need to<br>
be set with this tool, but I maybe off a version and I may need to visit<br>
another sight to pick up the latest and greatest....<br>
<br>
I know SECSCAN would like the System to be configured to HALT on audit<br>
failure using the disk_ful_action_setting in /etc/audit/auditd.conf.  It<br>
would also like the system to be configured to halt on audit disk error as<br>
well as the audit data to be synchronously flushed to disk to avoid data<br>
loss.  To do this (respectfully) I have set in my KickStarts and Satellite:<br>
<br>
perl -npe 's/disk_full_action = SUSPEND/disk_full_action = HALT/' -i<br>
/etc/audit/auditd.conf<br>
perl -npe 's/disk_error_action = SUSPEND/disk_error_action = HALT/' -i<br>
/etc/audit/auditd.conf<br>
perl -npe 's/flush = INCREMENTAL/flush = SYNC/' -i /etc/audit/auditd.conf<br>
<br>
Currently I set the /var/log/audit logs to rotate daily for 90 days...  in<br>
/etc/logrotate.d/audit  and the capp.rules ; nispom.rules in<br>
/usr/share/doc/audit* all work great and provide nice examples to comply<br>
with Security Policy.<br>
<br>
Because of the logrotation and the way aureport works, I have written a<br>
wrapper script to be able to search and report all the log files.  Something<br>
of this type would help the Security Officers look threw the log files.  The<br>
script also keeps a pristine copy of the log files for investigation with<br>
digital sigs to watch the tampering  (as well as aide) for investigation if<br>
need be --> this keeps processing the files (MAC Times) and a pristine copy<br>
separated.<br>
<br>
I am very interested in finding our more about these set watches that are<br>
required in SECSCAN.<br>
<br>
Best regards,<br>
<br>
<br>
Norman Mark St. Laurent<br>
Conceras | Chief Technology Officer and ISSE<br>
<br>
<br>
<br>
David Flatley wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks Steve!<br>
If I were to move all the rotated logs to another directory, say<br>
/home/logs. So instead of doing "ausearch -i" to capture all the information<br>
in the rotated logs in<br>
/var/log/audit directory. I would do "ausearch -i -f /home/logs" ,<br>
correct?<br>
<br>
Backlog is set to 12288 right now.<div><br>
<br>
The SECSCAN requires many -w (watches) and a fair amount of syscalls. I<br>
modified the syscalls to add your recommendation for using "arch=b32" and<br>
"arch=b64".<br></div>
Because I was getting errors restarting the auditd on some of their<br>
recommendations one of which was mount?<br>
<br>
Another setting I believe was doing me in was the log size is 20 megs and<br>
I allow 8 rotated logs. But I had admin_disk_full set to 160 and the action<br>
was suspend.<br>
So this could have been tripping me up also.<br>
<br>
I would like to be able to do the audit log extractions (ausearch and<br>
aureport) when I get say 8 - 20 megs logs. I see I can do an exec on a<br>
script in max_log_file_action.<br>
So if I set the max_log_file to 160, I can then run a script to move the<br>
rotated logs and process them, thus not stopping auditd and keeping things<br>
working? I would set the<br>
max rotated logs to 10 to allow the new rotated log space then move the<br>
logs as you suggest.<br>
<br>
Thanks.<br>
<br>
David Flatley CISSP<br>
<br>
<br>
<br>
<br>
Inactive hide details for Steve Grubb ---08/13/2009 02:29:34 PM---On<br>
Thursday 13 August 2009 10:56:50 am David Flatley wrote: > Steve Grubb<br>
---08/13/2009 02:29:34 PM---On Thursday 13 August 2009 10:56:50 am David<br>
Flatley wrote: > Red Hat 5.3 running audit 1.7.7-6<br>
<br>
<br>
From:<div><br>
Steve Grubb <<a href="mailto:sgrubb@redhat.com" target="_blank">sgrubb@redhat.com</a>><br>
<br></div>
To:<br>
<a href="mailto:linux-audit@redhat.com" target="_blank">linux-audit@redhat.com</a><br>
<br>
Cc:<br>
David Flatley/Burlington/IBM@IBMUS<br>
<br>
Date:<br>
08/13/2009 02:29 PM<br>
<br>
Subject:<br>
Re: buffer space<br>
<br>
<br>
<br>
<br>
On Thursday 13 August 2009 10:56:50 am David Flatley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Red Hat 5.3 running audit 1.7.7-6<br>
Rotating logs at 20 megs and allowing 8 logs<br>
Rules have watches and syscalls from the SECSCAN recommendations, and<br>
</blockquote>
have<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
added some of Steve Grubb's recommendations.<br>
</blockquote>
<br>
I would be curious what the SECSCAN recommendations are. Never heard of<br>
it...<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When we extract and archive the audit logs we get "Error receiving audit<br>
netlink packet (No buffer space available) an "error sending signal info<br>
request"<br>
Our extract is: stop auditd then create a file and run ausearch -i ><br>
</blockquote>
file<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
then run an aureport -i > file then once that is done we delete all the<br>
logs and restart auditd.<br>
</blockquote>
<br>
I think this is your problem. If you have audit rules loaded and stop<br>
auditd,<br>
then audit events are going to pile up in the queue waiting for auditd to<br>
download them. At some point the kernel will decide auditd doesn't exist<br>
and<br>
will dump all events to syslog. This probably is not what you want either.<br>
<br>
I would recommend calling "service auditd rotate" and then grab logs<br>
audit.log.1 -> audit.logs.7 and move them away to another directory for<br>
post  processing the contents.<br>
<br>
You may also want to check you backlog size settings too.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If I run this manually it works fine but if I have it running it in a<br>
</blockquote>
cron<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
we get Kernel panics, lockups and log data loss plus the buffer<br>
</blockquote>
messages.<br>
<br>
Shouldn't really make a difference.<br>
<br>
-Steve<br>
<br>
<br>
------------------------------------------------------------------------<div><br>
<br>
--<br>
Linux-audit mailing list<br>
<a href="mailto:Linux-audit@redhat.com" target="_blank">Linux-audit@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-audit" target="_blank">https://www.redhat.com/mailman/listinfo/linux-audit</a><br>
<br>
</div></blockquote><div>
<br>
--<br>
Linux-audit mailing list<br>
<a href="mailto:Linux-audit@redhat.com" target="_blank">Linux-audit@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-audit" target="_blank">https://www.redhat.com/mailman/listinfo/linux-audit</a><br>
<br>
</div></blockquote>
<AUDIT1.HTML><AUDIT.RULES><AUDITDESCRIP.HTML>--<div><br>
Linux-audit mailing list<br>
<a href="mailto:Linux-audit@redhat.com" target="_blank">Linux-audit@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-audit" target="_blank">https://www.redhat.com/mailman/listinfo/linux-audit</a><br>
</div></blockquote>
<br>
David Muran-de Assereto<br>
<a href="mailto:dmuran@tuad.org" target="_blank">dmuran@tuad.org</a><br>
<br>
XML is like violence: if it doesn't solve your problem, you're not using enough of it.<br>
<br>
</blockquote></div><br>
</div>