Trend Micro CAS - Indicators Hunting

In this playbook, the 'trendmicro-cas-email-sweep' command is used to automatically hunt for and detect IOCs within email messages protected by Cloud App Security (CAS). Note that multiple search values should be separated by commas only (without spaces or any special characters). Supported IOCs for this playbook: - IP Addresses - CIDR - File Name - File Type - SHA1 - URL - Domain - Email Addresses Separate searches are conducted for each type of indicator in the playbook.

TrendAI™ Cloud App Security · 42 tasks · 13 inputs · 15 outputs

Inputs

  • IPAddress — A single or multiple IP address to search for within TrendMicro CAS logs. Used for both source and destination IP addresses Separate multiple search values by commas only (without spaces or any special characters).
  • CIDR — A single or multiple IP ranges to search for within TrendMicro CAS logs. Used for both source and destination IP addresses. Separate multiple search values by commas only (without spaces or any special characters).
  • URLDomain — Single or multiple URLs and/or domains to search for within TrendMicro CAS logs. Separate multiple search values by commas only (without spaces or any special characters).
  • FileName — Single or multiple file names to search for within TrendMicro CAS logs. Separate multiple search values by commas only (without spaces or any special characters).
  • FileType — A single or multiple file types to search for within TrendMicro CAS logs. Separate multiple search values by commas only (without spaces or any special characters).
  • SHA1 — Single or multiple SHA1 file hashes to search for within TrendMicro CAS logs. Separate multiple search values by commas only (without spaces or any special characters).
  • EmailAddress — A single or multiple email addresses to search for within TrendMicro CAS logs. Used for both recipient and sender email addresses. Separate multiple search values by commas only (without spaces or any special characters).
  • subject — Filter messages that should be retrieved from the TrendMicro CAS based on the email subject (string). Use double quotes to search for an exact phrase, for example, "messageA messageB" otherwise, a partial match based on the phrase is performed. For example, a search is performed on a subject containing messageA, or messageB, or messageA message B. Separate multiple search values by commas only (without spaces or any special characters).
  • start — The start date and time from which you would like to retrieve messages from TrendMicro CAS. Use ISO 8601 time format, e.g. 2020-08-01T02:31:20Z, or 'human-readable' data, such as 1 day ago or 3 weeks ago. For a complete time range, specify 'end' as well. If 'start' is not specified messages will be retrieved from TrendMicro CAS within seven days before the end time. In the absence of 'start' and 'end' inputs, the default value is 'last seven days' is set. Do not configure 'lastndays' and 'start' or 'end' at the same time.
  • end — The end date and time specify the period of time in which messages should be retrieved from TrendMicro CAS. Use ISO 8601 time format, e.g. 2020-08-01T02:31:20Z, or 'human-readable' data, such as 1 day ago or 3 weeks ago. For a complete time range, specify 'start' as well. If 'end' is not specified messages will be retrieved from TrendMicro CAS within seven days after the start time. In the absence of 'start' and 'end' inputs, the default value is 'last seven days' is set. Do not configure 'lastndays' and 'start' or 'end' at the same time.
  • lastndays — The number of days (n × 24 hours) before the request is sent to be examined. An alternative filter to the 'start' and 'end' inputs. This filter specifies a time range that will determine the period of time in which messages should be retrieved from TrendMicro CAS. Do not configure 'lastndays' and 'start' or 'end' at the same time.
  • limit — The maximum number of email messages to display. The maximum number of messages is 1,000. If not specified, a default value of 20 will be used.
  • next_link — The URL for the results page if the total number of email messages in a previous request exceeds the specified limit. When the maximum limit has been exceeded, a URL is specified in the response. To retrieve the remaining email messages, use the URL from the response.

Outputs

  • TrendMicroCAS.HuntingResults.value — Email message objects and fields that were retrieved from TrendMicro CAS.
  • TrendMicroCAS.HuntingResults.value.mail_message_delivery_time — The time and date when the email message was sent.
  • TrendMicroCAS.HuntingResults.value.mail_message_id — The Internet message ID of the email message.
  • TrendMicroCAS.HuntingResults.value.mail_unique_id — The ID of the email message.
  • TrendMicroCAS.HuntingResults.value.mailbox — The mailbox which contains the email message.
  • TrendMicroCAS.HuntingResults.value.source_ip — The source IP address of the email message.
  • TrendMicroCAS.HuntingResults.value.source_domain — The source domain of the email message.
  • TrendMicroCAS.HuntingResults.value.mail_urls — The URL contained in the email body or attachment.
  • TrendMicroCAS.HuntingResults.value.mail_message_subject — The subject of the email message.
  • TrendMicroCAS.HuntingResults.value.mail_message_sender — The email address of the sender.
  • TrendMicroCAS.HuntingResults.value.mail_message_recipient — A list of recipient email addresses of the email message.
  • TrendMicroCAS.HuntingResults.value.mail_internet_headers.Value — Sender's email address as displayed in the email header.
  • TrendMicroCAS.HuntingResults.value.mail_attachments — Email attachment objects that were retrieved from TrendMicro CAS.
  • TrendMicroCAS.HuntingResults.value.mail_attachments.file_sha1 — The SHA-1 hash value of the attachment file.
  • TrendMicroCAS.HuntingResults.value.mail_attachments.file_name — The name of the attachment file.

Commands used

trendmicro-cas-email-sweep

Flowchart

yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes Start Start Is TrendAI™ Cloud App Security enabled? - IsIntegrationAvailable Is TrendAI™ Cloud App Sec... IsIntegrationAvailable Done Done TrendMicro CAS Query - IP Address - trendmicro-cas-email-sweep TrendMicro CAS Query - IP... trendmicro-cas-email-sweep IP Address Indicators IP Address Indicators Save Matching Results - IP Address - SetAndHandleEmpty Save Matching Results - I... SetAndHandleEmpty CIDR Indicators CIDR Indicators File Name Indicators File Name Indicators File Type Indicators File Type Indicators SHA1 Indicators SHA1 Indicators EmailAddress Indicators EmailAddress Indicators URL Domain Indicators URL Domain Indicators Any IP addresses to hunt for? Any IP addresses to hunt ... Any CIDRs to hunt for? Any CIDRs to hunt for? Any file name to hunt for? Any file name to hunt for? Any file type to hunt for? Any file type to hunt for? Any SHA1 to hunt for? Any SHA1 to hunt for? Any URLs or domains to hunt for? Any URLs or domains to hu... IP Address Hunting Done IP Address Hunting Done CIDR Hunting Done CIDR Hunting Done TrendMicro CAS Query - CIDR - trendmicro-cas-email-sweep TrendMicro CAS Query - CIDR trendmicro-cas-email-sweep TrendMicro CAS Query - File Name - trendmicro-cas-email-sweep TrendMicro CAS Query - Fi... trendmicro-cas-email-sweep File Name Hunting Done File Name Hunting Done TrendMicro CAS Query - File Type - trendmicro-cas-email-sweep TrendMicro CAS Query - Fi... trendmicro-cas-email-sweep File Type Hunting Done File Type Hunting Done TrendMicro CAS Query - SHA1 - trendmicro-cas-email-sweep TrendMicro CAS Query - SHA1 trendmicro-cas-email-sweep SHA1 Hunting Done SHA1 Hunting Done TrendMicro CAS Query - Domain - trendmicro-cas-email-sweep TrendMicro CAS Query - Do... trendmicro-cas-email-sweep URL Domain Hunting Done URL Domain Hunting Done TrendMicro CAS Query - URL - trendmicro-cas-email-sweep TrendMicro CAS Query - URL trendmicro-cas-email-sweep TrendMicro CAS Query - Recipient Email Address - trendmicro-cas-email-sweep TrendMicro CAS Query - Re... trendmicro-cas-email-sweep TrendMicro CAS Query - Sender Email Address - trendmicro-cas-email-sweep TrendMicro CAS Query - Se... trendmicro-cas-email-sweep Any email addresses to hunt for? Any email addresses to hu... Email Address Hunting Done Email Address Hunting Done Save Matching Results - CIDR - SetAndHandleEmpty Save Matching Results - CIDR SetAndHandleEmpty Save Matching Results - File Name - SetAndHandleEmpty Save Matching Results - F... SetAndHandleEmpty Save Matching Results - File Type - SetAndHandleEmpty Save Matching Results - F... SetAndHandleEmpty Save Matching Results - SHA1 - SetAndHandleEmpty Save Matching Results - SHA1 SetAndHandleEmpty Save Matching Results - Domain & URL - SetAndHandleEmpty Save Matching Results - D... SetAndHandleEmpty Save Matching Results - Sender Email Address - SetAndHandleEmpty Save Matching Results - ... SetAndHandleEmpty Save Matching Results - Recipient Email Address - SetAndHandleEmpty Save Matching Results - R... SetAndHandleEmpty Remove Duplications From Matching Results - SetAndHandleEmpty Remove Duplications From ... SetAndHandleEmpty