DataSunrise Achieves AWS Data & Analytics Competency. Learn more →

Part ofProtection and Enforcement

Dynamic Data Masking

Protected Results Without Changing Stored Data

Conceal sensitive values in live database results while applications continue to receive usable data.

  • User and Application Context
  • Request or Response Masking
  • Built-in and Custom Methods

What this product covers

Dynamic Data Masking gives teams real-time control over how sensitive information appears across live database workflows. It keeps data useful for legitimate work while reducing unnecessary exposure to users and applications.

A policy can consider who is requesting the data, which application they use, what operation they run, and which field they access. Security teams decide when to show the original value, when to return masked data, and what the protected result should look like.

From a Live Request to a Protected Result

The masking rule runs between the request and the returned data.

  1. Request

    Request the data

    A user or application asks the database for data through DataSunrise.

  2. Mask

    Apply the masking rule

    DataSunrise matches the request to a policy and masks the configured values.

  3. Result

    Return protected data

    The user or application receives the protected result.

The original value in the database remains unchanged.

See the workflow in DataSunrise

Product screens show how policy, evidence, and protection appear in practice.

Explore Dynamic Data Masking

1 / 4

Decide When a Rule Applies

Rule inputHow it is used
Database and instanceChoose the connection to protect
User and sessionApply rules by database user, application user, client, host, or application
OperationApply rules to selected requests or statement types
Object and fieldTarget schemas, tables, columns, or available NoSQL objects and fields
Information TypeMask values that match a sensitive-data definition
ConditionUse row, value, expression, or session conditions

When an application passes its user identity to DataSunrise, Application-User Attribution can apply policies to the individual user behind a shared database account.

Choose What the User Sees

Choose a masking method based on how much of the original value the user needs to see.

OutcomeMethodsWhen to use it
Fixed replacementFixed strings, nulling, or deterministic constantsRemove the clear value when realistic data is unnecessary
Partial visibilityPartial masks and reveal rulesKeep approved fragments such as the last digits of an identifier
Realistic variationRandom, date, identity-specific, or data-type-aware methodsKeep results usable without exposing the original value
Pattern preservationRegular expressions, format preservation, tokenization, and cryptographic methodsMaintain a required shape or stable reference
Custom behaviorFunctions, Lua, and unstructured-data methodsApply organization-specific logic
Visibility controlHide rows, fields, or NoSQL objectsPrevent selected data from being returned

Works Across Your Data Environment

DataSunrise applies Dynamic Data Masking across databases, analytics services, NoSQL systems, and object storage while the original data remains unchanged.

EnvironmentWhat Dynamic Data Masking protects
Databases and analyticsLive results across PostgreSQL, MySQL and MariaDB, Oracle, Microsoft SQL Server, Redshift, Snowflake, Athena, and other supported platforms
NoSQL systemsSelected fields in MongoDB, DynamoDB, and Elasticsearch, with object-level visibility controls for MongoDB and DynamoDB
Object storageSensitive content in CSV, XML, JSON, and unstructured files stored in Amazon S3 and compatible object storage

Explore integrations to see how DataSunrise fits the technologies in your environment.

Test and Review the Rule

Dynamic Masking Events show which rule matched. Before rollout, test the queries, prepared statements, functions, stored procedures, data types, privileges, and application behavior used by the database.

After rollout, review matching events and adjust the policy when the application or data handling changes.

FAQ

Frequently Asked Questions

When should I use Static Data Masking instead?

Use Static Data Masking when you need a de-identified copy for development, testing, or analytics. Dynamic Data Masking protects live results without writing a copy.

Can Dynamic Data Masking block a database operation?

Dynamic Data Masking changes the request or result. Use Database Firewall when a policy must block the operation.

How are Salesforce and Generative AI masked?

Salesforce Dynamic Data Masking and Generative AI Data Masking use dedicated integrations rather than the database proxy workflow described on this page.

See how DataSunrise works with your technology stack

View Integration Examples