# Creating Dictionary Detector

A dictionary detector can detect a specific piece of sensitive data (referred to as a token). The token can be any type of sensitive data like a password, API key, IP address, PII, and so on. You must add the token to a file and then upload the file while creating the dictionary. Nightfall scans your data to check if the token present in the uploaded file exists in your data. If a match is found, it fis flagged as sensitive data exposure.&#x20;

To create a Dictionary Detector:

1. Navigate to the Detectors section from the left pane.
2. Click **+ Custom Detector** and select **Dictionary**.&#x20;

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FHGp3CBcpw7tCPwULgpxb%2Fimage.png?alt=media&#x26;token=3bba5042-6fce-4b22-9bbc-98ba69027d45" alt=""><figcaption></figcaption></figure>

3. Enter a name for your custom Detector in the **Name** field.&#x20;
4. (Optional) Enter a description for the Detector in the **Description** field.
5. Upload or drag and drop the text file which contains a token.
6. (Optional) Select the **Match substrings** check box to match the sub-strings of the text file.
7. Click **Add**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2F73K1QtlM7Uj0RSCYRekF%2Fimage.png?alt=media&#x26;token=dad863fe-6208-4896-af62-246462bd7256" alt="" width="563"><figcaption></figcaption></figure>
