Create RegEx Classifications

Objective: Create RegEx-Based Data Classification

In this section, we are going to build some data identifiers from scratch using regular expressions. These expressions will form the universal building blocks for a basic DLP policy that you could deploy using most DLP tools, including those built into many IaaS, PaaS, and SaaS platforms.

Don’t worry, if you’re not an expert with regular expressions (and so few are), you can use Skyhigh’s AI-assisted regular expression builder!

Tasks

Create a Regular Expression Classification for French Social Security Numbers

  1. Access your data classifications. From the Policy heading, select DLP Policies and then Classifications. Navigate to Classifications Navigate to Classifications

  2. Note the long list of pre-canned data classifications that are maintained by Skyhigh. We’re going to ignore these for the moment and build our classifications from scratch instead.

  3. From the Action drop-down menu, select Create Classification. Create Classification Create Classification

  4. Provide a name for the classification, such as “French SSN”.

  5. In the Conditions section, under Rule group 1, click Select Criteria and select Advanced Pattern from the list that appears. Advanced Pattern Advanced Pattern

  6. Click the New button to create a new Advanced Pattern. You can give this pattern the same name (French SSN).

  7. Use the AI RegEx Generator by clicking the button and then telling the generative AI that you would like a regular expression to describe “French Social Security numbers”. You can either cut and paste the pattern that appears or use the Insert RegEx button to insert it automatically (if it appears). AI RegEx AI RegEx

  8. Click Save to save the pattern, Done, and then Save to save the classification.

Tip

Data classifications can use multiple regular expressions, boolean logic, dictionaries (lists), and proximity, which we will cover more closely later in the workshop.

Repeat the Process for Credit Card Numbers and UK Drivers Licenses

Use the same procedure as above to create two more regular expression-based classifications for credit card numbers and UK driver’s licenses. When finished, you should have three custom classifications:

Finished Classifications Finished Classifications