Changeset 233

Show
Ignore:
Timestamp:
08/05/08 09:48:35 (4 months ago)
Author:
slawrence
Message:

Increase audit buffer size and max log size before rotating.
Watch ld.so.conf and more system calls
Change some spaces to tabs that should be stripped in heredoc in stigs
Update readme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL5.2/README

    r177 r233  
    1 To build RHEL 5.1 CLIP instance use the following steps: 
     1To build RHEL 5.2 CLIP instance use the following steps: 
    22 
    3 1. Run make 
     31. Run rpmify 
    44 
    5 2. Run rpmif
     52. RPMs are copied to the RPM director
    66 
    7 3. Copy the RPM files to the OSS.Tresys.com website 
    8  
    9 4. Update the Download Page's SHA values from the SHA1_<$ARCH>.txt file. 
    10  
    11  
  • trunk/RHEL5.2/conf/audit/audit-i386.rules

    r217 r233  
     1## Add keys to the audit rules below using the -k option to allow for more  
     2## organized and quicker searches with the ausearch tool.  See auditctl(8)  
     3## and ausearch(8) for more information. 
     4 
    15# Remove any existing rules 
    26-D 
     
    610 
    711# Increase buffer size to handle the increased number of messages. 
    8 -b 8192 
     12-b 16384 
    913 
    1014# Failure of auditd causes a kernel panic 
     
    3741 
    3842# deleting files 
    39 -a exit,always -S unlink -S rmdir 
     43-a exit,always -S unlink -S rmdir -S rename -S link -S symlink 
    4044 
    4145# system administration actions 
     
    5155-w /etc/shadow -p wa 
    5256-w /etc/group  -p wa 
     57-w /etc/ld.so.conf -p wa 
     58-w /etc/ld.so.conf.d -p wa 
    5359-w /etc/ssh/sshd_config 
    5460-w /etc/pam.d 
  • trunk/RHEL5.2/conf/audit/audit-x86_64.rules

    r217 r233  
     1## Add keys to the audit rules below using the -k option to allow for more  
     2## organized and quicker searches with the ausearch tool.  See auditctl(8)  
     3## and ausearch(8) for more information. 
     4 
    15# Remove any existing rules 
    26-D 
     
    610 
    711# Increase buffer size to handle the increased number of messages. 
    8 -b 8192 
     12-b 16384 
    913 
    1014# Failure of auditd causes a kernel panic 
     
    3741 
    3842# deleting files 
    39 -a exit,always -S unlink -S rmdir 
     43-a exit,always -S unlink -S rmdir -S rename -S link -S symlink 
    4044 
    4145# system administration actions 
     
    5155-w /etc/shadow -p wa 
    5256-w /etc/group  -p wa 
     57-w /etc/ld.so.conf -p wa 
     58-w /etc/ld.so.conf.d -p wa 
    5359-w /etc/ssh/sshd_config 
    5460-w /etc/pam.d 
  • trunk/RHEL5.2/conf/audit/auditd.conf

    r232 r233  
    1010num_logs = 4 
    1111#dispatcher = /sbin/audispd 
    12 max_log_file = 5  
     12max_log_file = 256  
    1313max_log_file_action = ROTATE 
    1414space_left = 75 
  • trunk/RHEL5.2/kickstart/clip.ks

    r232 r233  
    661661chkconfig auditd on 
    662662cat <<-EOF > /etc/audit/audit.rules 
     663        ## Add keys to the audit rules below using the -k option to allow for more  
     664        ## organized and quicker searches with the ausearch tool.  See auditctl(8)  
     665        ## and ausearch(8) for more information. 
     666 
    663667        # Remove any existing rules 
    664668        -D 
     
    668672 
    669673        # Increase buffer size to handle the increased number of messages. 
    670         -b 8192 
     674        -b 16384 
    671675 
    672676        # Failure of auditd causes a kernel panic 
     
    683687        num_logs = 4 
    684688        #dispatcher = /sbin/audispd 
    685         max_log_file = 5  
     689        max_log_file = 256 
    686690        max_log_file_action = ROTATE 
    687691        space_left = 75 
     
    766770cat <<-EOF >> /etc/audit/audit.rules 
    767771        # deleting files 
    768         -a exit,always -S unlink -S rmdir 
     772        -a exit,always -S unlink -S rmdir -S rename -S link -S symlink 
    769773 
    770774EOF 
     
    785789        -w /etc/shadow -p wa 
    786790        -w /etc/group  -p wa 
     791        -w /etc/ld.so.conf -p wa 
     792        -w /etc/ld.so.conf.d -p wa 
    787793        -w /etc/ssh/sshd_config 
    788794        -w /etc/pam.d 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002660.sh

    r232 r233  
    88/sbin/chkconfig auditd on 
    99cat <<-EOF > /etc/audit/audit.rules 
     10        ## Add keys to the audit rules below using the -k option to allow for more  
     11        ## organized and quicker searches with the ausearch tool.  See auditctl(8)  
     12        ## and ausearch(8) for more information. 
     13         
    1014        # Remove any existing rules 
    1115        -D 
     
    1519 
    1620        # Increase buffer size to handle the increased number of messages. 
    17         -b 8192 
     21        -b 16384 
    1822 
    1923        # Failure of auditd causes a kernel panic 
     
    3034        num_logs = 4 
    3135        #dispatcher = /sbin/audispd 
    32         max_log_file = 5  
     36        max_log_file = 256 
    3337        max_log_file_action = ROTATE 
    3438        space_left = 75 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002740.sh

    r197 r233  
    88echo '===================================================' 
    99cat <<-EOF >> /etc/audit/audit.rules 
    10     # DAC permission changes 
     10       # DAC permission changes 
    1111EOF 
    1212echo -n "-a exit,always -S chmod -S chown -S fchmod -S fchown -S lchown" >> /etc/audit/audit.rules 
    1313if [ "$(uname -i)" != "x86_64" ] 
    1414then 
    15     echo -n " -S chown32 -S fchown32 -S lchown32" >> /etc/audit/audit.rules 
     15       echo -n " -S chown32 -S fchown32 -S lchown32" >> /etc/audit/audit.rules 
    1616fi 
    1717echo -e "\n" >> /etc/audit/audit.rules 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002760.sh

    r200 r233  
    77echo '===================================================' 
    88cat <<-EOF >> /etc/audit/audit.rules 
    9     # unauthorized file access attempts 
     9       # unauthorized file access attempts 
    1010EOF 
    1111echo "-a exit,always -S open -F success=0" >> /etc/audit/audit.rules 
     
    1313if [ "$(uname -i)" != "x86_64" ] 
    1414then 
    15     echo -n " -S truncate64 -S ftruncate64" >> /etc/audit/audit.rules 
     15       echo -n " -S truncate64 -S ftruncate64" >> /etc/audit/audit.rules 
    1616fi 
    1717echo -e "\n" >> /etc/audit/audit.rules 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002780.sh

    r197 r233  
    77echo '===================================================' 
    88cat <<-EOF >> /etc/audit/audit.rules 
    9     # privileged commands 
    10     -w /usr/sbin/pwck 
    11     -w /bin/chgrp 
    12     -w /usr/bin/newgrp 
    13     -w /usr/sbin/groupadd 
    14     -w /usr/sbin/groupmod 
    15     -w /usr/sbin/groupdel 
    16     -w /usr/sbin/useradd 
    17     -w /usr/sbin/userdel 
    18     -w /usr/sbin/usermod 
    19     -w /usr/bin/chage 
    20     -w /usr/bin/setfacl 
    21     -w /usr/bin/chacl 
     9       # privileged commands 
     10       -w /usr/sbin/pwck 
     11       -w /bin/chgrp 
     12       -w /usr/bin/newgrp 
     13       -w /usr/sbin/groupadd 
     14       -w /usr/sbin/groupmod 
     15       -w /usr/sbin/groupdel 
     16       -w /usr/sbin/useradd 
     17       -w /usr/sbin/userdel 
     18       -w /usr/sbin/usermod 
     19       -w /usr/bin/chage 
     20       -w /usr/bin/setfacl 
     21       -w /usr/bin/chacl 
    2222EOF 
    2323echo -n "-a exit,always -S chroot -S mount -S umount2 -S adjtimex -S kill" >> /etc/audit/audit.rules 
    2424if [ "$(uname -i)" != "x86_64" ] 
    2525then 
    26     echo -n " -S umount" >> /etc/audit/audit.rules 
     26       echo -n " -S umount" >> /etc/audit/audit.rules 
    2727fi 
    2828echo -e "\n" >> /etc/audit/audit.rules 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002800.sh

    r192 r233  
    88cat <<-EOF >> /etc/audit/audit.rules 
    99        # deleting files 
    10         -a exit,always -S unlink -S rmdir 
     10        -a exit,always -S unlink -S rmdir -S rename -S link -S symlink 
    1111 
    1212EOF 
  • trunk/RHEL5.2/scripts/stig-fix/cat2/gen002820.sh

    r217 r233  
    77echo '===================================================' 
    88cat <<-EOF >> /etc/audit/audit.rules 
    9     # system administration actions 
    10     -w /var/log/audit/audit.log 
    11     -w /var/log/audit/audit[1-4].log 
    12     -w /var/log/messages 
    13     -w /var/log/lastlog 
    14     -w /var/log/faillog 
    15     -w /etc/audit/auditd.conf -p wa 
    16     -w /etc/audit/audit.rules -p wa 
    17     -w /etc/selinux/config -p wa 
    18     -w /etc/passwd -p wa 
    19     -w /etc/shadow -p wa 
    20     -w /etc/group  -p wa 
    21     -w /etc/ssh/sshd_config 
    22     -w /etc/pam.d 
    23     -w /etc/login.defs 
    24     -w /etc/rc.d/init.d 
    25     -w /etc/inittab -p wa 
    26     -w /var/run/utmp 
    27     -w /var/run/wtmp 
     9        # system administration actions 
     10        -w /var/log/audit/audit.log 
     11        -w /var/log/audit/audit[1-4].log 
     12        -w /var/log/messages 
     13        -w /var/log/lastlog 
     14        -w /var/log/faillog 
     15        -w /etc/audit/auditd.conf -p wa 
     16        -w /etc/audit/audit.rules -p wa 
     17        -w /etc/selinux/config -p wa 
     18        -w /etc/passwd -p wa 
     19        -w /etc/shadow -p wa 
     20        -w /etc/group  -p wa 
     21        -w /etc/ld.so.conf -p wa 
     22        -w /etc/ld.so.conf.d -p wa 
     23        -w /etc/ssh/sshd_config 
     24        -w /etc/pam.d 
     25        -w /etc/login.defs 
     26        -w /etc/rc.d/init.d 
     27        -w /etc/inittab -p wa 
     28        -w /var/run/utmp 
     29        -w /var/run/wtmp 
    2830EOF 
    2931echo -n "-a exit,always -S acct -S reboot -S sched_setparam -S sched_setscheduler -S setdomainname -S setrlimit -S settimeofday -S swapon" >> /etc/audit/    audit.rules 
    3032if [ "$(uname -i)" != "x86_64" ] 
    3133then 
    32     echo -n " -S stime" >> /etc/audit/audit.rules 
     34       echo -n " -S stime" >> /etc/audit/audit.rules 
    3335fi 
    3436echo -e "\n" >> /etc/audit/audit.rules