blob: 2c99e0752e5d46c9b082ee9efa3b70e40605caee [file] [log] [blame]
William A. Kennington IIIee32beb2021-06-02 12:48:35 -07001# Example configuration file for AIDE.
2
3@@define DBDIR /usr/lib/aide
4@@define LOGDIR /usr/lib/aide/logs
5
6# The location of the database to be read.
7database_in=file:@@{DBDIR}/aide.db.gz
8
9# The location of the database to be written.
10#database_out=sql:host:port:database:login_name:passwd:table
11#database_out=file:aide.db.new
12database_out=file:@@{DBDIR}/aide.db.gz
13
14# Whether to gzip the output to database
15gzip_dbout=yes
16
17# Default.
18log_level=warning
19
20report_url=file:@@{LOGDIR}/aide.log
21report_url=stdout
22#report_url=stderr
23#NOT IMPLEMENTED report_url=mailto:root@foo.com
24#NOT IMPLEMENTED report_url=syslog:LOG_AUTH
25
26# These are the default rules.
27#
28#p: permissions
29#i: inode:
30#n: number of links
31#u: user
32#g: group
33#s: size
34#b: block count
35#m: mtime
36#a: atime
37#c: ctime
38#S: check for growing size
39#acl: Access Control Lists
40#selinux SELinux security context
41#xattrs: Extended file attributes
42#md5: md5 checksum
43#sha1: sha1 checksum
44#sha256: sha256 checksum
45#sha512: sha512 checksum
46#rmd160: rmd160 checksum
47#tiger: tiger checksum
48
49#haval: haval checksum (MHASH only)
50#gost: gost checksum (MHASH only)
51#crc32: crc32 checksum (MHASH only)
52#whirlpool: whirlpool checksum (MHASH only)
53
54FIPSR = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha256
55
56#R: p+i+n+u+g+s+m+c+acl+selinux+xattrs+md5
57#L: p+i+n+u+g+acl+selinux+xattrs
58#E: Empty group
59#>: Growing logfile p+u+g+i+n+S+acl+selinux+xattrs
60
61# You can create custom rules like this.
62# With MHASH...
63# ALLXTRAHASHES = sha1+rmd160+sha256+sha512+whirlpool+tiger+haval+gost+crc32
64ALLXTRAHASHES = sha1+rmd160+sha256+sha512+tiger
65# Everything but access time (Ie. all changes)
66EVERYTHING = R+ALLXTRAHASHES
67
68# Sane, with multiple hashes
69# NORMAL = R+rmd160+sha256+whirlpool
70NORMAL = FIPSR+sha512
71
72# For directories, don't bother doing hashes
73DIR = p+i+n+u+g+acl+selinux+xattrs
74
75# Access control only
76PERMS = p+i+u+g+acl+selinux
77
78# Logfile are special, in that they often change
79LOG = >
80
81# Just do sha256 and sha512 hashes
82LSPP = FIPSR+sha512
83
84# Some files get updated automatically, so the inode/ctime/mtime change
85# but we want to know when the data inside them changes
86DATAONLY = p+n+u+g+s+acl+selinux+xattrs+sha256
87
88# Next decide what directories/files you want in the database.
89
90# Check only permissions, inode, user and group for /etc, but
91# cover some important files closely.
92/bin NORMAL
93/sbin NORMAL
94/lib NORMAL