Excluding files and directories from AIDE scanning

Last Updated : Jun 22, 2020 |
Prolog information
By default, AIDE checks the integrity of all Avaya Aura® Web Gateway files and directories, except for the following:
  • /opt/spirit/LogTail*
  • /opt/spirit/logging/
  • /opt/spirit/persist/persisted_ids.properties
Avaya Aura® Web Gateway regularly updates certain files and directories, such as /opt/Avaya/CallSignallingAgent/<version>/logs/. AIDE includes all changed files in the scanning report, regardless of the reason for the change. This might result in false positive alarms in the scan report. You can add certain files and directories you want to exclude from scanning to the /etc/aide.conf AIDE configuration file. AIDE will not include these files and directories in scanning reports.
Warning:
Be cautions when excluding a file or directory from scanning because an intruder might place a malicious file in a place that AIDE does not check.
  1. Log in to the virtual machine with the deployed Avaya Aura® Web Gateway OVA as an administrator.
  2. Open the /etc/aide.conf file in a text editor.
    ADDITIONAL INFORMATION:
    For example, to open the file in vi, run the vi /etc/aide.conf command.
  3. For each file or directory you want to exclude from scanning, add an entry in the following format:
    ADDITIONAL INFORMATION:
    !<path to file or directory>
    In this entry, <path to file or directory> is the absolute path to the file or directory you want to exclude. For example, enter !/opt/Avaya/CallSignallingAgent/3.8.0.0.001/logs/ to exclude the entire directory from the report.
    If you want to exclude a single file, add the $ character at the end of the entry. For example: !/opt/Avaya/CallSignallingAgent/3.8.0.0.001/logs/File.log$
    The entry format supports regular expressions. For example, you can enter !/opt/Avaya/CallSignallingAgent/3.8.0.0.001/logs/File* to exclude only files and directories that have names starting with File.
  4. Save the /etc/aide.conf file.