Can I whitelist or blacklist a file so that MetaDefender Core will always treat it as clean or dirty, respectively?

MetaDefender Core allows you to create and maintain a set of whitelisted and blacklisted files.

You add a file to the whitelist when you want the scan result for that file to be returned as "clean." Likewise, you add a file to the blacklist when you want the scan result for that file to be returned as "threat." In both cases, the files are not processed by any antivirus engines. To add files to the whitelist or blacklist, you can use a command line executable named omsFilterCLI.exe. This executable comes with your MetaDefender Core package.

To add a file to your whitelist:

  1. Open a command line prompt.

  2. Enter omsFilterCLI.exe addtowhite <path> <type>

    1. Replace <path> with the absolute directory path of the file location.

    2. Replace <type> with the number 0. This parameter is a placeholder for future functionality.

  3. Press Enter.

To add a file to your blacklist:

  1. Open a command line prompt.

  2. Enter omsFilterCLI.exe addtoblack <path> <type> <threat>

    1. Replace <path> with the absolute directory path of the file location.

    2. Replace <type> with the number 0. This parameter is a placeholder for future functionality.

    3. Replace <threat> with the threat name. This can be a name of your choosing as it is used for your own categorization purposes.

  3. Press Enter.

To generate a list of files in xml format that are in the whitelist and blacklist:

  1. Open a command line prompt.

  2. Enter omsFilterCLI.exe list 0

  3. Press Enter.

This article pertains to MetaDefender Core v3
This article was last updated on 2017-12-20
CN