Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Blocking attachments with double extensions with regular expression

    • Updated:
    • 18 Nov 2021
    • Product/Version:
    • Trend Micro Email Security
    • Platform:
Summary

You want to block attachments with double extensions like:

  • example.pdf.exe
  • example.txt.html
Details
Public

In Trend Micro Email Security you can use Content Filtering to block these double extensions. The following steps below shows how to create a policy for this.

  1. Go to Inbound Protection > Content Filtering, and then click Add to create a new policy.

    Content Filter

    Click the image to enlarge.

  2. Under Basic Information, complete the needed information such as policy name.

    Basic Information

    Click the image to enlarge.

  3. Under Recipients and Senders, you may specify the user email address or domain for the targeted recipients, senders as well exceptions of the policy.

    Recipient & Sender

    Click the image to enlarge.

  4. Click on Scanning Criteria, select Advanced. Tick Attachment is, and then click on name or extension. A new window will open, where you can specify the criteria for the attachment name.

    Scan Criteria

    Click the image to enlarge.

  5. Add the regular expression. Do the following:
    1. Tick Attachments named, place the regular expression below and click Add.
    2. On the empty field add the following regular expression "example\.(...)\.(...)".
    3. Click the Add button.

      You will be able to see the expression added on the list below.

      Attachment Name

      Click the image to enlarge.

     
    All attachments with the following filename format <filename>.<3 characters>.<3 characters> will be triggered. For instance, the policy will be triggered if an attachment with "example.pdf.exe" as its file name is received.
     
  6. Once done, click on the Actions tab. Specify the action for the policy when triggered. In this case, we will set it to Quarantine.

    Edit Rule

    Click the image to enlarge.

  7. Click Submit to save changes.
Premium
Internal
Partner
Rating:
Category:
Configure
Solution Id:
000276673
Feedback
Did this article help you?

Thank you for your feedback!


*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.