File Blocking

Many malware closely associate with certain file type extensions (examples: .doc, .exe, .dll). The file's extension identifies the file type. Similarly, specific attacks often associate with a specific file name. Cloud App Security can block files according to the file type, file name, file extension, or file contents that contain suspicious URLs.

  • For email services, file blocking prevents email messages containing suspicious attachments from delivering to recipients. Policy actions include replacing the file with a benign text file, quarantining or deleting all email messages with attachments that violate specified policies, or labeling the violating email messages as risky in recipient's mailbox (Gmail only).

  • For the other cloud applications, file blocking prevents suspicious files from entering these applications. Policy actions include quarantining or deleting files that violate specified policies.

Note:

Trend Micro recommends temporarily quarantining all high-risk file types and known malware file names. This way, you can examine the quarantine folder and take action on detected files when you have more time.

Configuring File Blocking

  1. Select Enable File Blocking.
  2. Configure Rules settings.
    Option Description

    Apply to

    (Exchange Online and Gmail only) Select the scope of email messages that Malware Scanning applies to.

    • All messages: means that this policy applies to incoming, outgoing, and internal email messages. Incoming/outgoing email messages are sent from/to non-internal domains.

    • Incoming messages: means that this policy applies only to incoming email messages sent from non-internal domains.

    Note:

    For details about internal domains, see Configuring Internal Domains

    For Exchange Online (Inline Mode), the scope is fixed to Inbound messages for inbound protection and Outbound messages for outbound protection. Inbound messages are sent from outside your organization to an address inside the organization, while outbound messages are sent from your organization to external addresses.

    Type of File Blocking

    Select whether to block all files or specific files.

    Blocking list

    If Type of File Blocking is set to "Block All Files":

    • Select File types not blocked to select or specify true file types that Cloud App Security never blocks.

    • Select File extensions not blocked to select or specify file extensions that Cloud App Security never blocks.

    • Select File names not blocked to type the file name that Cloud App Security never blocks.

    If Type of File Blocking is set to "Block Specific Files":

    • Select File types to block to select or specify true file types that Cloud App Security always blocks.

    • Select File extensions to block to select or specify file extensions that Cloud App Security always blocks.

      Optionally click Export to export the specified file extensions as a .txt file.

      Optionally click Import to import file extensions in batches. The extension cannot exceed 255 characters, begin or end with a period ("."), or contain unsupported characters (/ \ : * ? < > " |) . The total number of users, including those already added, cannot exceed 1,000.

    • Select File names to block to type the file name that Cloud App Security always blocks.

    Compressed Files

    Select the check box to scan for excluded file extensions and file names inside compressed files.

  3. (Exchange Online and Gmail only) Configure Approved Sender List.
    1. Select Enable the approved sender list.
    2. Specify a sender email address to exclude from scanning and click Add >.
      Note:

      Be aware that for individual email addresses, wildcard characters and regular expressions are not supported.

      A maximum of 1,024 email addresses can be added to the Approved Sender list.

    3. Optionally click Import to import sender email addresses in batches from a .txt file.

      Make sure that each email address occupies a separate line in the .txt file.

  4. Configure Action settings.

    Cloud App Security protects cloud applications and services by executing specified actions after detecting a file that matches scanning conditions. The action depends on the performed scan, the affected application or service, and the configured actions for that scan.

    • Exchange Online, Exchange Online (Inline Mode) - Inbound Protection, Exchange Online (Inline Mode) - Outbound Protection policies
    Option Description

    Replace with text/file

    Cloud App Security deletes the file, infected, malicious, or undesirable content and replaces it with text or a file. The email message is delivered to the intended recipient, but the text replacement informs them that the original content was infected and was replaced.

    Note:

    For Exchange Online, Cloud App Security does not support this action for MIP-encrypted email messages and applies the Pass action instead.

    Quarantine

    Cloud App Security moves the email message to a dedicated quarantine location, removing it as a security risk to protected services.

    Note:

    For Exchange Online, the quarantine location is a folder in the user's mailbox; for Exchange Online (Inline Mode), the quarantine location is in the storage of Cloud App Security.

    Delete

    Cloud App Security deletes the entire email message.

    Pass

    Cloud App Security records the detection in a log and the message is unchanged.

    Advanced Options

    Specify the Replacement file name and Replacement text that Cloud App Security uses when an attachment violating the policy rules arrives. Cloud App Security replaces the file/text with the configured replacement information.

    • SharePoint Online, OneDrive, Microsoft Teams (Teams), Box, Dropbox, and Google Drive policies
    Option Description

    Quarantine

    Cloud App Security moves the file to a restricted access folder, removing it as a security risk to protected services.

    Delete

    Cloud App Security deletes the file and replaces it with a placeholder using the original file name and .txt.

    Pass

    Cloud App Security records the detection in a log and the file is unchanged.

    Advanced Options

    Specify text to replace the original file content when a file is quarantined or deleted.

    • Teams Chat policies
    Option Description

    Pass

    Cloud App Security records the detection in a log and the message is unchanged.

    Block

    Cloud App Security calls Microsoft Teams to hide the message from both the sender and recipient.

    Note:

    If a file in a chat message violated the policy, it was hidden from the private chat window (the Chat tab), but it is still stored in the sender's OneDrive folder and shown on the Files tab.

    • Gmail policies
    Option Description

    Label email

    Cloud App Security includes a label Risky (by Trend Micro) at the top of the email message in the user's mailbox.

    Quarantine

    Cloud App Security moves the file to a restricted access folder, removing it as a security risk to protected services.

    Delete

    Cloud App Security deletes the entire email message.

    Pass

    Cloud App Security records the detection in a log and the message is unchanged.

    • Salesforce policies
    Option Description

    Tag file name

    Cloud App Security adds a tag to the file name to warn stakeholders about threats detected in uploaded files.

    Quarantine

    Cloud App Security moves the file to a restricted access folder, removing it as a security risk to protected services.

    Delete

    Cloud App Security deletes the entire email message.

    Pass

    Cloud App Security records the detection in a log and the message is unchanged.

    Advanced Settings for Files

    • Select Apply secondary action when file quarantine fails and specify a secondary action if you want to take backup action when the quarantine action for a file fails. This option can be configured only when a Quarantine action is selected.

    • Specify the File name tag and Replacement text that Cloud App Security uses when a file violating the policy rules is detected. Cloud App Security adds the specified tag to the file name if the Tag file name action is selected in the Action section. If the file is quarantined or deleted, Cloud App Security replaces the original file content with the specified replacement text.

  5. Configure Notification settings.
    Option Description

    Notify administrator

    Specify message details to notify administrators that Cloud App Security detected a security risk and took action on an email message, attachment, or file.

    Notification threshold sets limits on messages to send. Threshold settings include:

    • Send consolidated notifications periodically: Cloud App Security sends an email message that consolidates all the notifications for a period of time. Specify the period of time by typing a number in the box and selecting hour(s) or day(s).

    • Send consolidated notifications by occurrences: Cloud App Security sends an email message that consolidates notifications for a set number of filtering actions. Specify the number of virus/malware occurrences by typing a number in the box.

    • Send individual notifications: Cloud App Security sends an email message notification every time Cloud App Security performs a filtering action.

    Notify User

    Exchange Online and Gmail: Specify message details that notify recipients that Cloud App Security detected a security risk and took action on their email message or attachment.

    SharePoint Online, OneDrive, Microsoft Teams (Teams), Box, Dropbox, and Google Drive: Specify message details that notify the user who updated a file that Cloud App Security detected a security risk and took action on their file.

    Teams Chat: Cloud App Security does not provide this option. When a chat message was blocked, a notification "This message was blocked." provided by Microsoft appears in the sender's private chat window. Message senders can click What can I do? to view more information about the blocked messages.

    Salesforce: Specify message details that notify the user who updated a Salesforce object record that Cloud App Security detected a security risk and took action on the update.

    Note:

    When specifying a notification message, include relevant tokens and edit the message content as desired. For details about tokens, see Token List.

  6. Click Save or select another policy configuration on the left navigation to continue with additional rules.