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