| 1 |
|
| 2 |
AIDE - Advanced Intrusion Detection Environment |
| 3 |
------------------------------------------------- |
| 4 |
Version 0.19.4 |
| 5 |
|
| 6 |
This file is free software; as a special exception the author gives |
| 7 |
unlimited permission to copy and/or distribute it, with or without |
| 8 |
modifications, as long as this notice is preserved. |
| 9 |
|
| 10 |
This file is distributed in the hope that it will be useful, but |
| 11 |
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
| 12 |
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
|
| 15 |
Introduction |
| 16 |
------------ |
| 17 |
|
| 18 |
AIDE is a tool for monitoring file system changes. It can be used |
| 19 |
to detect unauthorized monitored files and directories. AIDE was |
| 20 |
written to be a simple and free alternative to Tripwire. Features |
| 21 |
currently included in AIDE are as follows: |
| 22 |
|
| 23 |
o File attributes monitored: permissions, inode, user, group |
| 24 |
file size, mtime, atime, ctime, links and growing size. |
| 25 |
o Multiple checksums and hashes supported |
| 26 |
o Plain text configuration files and database for simplicity. |
| 27 |
o Rules, variables and macros that can be customized to local |
| 28 |
site or system policies. |
| 29 |
o Powerful regular expression support to selectively include or |
| 30 |
exclude files and directories to be monitored. |
| 31 |
o gzip database compression if zlib support is compiled in. |
| 32 |
o Free software licensed under the GNU General Public License v2. |
| 33 |
|
| 34 |
The homepage of AIDE is https://aide.github.io |
| 35 |
|
| 36 |
Current Version |
| 37 |
--------------- |
| 38 |
|
| 39 |
AIDE is currently maintained on GitHub. |
| 40 |
|
| 41 |
Please visit https://github.com/aide/aide/ to get the newest version of |
| 42 |
the source code. |
| 43 |
|
| 44 |
Documentation |
| 45 |
------------- |
| 46 |
|
| 47 |
The documentation for AIDE can be found in the doc/ directory. |
| 48 |
|
| 49 |
Installation |
| 50 |
------------ |
| 51 |
|
| 52 |
If you are using a git version of the source you need to generate the |
| 53 |
configuration files first: |
| 54 |
|
| 55 |
$ ./autogen.sh |
| 56 |
|
| 57 |
For generic installation instructions please see the INSTALL file |
| 58 |
(generated by autogen.sh). |
| 59 |
|
| 60 |
In short, just type: |
| 61 |
$ ./configure |
| 62 |
$ make |
| 63 |
$ make install |
| 64 |
|
| 65 |
See './configure --help' for the available configuration options. |
| 66 |
|
| 67 |
Dynamic versus Static Linking |
| 68 |
----------------------------- |
| 69 |
|
| 70 |
Formerly aide was linked statically by default to reduce the attack vector |
| 71 |
of compromised shared libraries and to ease client/server monitoring |
| 72 |
configurations. However an attacker could still simply replace the |
| 73 |
statically linked binary, tamper the database file or use dynamically |
| 74 |
loaded kernel modules to change the behaviour of AIDE. |
| 75 |
|
| 76 |
These days many Linux distributions (eg CentOS/Oracle Linux), operating |
| 77 |
systems (eg Mac OS/OpenSolaris) and libraries have dropped support for |
| 78 |
static linking. |
| 79 |
|
| 80 |
Hence starting with release v0.18 AIDE is linked dynamically by default. |
| 81 |
|
| 82 |
To re-enable static linking use '--enable-static' when configuring AIDE. |
| 83 |
|
| 84 |
Source Code Verification |
| 85 |
------------------------ |
| 86 |
|
| 87 |
We highly recommend checking that the version of AIDE downloaded and |
| 88 |
installed is an original and unmodified one. You can either verify the |
| 89 |
source tarball or the git tag. |
| 90 |
|
| 91 |
To check the supplied signature with GnuPG: |
| 92 |
|
| 93 |
$ gpg --verify aide-<VERSION_NUMBER>.tar.gz.asc |
| 94 |
|
| 95 |
This checks that the detached signature file is indeed a signature |
| 96 |
of aide-<VERSION_NUMBER>.tar.gz. |
| 97 |
|
| 98 |
To validate the gpg signature of the git tag: |
| 99 |
|
| 100 |
$ git verify-tag v<VERSION_NUMBER> |
| 101 |
|
| 102 |
The current public key needed for signature verification is: |
| 103 |
|
| 104 |
pub 4096R/68E7B931 2011-06-28 [expires: 2025-06-27] |
| 105 |
uid Hannes von Haugwitz <[email protected]> |
| 106 |
|
| 107 |
If you do not have this key, you can get it from one of the well known PGP |
| 108 |
key servers. You have to make sure that the key you install is not a faked |
| 109 |
one. You can do this with reasonable assurance by comparing the output of: |
| 110 |
|
| 111 |
$ gpg --fingerprint 2BBBD30FAAB29B3253BCFBA6F6947DAB68E7B931 |
| 112 |
|
| 113 |
with the fingerprint published elsewhere. |
| 114 |
|
| 115 |
Requirements |
| 116 |
------------ |
| 117 |
|
| 118 |
AIDE requires the following development tools: |
| 119 |
|
| 120 |
o C99 compatible compiler. |
| 121 |
o GNU Autoconf |
| 122 |
o GNU Autoconf Macro Archive |
| 123 |
o GNU Automake |
| 124 |
o GNU flex. |
| 125 |
o GNU yacc (bison). |
| 126 |
o GNU make. |
| 127 |
o pkg-config |
| 128 |
o PCRE2 library (libpcre2-8, library with 8-bit code unit support) |
| 129 |
o libnettle (>= 3.7) or libgcrypt |
| 130 |
|
| 131 |
o libcheck (optional, needed for 'make check', license: LGPL-2.1) |
| 132 |
|
| 133 |
Note: |
| 134 |
flex version 2.5.31 is broken, you might see the following error |
| 135 |
|
| 136 |
conf_lex.c: In function `conflex': |
| 137 |
conf_lex.c:4728: error: `yy_prev_more_offset' undeclared (first use in |
| 138 |
this function) |
| 139 |
conf_lex.c:4728: error: (Each undeclared identifier is reported only once |
| 140 |
conf_lex.c:4728: error: for each function it appears in.) |
| 141 |
|
| 142 |
Either downgrade to flex 2.5.4 or get an updated version that fixes |
| 143 |
this bug. |
| 144 |
|
| 145 |
Large File Support |
| 146 |
----------------- |
| 147 |
|
| 148 |
To be able to store the size of files larger than 2GB, AIDE needs large |
| 149 |
file support (LFS) to be available in the OS. The configure script |
| 150 |
automatically checks for LFS. To turn off LFS call the configure script |
| 151 |
with the '-disable-largefile' option. |
| 152 |
|
| 153 |
Feedback and Support |
| 154 |
-------------------- |
| 155 |
|
| 156 |
End user support is available on the AIDE mailing list: |
| 157 |
|
| 158 |
https://www.ipi.fi/mailman/listinfo/aide |
| 159 |
|
| 160 |
An archive of the mailing list is available online: |
| 161 |
|
| 162 |
http://www.ipi.fi/pipermail/aide/ |
| 163 |
|
| 164 |
Please report bugs and feature requests to the aide issue tracker |
| 165 |
|
| 166 |
https://github.com/aide/aide/issues |
| 167 |
|
| 168 |
|
| 169 |
Credits |
| 170 |
------- |
| 171 |
|
| 172 |
Please see the AUTHORS file. |