# 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="/files/eAvWkRALTWbgdNZeOIHc" 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="/files/12kLuEZPcoNbzveJT1aE" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nightfall.ai/detection_platform/custom_detectors/dictionary_detector.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
