Cisco Secure Access Help

PDF

Cisco Secure Access Help

Exact Data Match Identifiers

Want to summarize with AI?

Log in

Provides instructions for completing the Exact Data Match Identifiers workflow in Cisco Secure Access. Exact Data Matching (EDM) is a data classification and matching technique that effectively detects data loss incidents involving sensitive records maintained and stored in a structured data format.


Exact Data Matching (EDM) is a data classification and matching technique that effectively detects data loss incidents involving sensitive records maintained and stored in a structured data format. EDM is designed to help protect sensitive data by fingerprinting data instead of leveraging pattern matching techniques.

Secure Access performs Exact Data Matching using an EDM template, which you create by uploading a plain text CSV file that describes the fields to be matched, and choosing an EDM type for each field described in the CSV file. You must also specify which fields are required for a match, and their priority. Once the EDM template is created, you will obtain an ID for it from Secure Access.

You must then download the DLP indexer and run the indexer against your data records using the EDM template. The DLP indexer validates records against the template and generates hash fingerprints for those records, creating an EDM.

Once you have run the indexer, you will have an Exact Data Match Identifier associated with the documents. You will then be able to:

Procedure

  1. Create a Data Classification that uses the EDM as a custom data identifier (as described in Create a Data Classification or Copy and Customize a Built-In Data Classification).

  2. Create a DLP rule that uses the Data Classification including that EDM Identifier. (For more information on DLP rules, see Manage the Data Loss Prevention Policy.)

What to do next

With these configurations in place, Secure Access can monitor and/or block transmission of structured files containing records that match your indexed data. Matching records meet the criteria you establish when you create the EDM template.


Prerequisites for Exact Data Match Identifiers

  • Full Admin user role. For more information, see Manage Accounts.

  • JVM version 17+

  • The template CSV you upload must meet the following requirements:

    • The file can not be larger than 10 KB.

    • The second and ensuing rows may contain sample data; be aware, however, that this data will not be indexed unless it also appears in the source data CSV file.

  • The DLP indexer supports data files with up to 55 million records. The exact records limit is determined by the total number of columns and the number of those are of Alphanumeric type. The indexer displays the exact limit when attempting to load a file that exceeds it. If your dataset is larger than the limit, you need to split the records into multiple files. For errors received when indexing a large file, see Memory Tuning for DLP Exact Data Matching Indexer.

  • Both the template and source data CSV files must meet the following requirements:

    • A multi-term (multi-word) field can contain a maximum of 6 space-separated words.

    • The data file must contain only 1 byte or 2 byte UTF-8 encoded characters.

    • The first row of data must have between 1 and 50 fields and each row must have the same number of fields.

    • The first row of data must specify the name of each field, and each value must be unique.

    • Data in the second and ensuing rows must comply with the EDM field types and supported formats (see Exact Data Match Field Types).

    • The field names in the sample data template must match the field names in the actual data source file. The field names must appear in the same order in both files.

Caution

Do not create, edit, or view the template or source data CSV file using Microsoft Excel, as this may corrupt the file. Use a text editor.

Note

If any of the values provided in the source file to the DLP indexer fail to be validated as per the supported format, then the DLP indexer will skip that record and proceed with indexing the remaining records. The indexer also behaves in this manner for any records that may exceed the template-defined fields, and for empty rows or records with empty primary values. The position of the skipped records in the file will be provided as part of the output of the DLP indexer.

The following procedure uses the following example CSV file for both the template and indexed source data:

 Email,SSN,Passport number - US,Credit card number
 r_t@gmail.com, 113011111,123456789USA1234567U1234567, 5205105105105109
 r_ppp@gmail.com, 248257990,123456789USA1234567U1234567, 4532237384050172
 r_opop@gmail.com, 363265019,123456789USA1234567U1234567, 4532549977031249
 ppo_t@gmail.com, 417279936,123456789USA1234567U1234567, 4539157470627290

Create an Exact Data Match Identifier

Procedure

  1. Navigate to Secure > Settings > Data Classification > Exact Data Matches and click ADD EXACT DATA MATCH IDENTIFIER.

  2. Provide a name and description for the exact data match, then upload sample data and click Next.

    Note
    Do not upload any real data in the CSV. Use only sample data for the template.

    New Exact Data Match page displaying options for exact data name, description, upload file, and Next
  3. From the drop-down menu, choose the type of data of each field.

    The available field types are described in Exact Data Match Field Types:


    New Exact Data Match page displaying options for field name, sample data, type, and primary
  4. Select the Primary field that must be found with other data fields for the identifier to match and click Next. The primary field should be the field in the record to always match. The secondary fields are the number of fields in the record that should be present with the primary field to match.

  5. Enter the minimum number of secondary fields required to be found within 10 terms of the primary field for a match. You can have no secondary field, or up to as many fields in the record that are not the primary field. For example, if at least 3 secondary fields are required, then the identifier will trigger an event only when 3 or more additional fields are found with the primary field. If the .csv file has only 1 column, then the secondary option is greyed-out and automatically set to 0. Click Next.

    Note
    The secondary fields must each be a different identifier.

    New Exact Data Match page displaying options for Matching Conditions and Next
  6. Click the download icon to download the DLP indexer. Then click Save.

    Note
    You can click on Command Line Parameters to view information about the command line arguments required to run the indexer.

    New Exact Data Match page displaying options for index data, download DLP Indexer, and DLP Indexer Command
  7. The EDM Identifier now has a status of Data Not Indexed. You can expand the listing to view the details about the EDM Identifier. When the EDM identifier status is Data Not Indexed, you can edit the field types, the primary field selection, and the matching conditions, but the EDM Identifier cannot be added to a data classification. Make note of the ID for th EDM Identifier; you will need it to run the DLP indexer.

    Note
    The display page does not display the full EDM identifier ID; use the Copy icon to copy the ID

    New Exact Data Match page displaying options for ID, DLP Indexer, and Copy
  8. Create an API key and secret for the EDM data indexer.

    1. Navigate to Admin > API Keys and click Open API Keys.
    2. Click Add and provide an API Key Name and Description for the API Key.
    3. Select Policies > DLP Indexer for the scope and choose Read/Write for the permissions. Then click Create Key.

      Add New API Key page displaying options for Create Key, Key Scope, and Expiry Date
    4. Copy and save the API Key and Secret somewhere safe, as you will need them to run the DLP Indexer.

      Page displaying options for API Key, Key Secret, and Accept and Close
  9. Click ACCEPT AND CLOSE.

  10. Use the Secure Access DLP Indexer to index your data records. For more information on the indexer, see Index Data for an EDM.

    1. Move the indexer from the Downloads folder to a convenient location, such as the folder where the data records are stored.

    2. Run the indexer in a terminal window with the following command:

      java -jar <directory_path>\dlp-indexer.jar -i "<directory_path>\<source_file>.csv"

      -e <edm_template-id> -k <authKey> -s <authSecret>

      where:

      • <directory_path>\dlp-indexer.jar—the relative path to the location of the DLP indexer

      • "<directory_path>\<source_file>.csv"—the relative path to the csv spreadsheet with the actual data records

      • <edm_template-id> —the ID of the EDM Identifier retrievable from the Umbrella UI (see Step 7)

      • <authKey>—the API Key previously saved at Step 8d

      • <authSecret>—the API Secret previously saved at Step 8d

What to do next

The EDM Identifier now has a status of Data Indexed.


Data Classification page displaying options for Exact Data Matches and Status

The EDM Identifier now has a status of Data Indexed.

Note
When the EDM has a status of Data Indexed, you can add the EDM to a data classification but you can not edit the field types, primary field selection, or matching condition.

If you update your source file with new or changed records, you need to run the DLP indexer again on that file using the same EDM Identifier ID, API Key, and API Secret. This ensures that policies configured to use the EDM Identifier are updated to reflect the new data fingerprints. For more information, see Update the Indexed Data Set Periodically.


Index Data for an EDM

The DLP indexer creates irreversible fingerprints of critical data structured in records with a consistent format and uploads them to Secure Access to establish a custom EDM Identifier. EDM Identifiers enable Secure Access to protect sensitive data by using data fingerprinting techniques as opposed to pattern matching techniques.

EDM Identifiers can be added to a Data Classification (see Manage Data Classifications) as custom identifiers; DLP rules that use these identifiers can monitor and/or block files that match the data you have indexed.

You need to run the DLP indexer in two different circumstances:

  • When you initially create an EDM Identifier, you run the indexer on the data set you want to detect. This topic provides basic information for running the indexer, but for a description of the process to use the indexer within the context of creating an EDM Identifier, see Create an Exact Data Match Identifier. You cannot use the indexer to create an EDM Identifier without also performing the steps described in that topic.
  • When the data set to be detected changes, you run the indexer to produce an updated version of the EDM Identifier. This process is described in Update the Indexed Data Set Periodically.
Note
To see a summary of the indexer options available, invoke the indexer with the -h option. (java -jar <directory-path>\dlp-indexer.jar -h.)

Prerequisites for Index Data for an EDM

Note
If you already have a key and secret generated for use with a previous run of the DLP indexer, you may use those.
  • The indexer supports indexing source files with up to 55 million records. The exact records limit is determined by the total number of columns and how many of those are of alphanumeric type. The indexer will report the exact limit when attempting to load a file that exceeds it. If your dataset is larger than the limit, you need to split the records into multiple files. For errors received when indexing a large file, see Memory Tuning for DLP Exact Data Matching Indexer.

  • The source data CSV file you index must meet the following requirements:

    • A multi-term (multi-word) field can contain a maximum of 6 space-separated words.

    • The data file must contain only 1 byte or 2 byte UTF-8 encoded characters.

    • The first row of data must have between 1 and 50 fields and each row must have the same number of fields.

    • The first row of data must specify the name of each field, and each value must be unique.

    • Data in the second and ensuing rows must comply with the EDM field types and supported formats (See Exact Data Match Field Types.)

    • The field names in the sample data template must match the field names in the actual data source file. The field names must appear in the same order in both files.

Caution
Do not create, edit, or view the source data CSV file using Microsoft Excel, as this may corrupt the file. Use a text editor.
Note
If any of the values provided in the source file to the DLP indexer fail to be validated as per the supported format, then the DLP indexer will skip that record and proceed with indexing the remaining records. The indexer also behaves in this manner for any records that may exceed the template-defined fields, and for empty rows or records with empty primary values. The DLP indexer generates messages reporting the position of any skipped records in the file.

Run the DLP Indexer to Create an EDM Identifier

When you create a new EDM Identifier, you need to run the DLP indexer on the data set to upload the first set of data records. For the full procedure to create an EDM identifier, see Create an Exact Data Match Identifier.

Procedure

  1. Review the Prerequisites, especially:

  2. Run the indexer in a terminal window with the following command:

    java -jar <directory_path>\dlp-indexer.jar -i "<directory_path>\<source-file>.csv"-e <edm-template-id> -k <authKey> -s <authSecret>

    Where:

    • <directory_path>\dlp-indexer.jar —the relative path to the location of the DLP indexer

    • "<directory_path>\<source-file>.csv" —the relative path to the csv spreadsheet with the actual data records

    • <edm-template-id>—the ID of the EDM Identifier retrievable from the Secure Access UI using the copy icon shown in the following screenshot. (See also Step 7 in Create an Exact Data Match Identifier.)


      New Exact Data Match page displaying options for ID, Umbrella DLP Indexer, and Save

What to do next

If the indexer runs successfully, the exact data matcher will have a status of Data Indexed.

Note
When the EDM has a status of Data Indexed, you can add the EDM to a data classification but you can not edit the field types, primary field selection, or matching condition.

Update the Indexed Data Set Periodically

When your source data changes, the existing EDM Identifier on your configured policy must be updated to reflect the new data fingerprints. Using a script allows you to automatically rerun the DLP indexer periodically to update your source data to Secure Access without manually performing the initial procedure over again. After you rerun the DLP indexer with the updated version of the source file against the ID of your EDM Identifier, the DLP Policies configured with that EDM Identifier account for the most recent updates to your critical records.

Procedure

  1. In a terminal window, set the the API Key and Secret previously used to index the identifier (saved in Step 8d of Create an Exact Data Match Identifier ) to the environment variables DLP_AUTH_KEY and DLP_AUTH_SECRET.

  2. Run the command to re-index the identifier as part of a periodically executed script or manually as needed:

    java -jar <directory_path>\dlp-indexer.jar -i "<directory_path>\<source-file>.csv"

    -e <edm_template-id> -k DLP_AUTH_KEY -s DLP_AUTH_SECRET

    Where:

    • \<directory_path>\dlp-indexer.jar —the relative path to the location of the DLP indexer

    • "\<directory_path>\<source-file>".csv —the relative path to the csv spreadsheet with the actual data record.

    • <edm-template-id> —the ID used to index the EDM Identifier originally.


Troubleshooting

If the indexer reports a failure, examine the output error messages to determine the problem.

If the indexer returns an error message that reads, "Error: A JNI error has occurred, please check your installation and try again," check the following:

Procedure

  1. Confirm you have the latest version of the Java Development Kit installed.

  2. Confirm that you have your PATH system variable set correctly:

    1. Check the location where you have Java installed.

      • For Windows this is normally C:\Program Files\Java\jdk-<version-number>\bin

      • For Linux this is normally /usr/java/jdk-<version-number>/bin

    2. Use the instructions here to set the PATH system variable appropriately for your operating system.

What to do next

Note
If the data indexer fails to process the input file and returns a base64 encoded error code, provide that code to the Secure Access Support to assist you with troubleshooting.

Exact Data Match Field Types

When creating an Exact Data Match (EDM) template, you must choose an EDM type for each field provided. The EDM types are similar to the Built-in Data Identifiers in that specific patterns must be found to match the identifier. Unlike Built-In Identifiers, EDM types do not use keywords to find data matches.


Supported EDM Types

  • ABA Routing Number (US)—A 9-digit number used by banks to identify specific financial institutions in the United States.
  • Alphanumeric—Up to 6 words composed of 1 and 2-byte UTF-8 encoded characters, delimited by spaces.
  • Bank Account Number (US)—A 5-digit number denoting a bank account number issued in the United States.
  • Carte nationale d'identité sécurisée – CNIS (France)—A 12-digit number denoting the French national identity card number.
  • Credit Card Number—A valid 15 or 16-digit credit card number that passes the Luhn validation and includes any of the following delimiters: space, no space, ~, or -.
  • Date—A date value matching one of the following formats where the <delimiter> is no space, /, or -. :
  • the European format of <dd><delimiter><mm><delimiter><yyyy> or
  • the American format of <mm><delimiter><dd><delimiter><yyyy>
  • Email Address—A valid email address using ASCII characters.
  • Fiscal Identification Number – Número de identificación fiscal – NIF (Spain)—A number issued to Spanish nationals for identification purposes. The pattern matches<dddddddd><a> where:
    • ais any ASCII alphabet letter from a to z
    • d is any ASCII digit from 0 to 9
  • ICD Code—A number matching the pattern of one of the typical International Classification of Diseases (ICD) codes.
  • Individual Taxpayer Identification Number – ITIN (US)—A United States tax processing number issued by the Internal Revenue Service (IRS). The pattern must match the format of <ddd><delimiter><dd><delimiter><dddd> where:
    • d is any ASCII digit from 0 to 9
    • <delimiter> is a space, no space, ~, or -
  • International Bank Account Number – IBAN (UK)—An international bank account number for the UK. The pattern matches a format of <aadd><delimiter><aaaadddd><delimiter><dddd><delimiter><dddd><delimiter><dd> where:
    • ais any ASCII alphabet letter from a to z
    • d is any ASCII digit from 0 to 9
    • <delimiter> is a space, no space, ~, or -
  • IP Address—A valid IPv4 address.
  • National Drug Code Number (NDC)—Segments of the National Drug Code (NDC) used in the united States to identify drugs for human use. The pattern matches a format of <ddddd><delimiter><ddd><delimiter><dd> where:
    • ais any ASCII alphabet letter from a to z
    • d is any ASCII digit from 0 to 9
    • <delimiter> is ~ or -
  • National Insurance Number – NINO (UK)—An identification number issued to individuals by the United Kingdom Department for Work and Pensions. The pattern matches with a format of <aa><delimiter><dd><delimiter><dd><delimiter><dda> where:
    • ais any ASCII alphabet letter from a to z
    • d is any ASCII digit from 0 to 9
    • <delimiter> is a space, no space, ~, -, or .
  • Passport Number (US)—An identification number issued to citizen and non-citizen nationals of the United states. The pattern must match a format of <ddddddddd>USA<ddddddd>U<ddddddd> where d is any ASCII digit from 0 to 9.
  • Passport Number (UK)—An identification number that serves as proof of nationality or immigration status in the United Kingdom. The pattern must match one of the following formats:
    • a 9-digit number
    • <ddddddddd>GBR<ddddddd>U<ddddddd> where d is any ASCII digit from 0 to 9
  • Postcode (UK)—A number matching the typical UK postal code patterns, where the number can include a space between the inward and outward segments.
  • Social Security Number - INSEE (France)—National identification numbers for The National Institute of Statistics and Economic Studies issued at birth to French nationals. The number can be 12 or 15 digits. The pattern matches a format of <dddddddddddd><delimiter><dd> where:
    • d is any ASCII digit from 0 to 9
    • <delimiter> is a space, no space, ~
  • Social Security Number (US) – Strict—An identification number issued in the United States to citizens, permanent residents, and temporary working residents. The pattern matches<aaa><delimiter><dd><delimiter><dddd> where:
    • d is any ASCII digit from 0 to 9
    • <delimiter> is a space, no space, ~, -, or .