Hi Mahmoud Hesham ,
To enable scanning for compressed files in Microsoft Purview and configure DLP policies to prevent sensitive data from being shared via email, you can follow the steps below:
- Enable scanning for compressed files in Purview: By default, Purview does not scan the contents of compressed files such as .zip or .rar files. To enable scanning for compressed files, you need to configure a custom extractor in Purview. You can use the Azure Cognitive Search Blob Indexer to extract the contents of compressed files and make them available for scanning by Purview.
- Extract and inspect contents of .zip files: Once you have configured a custom extractor in Purview, you can extract and inspect the contents of .zip files. Purview will extract the contents of the .zip file and make them available for scanning by DLP policies.
- Configure DLP to block only password-protected archives that contain sensitive data: To configure DLP policies to block only password-protected archives that contain sensitive data, you can use the "Content contains sensitive information" condition in the DLP policy. This condition allows you to specify the sensitive information types that you want to detect, such as credit card numbers or social security numbers. You can also specify the file types that you want to scan, such as .zip or .rar files. Once you have configured the DLP policy, it will trigger a block action only when a password-protected archive containing sensitive data is detected.
Additional resource: https://learn.microsoft.com/en-us/purview/dlp-policy-reference
Hope it helps. Kindly let us know how it goes. Thankyou