31807d
# Example configuration file for AIDE.
31807d
31807d
@@define DBDIR /var/lib/aide
31807d
@@define LOGDIR /var/log/aide
31807d
31807d
# The location of the database to be read.
31807d
database=file:@@{DBDIR}/aide.db.gz
31807d
31807d
# The location of the database to be written.
31807d
#database_out=sql:host:port:database:login_name:passwd:table
31807d
#database_out=file:aide.db.new
31807d
database_out=file:@@{DBDIR}/aide.db.new.gz
31807d
31807d
# Whether to gzip the output to database
31807d
gzip_dbout=yes
31807d
31807d
# Default.
31807d
verbose=5
31807d
31807d
report_url=file:@@{LOGDIR}/aide.log
31807d
report_url=stdout
31807d
#report_url=stderr
31807d
#NOT IMPLEMENTED report_url=mailto:root@foo.com
31807d
#NOT IMPLEMENTED report_url=syslog:LOG_AUTH
31807d
31807d
# These are the default rules.
31807d
#
31807d
#p:      permissions
31807d
#i:      inode:
31807d
#n:      number of links
31807d
#u:      user
31807d
#g:      group
31807d
#s:      size
31807d
#b:      block count
31807d
#m:      mtime
31807d
#a:      atime
31807d
#c:      ctime
31807d
#S:      check for growing size
31807d
#acl:           Access Control Lists
31807d
#selinux        SELinux security context
31807d
#xattrs:        Extended file attributes
31807d
#md5:    md5 checksum
31807d
#sha1:   sha1 checksum
31807d
#sha256:        sha256 checksum
31807d
#sha512:        sha512 checksum
31807d
#rmd160: rmd160 checksum
31807d
#tiger:  tiger checksum
31807d
31807d
#haval:  haval checksum (MHASH only)
31807d
#gost:   gost checksum (MHASH only)
31807d
#crc32:  crc32 checksum (MHASH only)
31807d
#whirlpool:     whirlpool checksum (MHASH only)
31807d
31807d
FIPSR = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha256
31807d
31807d
#R:             p+i+n+u+g+s+m+c+acl+selinux+xattrs+md5
31807d
#L:             p+i+n+u+g+acl+selinux+xattrs
31807d
#E:             Empty group
31807d
#>:             Growing logfile p+u+g+i+n+S+acl+selinux+xattrs
31807d
31807d
# You can create custom rules like this.
31807d
# With MHASH...
31807d
# ALLXTRAHASHES = sha1+rmd160+sha256+sha512+whirlpool+tiger+haval+gost+crc32
31807d
ALLXTRAHASHES = sha1+rmd160+sha256+sha512+tiger
31807d
# Everything but access time (Ie. all changes)
31807d
EVERYTHING = R+ALLXTRAHASHES
31807d
31807d
# Sane, with multiple hashes
31807d
# NORMAL = R+rmd160+sha256+whirlpool
31807d
NORMAL = FIPSR+sha512
31807d
31807d
# For directories, don't bother doing hashes
31807d
DIR = p+i+n+u+g+acl+selinux+xattrs
31807d
31807d
# Access control only
31807d
PERMS = p+i+u+g+acl+selinux
31807d
31807d
# Logfile are special, in that they often change
31807d
LOG = >
31807d
31807d
# Just do sha256 and sha512 hashes
31807d
LSPP = FIPSR+sha512
31807d
31807d
# Some files get updated automatically, so the inode/ctime/mtime change
31807d
# but we want to know when the data inside them changes
31807d
DATAONLY =  p+n+u+g+s+acl+selinux+xattrs+sha256
31807d
31807d
# Next decide what directories/files you want in the database.
31807d
31807d
/boot   NORMAL
31807d
/bin    NORMAL
31807d
/sbin   NORMAL
31807d
/lib    NORMAL
31807d
/lib64  NORMAL
31807d
/opt    NORMAL
31807d
/usr    NORMAL
31807d
/root   NORMAL
31807d
# These are too volatile
31807d
!/usr/src
31807d
!/usr/tmp
31807d
31807d
# Check only permissions, inode, user and group for /etc, but
31807d
# cover some important files closely.
31807d
/etc    PERMS
31807d
!/etc/mtab
31807d
# Ignore backup files
31807d
!/etc/.*~
31807d
/etc/exports  NORMAL
31807d
/etc/fstab    NORMAL
31807d
/etc/passwd   NORMAL
31807d
/etc/group    NORMAL
31807d
/etc/gshadow  NORMAL
31807d
/etc/shadow   NORMAL
31807d
/etc/security/opasswd   NORMAL
31807d
31807d
/etc/hosts.allow   NORMAL
31807d
/etc/hosts.deny    NORMAL
31807d
31807d
/etc/sudoers NORMAL
31807d
/etc/skel NORMAL
31807d
31807d
/etc/logrotate.d NORMAL
31807d
31807d
/etc/resolv.conf DATAONLY
31807d
31807d
/etc/nscd.conf NORMAL
31807d
/etc/securetty NORMAL
31807d
31807d
# Shell/X starting files
31807d
/etc/profile NORMAL
31807d
/etc/bashrc NORMAL
31807d
/etc/bash_completion.d/ NORMAL
31807d
/etc/login.defs NORMAL
31807d
/etc/zprofile NORMAL
31807d
/etc/zshrc NORMAL
31807d
/etc/zlogin NORMAL
31807d
/etc/zlogout NORMAL
31807d
/etc/profile.d/ NORMAL
31807d
/etc/X11/ NORMAL
31807d
31807d
# Pkg manager
31807d
/etc/yum.conf NORMAL
31807d
/etc/yumex.conf NORMAL
31807d
/etc/yumex.profiles.conf NORMAL
31807d
/etc/yum/ NORMAL
31807d
/etc/yum.repos.d/ NORMAL
31807d
31807d
/var/log   LOG
31807d
/var/run/utmp LOG
31807d
31807d
# This gets new/removes-old filenames daily
31807d
!/var/log/sa
31807d
# As we are checking it, we've truncated yesterdays size to zero.
31807d
!/var/log/aide.log
31807d
31807d
# LSPP rules...
31807d
# AIDE produces an audit record, so this becomes perpetual motion.
31807d
# /var/log/audit/ LSPP
31807d
/etc/audit/ LSPP
31807d
/etc/libaudit.conf LSPP
31807d
/usr/sbin/stunnel LSPP
31807d
/var/spool/at LSPP
31807d
/etc/at.allow LSPP
31807d
/etc/at.deny LSPP
31807d
/etc/cron.allow LSPP
31807d
/etc/cron.deny LSPP
31807d
/etc/cron.d/ LSPP
31807d
/etc/cron.daily/ LSPP
31807d
/etc/cron.hourly/ LSPP
31807d
/etc/cron.monthly/ LSPP
31807d
/etc/cron.weekly/ LSPP
31807d
/etc/crontab LSPP
31807d
/var/spool/cron/root LSPP
31807d
31807d
/etc/login.defs LSPP
31807d
/etc/securetty LSPP
31807d
/var/log/faillog LSPP
31807d
/var/log/lastlog LSPP
31807d
31807d
/etc/hosts LSPP
31807d
/etc/sysconfig LSPP
31807d
31807d
/etc/inittab LSPP
31807d
/etc/grub/ LSPP
31807d
/etc/rc.d LSPP
31807d
31807d
/etc/ld.so.conf LSPP
31807d
31807d
/etc/localtime LSPP
31807d
31807d
/etc/sysctl.conf LSPP
31807d
31807d
/etc/modprobe.conf LSPP
31807d
31807d
/etc/pam.d LSPP
31807d
/etc/security LSPP
31807d
/etc/aliases LSPP
31807d
/etc/postfix LSPP
31807d
31807d
/etc/ssh/sshd_config LSPP
31807d
/etc/ssh/ssh_config LSPP
31807d
31807d
/etc/stunnel LSPP
31807d
31807d
/etc/vsftpd.ftpusers LSPP
31807d
/etc/vsftpd LSPP
31807d
31807d
/etc/issue LSPP
31807d
/etc/issue.net LSPP
31807d
31807d
/etc/cups LSPP
31807d
31807d
# With AIDE's default verbosity level of 5, these would give lots of
31807d
# warnings upon tree traversal. It might change with future version.
31807d
#
31807d
#=/lost\+found    DIR
31807d
#=/home           DIR
31807d
31807d
# Ditto /var/log/sa reason...
31807d
!/var/log/and-httpd
31807d
31807d
# Admins dot files constantly change, just check perms
31807d
/root/\..* PERMS