Skip to main content
alya
Staff
Staff
September 4, 2026

Technical Tip: How to configure FortiMail DLP to detect Malaysian Identity Card Numbers

Description

This article describes how to configure FortiMail Data Loss Prevention (DLP) to detect Malaysian identity card numbers in email messages and attachments.

Scope

FortiMail.

Solution

FortiMail DLP can use user-defined sensitive data, including regular expressions, to identify specific information in email traffic.

For example, a Malaysian identity card number can be detected using a pattern matching the commonly used format:

YYMMDD-SS-####

Note:

The regular expression should be adjusted according to the organization's actual identity-card format and detection requirements.


  1. Create the Scan rule:

Go to:

Data Loss Prevention -> Rule & Profile -> Rule.

Select the appropriate pattern type, such as Regular Expression.

Enter the regular expression for the identity card number.


For example: \b\d{6}-\d{2}-\d{4}\b.

Save the configuration.

FortiMail supports user-defined sensitive data, such as words, phrases, and regular expressions.

e361fb94.png


7e09b0f2.png


  1. Create a DLP Rule:

Go to: Data Loss Prevention -> Rule & Profile -> Profile, select 'New', enter a name.

Under Conditions, select New, and configure the condition to check for the previously created sensitive data.


Select the email portion to inspect, such as:

  • Body.

  • Attachment.

  • Body and attachment.


Select the required action, save the rule.

FortiMail DLP rules can specify which part of an email should be checked, including email bodies and attachments.


61099ad7.png


  1. Apply the DLP profile to the policy.


e12a2145.png

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT