---
title: (Optional) Configure Hash Filter
description: "(Optional) Configure Hash Filter(Optional) Configure Hash Filter\nThis topic introduces hash filters as a method of marking files in  Malware Analysis"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/optional-configurehashfilter#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Documentation](https://mydev.netwitness.com/knowledge-base/documentation?hsLang=en)

April 28, 2026

# (Optional) Configure Hash Filter

## (Optional) Configure Hash Filter(Optional) Configure Hash Filter

This topic introduces hash filters as a method of marking files in Malware Analysis that are known to be good or known to be bad. Hash filtering allows you to maintain a list of known good or known bad file hashes. In the Hash tab, you can fine tune Malware Analysis event analysis based on file hashes. When a file hash is marked as Good, Malware Analysis does not analyze the file the next time it is seen. When a file hash is marked as Bad, Malware Analysis automatically raises the file’s community score by a large number of points. Malware Analysis still analyzes the file, just in case new information becomes available.

**Note:** If an event contains a single file and that file’s hash is marked as Good, Malware Analysis filters the entire event and you do not see it in Malware Analysis results.

To add hash filters to the hash list, you can use either of these manual methods:

1. Context menu add in the Event Detail view: Right-click on a file, and a context menu allows marking of the hash for the selected file as Good (Normal) or Bad (Malicious).
2. Hash tab toolbar: Click **Add** in the Hash tab to add a file hash, file size, and optionally, mark the hash as trusted.

There is also an automated method to add hash filters to Malware Analysis by importing a hash list in bulk from the watched folder. Hashes imported through the watched folder do not appear in the hash list. With bulk importing and the watched directory (/var/netwitness/malware-analytics-server/spectrum/hashWatch) on the Malware Analysis server set up, copy a hash list into the watched folder to be automatically imported into the system. Hashes imported using the bulk import method overwrite hashes that were previously imported through the watched folder.

## View the Hash ListView the Hash List

To view the Hash List:

1. Go to **![netwitness\_adminicon\_25x22.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/414224i3F367B40E0F0E9EA-Apr-28-2026-11-38-57-7620-AM-Apr-28-2026-01-55-23-3259-PM.png "netwitness_adminicon_25x22.png") (Admin) \> Services**.
2. In the Services view, select a Malware Analysis service, and select ![netwitness\_ic-actns.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/413728i2122E6497E7A7639-Apr-28-2026-11-38-58-9102-AM-Apr-28-2026-01-55-18-2311-PM.png "netwitness_ic-actns.png") **\> View \> Config**.
3. Select the **Hash** tab.
   
   The hash list is displayed in the Hash tab. Only file hashes that have been added using one of the methods are displayed.

## Add a File Hash to the Hash FilterAdd a File Hash to the Hash Filter

To add a file hash to the hash filter:

1. In the **Hash** tab, in the toolbar, click **Add**.
   
   The Add Hash dialog is displayed.
2. If the hash is trusted, select **Trusted**.
3. Enter the MD5 hash and the file size in bytes.
4. Click **Save**.
   
   The file hash is added to the hashes and used to perform hash filtering in Malware Analysis.

## Mark a Hash as Trusted or UntrustedMark a Hash as Trusted or Untrusted

To mark a file hash as trusted or untrusted:

1. In the **Hash** tab, to toggle between trusted and untrusted, click in the **Trusted** column for the hash.
2. In the toolbar, click **Save Edit**.

## Delete a Hash from the Hash FilterDelete a Hash from the Hash Filter

To delete a hash from the hash filter:

1. In the **Hash** tab, select one or more hashes that you want to remove from the hash filter.
2. In the toolbar, click **Delete**.
   
   A dialog requests confirmation and offers an opportunity to cancel.
3. To confirm the deletion, click **Yes**.
   
   The file hash is deleted from the grid and no longer used to perform hash filtering in Malware Analysis.

## Search for a File HashSearch for a File Hash

In the Hash tab, you can search for a file hash that is displayed in the grid. In the MD5 field, type the file hash for which you are searching, and click **Search**. The list of files that contain the hash is displayed in the grid.

## Import a Hash List Using the Watched FolderImport a Hash List Using the Watched Folder

To import a hash list from the watched directory, the hash list must be in the specified format and must be sorted on md5. You can drop a file formatted as described below into a folder (/var/netwitness/malware-analytics-server/spectrum/hashWatch) on the Malware Analysis appliance, and it is automatically imported into the local hash database. This is the only way to import file hashes into. An additional use case is to allow a system administrator to expose the watched directory to some process that would push a file to this directory. This is a bulk import method designed to handle a high volume of hash imports.

This is a csv-formatted file with no spaces between the data in each row. The assumption with the data in the hash list is that there are no duplicates. Duplicates are ignored during processing. If duplicate hashes are encountered, the log file will display the following message to indicate the number of duplicate hashes contained in the file:

2013-08-09 09:46:00,674 \[jobExecutor-2(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Processing - /var/lib/rsa\>malware/hashWatch/test.csv   
 2013-08-09 09:47:56,619 \[jobExecutor-2(HashFileWatch)\] INFO com.netwitness.malware.core.services.file.hash.HashServiceImpl - Skipped 21 Duplicate Hashes Already on File   
 2013-08-09 09:48:06,638 \[jobExecutor-2(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Processed - / var/lib/rsa\>malware/hashWatch/test.csv

Below is an example of a hash list in the default file format.

> \[BeginFileExample\]   
>  392126E756571EBF112CB1C1cdEDF926,98865,True   
>  0E53C14A3E48D94FF596A2824307B492,2226,True   
>  176308F27DD52890F013A3FD80F92E51,42748,False   
>  9B3702B0E788C6D62996392FE3C9786A,32768,False   
>  937ADE76A75712B7FF339403B4FCB5A6,4821,False   
>  B47139415F735A98069ACE824A114399,1723,False   
>  E6CAF205E602CFA9A65663DB1A087874,704,False   
>  680CA0BCE1FC7BC4136ADF4E210869C5,2075,False   
>  \[EndFileExample\]

 A NetWitness configuration file (/**var/netwitness/malware-analytics-server/spectrum/conf/hashFileWatchConfig.xml**) specifies the format and options in the hash list import process. Below is a listing of the configuration file.

> true   
>  true   
>  //var/lib/rsamalware/hashWatch   
>  /var/lib/rsamalware/hashWatch/processed   
>  /var/lib/rsamalware/hashWatch/error   
>  0   
>  -1   
>  1   
>  false   
>  false   
>  1   
>  false

When the hash list has been imported, the system log has entries similar to this:

> 2013-04-11 03:22:00,597 \[jobExecutor-9(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Processing - /var/lib/rsamalware/spectrum/hashWatch/simpleHash.csv   
>  2013-04-11 03:22:00,600 \[jobExecutor-9(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Processed - /var/lib/rsamalware/spectrum/hashWatch/simpleHash.csv

If there is a problem loading the file, the system log has entries similar to this:

> 2013-04-11 03:17:00,597 \[jobExecutor-4(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Processing - /var/lib/rsamalware/spectrum/hashWatch/simpleHash.csv   
>  ... Verbose log   
>  2013-04-11 03:17:00,632 \[jobExecutor-4(HashFileWatch)\] INFO com.netwitness.malware.core.scheduler.jobs.HashFileWatch - Error Processing - /var/lib/rsamalware/spectrum/hashWatch/simpleHash.csv

To import a hash list using the watched folder method:

1. Copy the hash lists that you want to import into the **/var/netwitness/malware-analytics-sever/spectrum/hashWatch** directory.   
    Malware Analysis automatically watches this folder and processes files placed there.   
    Malware Analysis adds every hash found in the hash lists to the hash filter.   
    If there are processing errors, they are logged in **/var/netwitness/malware-analytics-sever/spectrum/hashWatch/error**  
    Processed files are cataloged in **/var/netwitness/malware-analytics-sever/spectrum/hashWatch/processed**  
    Processed files are not removed from the hashWatch directory.
2. After importing hashes in bulk, the System Administrator can use a cronjob to clean up old processed files.

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.