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 ones built many IaaS, PaaS, and SaaS platforms.

Don’t worry, if you’re not an expert with regular expressions, 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 Clasifications Navigate to Clasifications

  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 (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 Drivers Licenses. When finished, you should have three custom classifications:

Finished Classifications Finished Classifications