SQL Server Data Masking: Static vs Dynamic

SQL Server Data Masking: Static vs Dynamic

What is SQL Server Data Masking?

Data masking is a data security technique that allows you to obfuscate sensitive data, so it isn’t useful if compromised by an attacker. The masked copy is used to replace real data for testing, demos, or other use cases that don’t require the data itself.

Microsoft SQL Server’s built-in security features enable two types of data masking:

Read our complete guide to dynamic data masking (across all data stores).

What is SQL Server Static Data Masking?

In SQL Server, the Static Data Masking feature lets you create clean copies of your databases, modified to obfuscate all sensitive information, allowing them to be shared with non-production users.

Static Data Masking can be used for development, testing, analysis and reports, technical support, and sharing databases with third parties or contractors. For organizations subject to GDPR, it can be used to eliminate personal information from databases, while preserving the database structure.

Static data masking lets you configure masking behavior for each column in the database. For each selected column, it replaces the original data with new, masked data, created according to your configuration.

Note: Static Data Masking is irreversible—you cannot retrieve the original data after it has been masked.

What is SQL Server Dynamic Data Masking?

Dynamic data masking (DDM) enables you to control which users view masked data and which roles can view sensitive data. You can use DDM to prevent unauthorized access to certain pieces of data by limiting the amount of sensitive data revealed.

The main goal of DDM is to limit the amount of exposure to sensitive data. Use it as an additional tool to support your overall security efforts. DDM is available in Azure SQL Database and SQL Server 2016 (13.x) and later.

DDM lets you hide the sensitive data pooled together when users run queries. You can hide data by configuring DDM on specific database fields. You can implement masking rules within query results. This process does not modify the masked data and can be applied on existing apps.

SQL Server Dynamic Data Masking Types

Here are four data masking types you can use on SQL Server:

Static Data Masking vs. Dynamic Data Masking: Pros and Cons

Advantages of Static Data Masking:

Disadvantages of Static Data Masking:

Advantages of Dynamic Data Masking:

Disadvantages of Dynamic Data Masking:

SQL Server Data Masking with Satori

Satori Universal Masking is using data classification in conjunction with dynamic masking. Users can define which transformations they wish to apply on any data type instead of being applied to specific columns. It works across SQL server and other data stores.