Skip to main content

Message Quarantine - Cofense Vision

This Playbook is part of the Cofense Vision Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.2.0 and later.

This playbook allows users to quarantine various messages that meet their specified criteria.

Dependencies#

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks#

This playbook does not use any sub-playbooks.

Integrations#

  • Cofense Vision

Scripts#

  • SetAndHandleEmpty
  • GetMessageIdAndRecipients

Commands#

  • cofense-message-search-results-get
  • cofense-quarantine-job-create
  • cofense-message-metadata-get
  • cofense-message-search-create

Playbook Inputs#


NameDescriptionDefault ValueRequired
subjectsA comma-separated string of subjects to create a search for an email's subject. It supports the use of one or more wildcard characters (*) in any position of a subject.

Note: The search can only have a maximum of 3 values.
Optional
sendersA comma-separated string of senders to create a search for an email's sender. It supports the use of one or more wildcard characters (*) in any position of a sender's email address.

Note: The search can only have a maximum of 3 values.
Optional
attachment_namesA comma-separated string of attachment names to create a search for an email's attachments. It supports the use of one or more wildcard characters (*) in any position of an attachment name.

Note: The search can only have a maximum of 3 values.
Optional
attachment_hash_match_criteriaThe type of matching performed on the hashes specified in the attachment_hashes argument.

Possible values are:
ALL: Emails must include all listed attachment hashes.
ANY: Emails must contain at least one of the listed attachment hash.
ANYOptional
attachment_hashesA comma-separated string of attachment hashes to create a search for an email's attachment hashes.

Supported format: hashtype1:hashvalue1, hashtype2:hashvalue2

Possible values for hashtype are: MD5, SHA256

Example: md5:938c2cc0dcc05f2b68c4287040cfcf71

Note: The search can only have a maximum of 3 values.
Optional
attachment_mime_typesA comma-separated string of MIME types to create a search for an email's attachment MIME type.

Note: The search can only have a maximum of 3 values.
Optional
attachment_exclude_mime_typesA comma-separated string of MIME types to create a search for excluding an email's attachment MIME type.

Note: The search can only have a maximum of 3 values.
Optional
domain_match_criteriaThe type of matching to perform on the domains specified in the domains argument.

Possible values are:
ALL: Emails must include all listed domains.
ANY: Emails must contain at least one of the listed domains.
ANYOptional
domainsA comma-separated string of domains to create a search for domains in an email's body or its attachment. You can change the type of matching that happens on the specified domains using the domain_match_criteria argument.

Note: The search can only have a maximum of 3 values.
Optional
whitelist_urlsA comma-separated string of URLs to be whitelisted.

Note: The search can only have a maximum of 3 values.
Optional
headersA comma-separated string of key-value pairs, defining the additional criteria to search for in the email header.

Supported format: key1:value1, key2:value1:value2:value3

Example: Content-Type:application/json

List of available headers to create a search can be retrieved by using the command 'cofense-searchable-headers-list'.

Note: The search can only have a maximum of 3 values.
Optional
internet_message_idThe unique identifier of the email, enclosed in angle brackets. This argument is case-sensitive.

Example: <513C8CD8-E593-4DC4-82BF6202E8AC95CB@example.com>
Optional
partial_ingestWhether to create a search with partially ingested emails (true) or not with partially ingested emails (false).FalseOptional
received_after_dateDate and time to create a search for emails to specify the received on or after the specified UTC date and time.

Supported formats: N minutes, N hours, N days, N weeks, N months, N years, yyyy-mm-dd, yyyy-mm-ddTHH:MM:SSZ

Example: 01 Mar 2021, 01 Feb 2021 04:45:33, 2022-04-17T14:05:44Z
Optional
received_before_dateDate and time to create a search for emails to specify the received before or on the specified UTC date and time.

Supported formats: N minutes, N hours, N days, N weeks, N months, N years, yyyy-mm-dd, yyyy-mm-ddTHH:MM:SSZ

Example: 01 Mar 2021, 01 Feb 2021 04:45:33, 2022-04-17T14:05:44Z
Optional
recipientCreate a search with the specified recipient. Supports one or more wildcard characters (*) in any position of a recipient's email address.Optional
urlCreate a search with the specified url. Supports one or more wildcard characters (*) in any position of the URL.Optional
message_sizeThe number of results to retrieve per page. The value must be a positive integer up to 2000.

Default value is '50'
50Optional

Playbook Outputs#


PathDescriptionType
Cofense.Search.Message.idThe ID of the message.unknown
Cofense.Search.Message.subjectThe subject of the message.unknown
Cofense.Search.Message.receivedOnThe date and time when the message was received by the recipient.unknown
Cofense.Search.Message.sentOnThe date and time when the message was sent by the sender.unknown
Cofense.Search.Message.md5The MD5 hash of the message.unknown
Cofense.Search.Message.internetMessageIdUnique identifier of the email.unknown
Cofense.Search.Message.from.addressThe email address of the sender.unknown
Cofense.Search.Message.headers.valueThe value of the header key.unknown
Cofense.Search.Message.headers.nameThe name of the header key.unknown
Cofense.Search.Message.recipients.addressThe email address of the recipient.unknown
Cofense.Search.Message.attachments.filenameThe name of the attachment file.unknown
Cofense.Search.Message.attachments.md5The MD5 hash of the attachment.unknown
Cofense.Search.Message.attachments.idThe ID of the attachment.unknown
Cofense.Message.idID of the message in cofense vision.unknown
Cofense.Message.subjectSubject of the email.unknown
Cofense.Message.receivedOnDate and time an email was received by the recipient.unknown
Cofense.Message.sentOnDate and time an email was sent to the recipient.unknown
Cofense.Message.md5MD5 hash of the message.unknown
Cofense.Message.internetMessageIdID of an email assigned by the message transfer agent.unknown
Cofense.Message.matchingIOCsMD5 hash of one or more matching IOCs.unknown
Cofense.Message.matchingSourcesOne or more matching IOC sources.unknown
Cofense.Message.from.addressAn email address of the sender.unknown
Cofense.Message.headers.nameThe name of the key in the header.unknown
Cofense.Message.headers.valueThe value of the key in the header.unknown
Cofense.Message.recipients.addressEmail address of the recipient.unknown
Cofense.Message.attachments.filenameThe name of the attachment file.unknown
Cofense.Message.attachments.md5The MD5 hash of the attachment.unknown
Cofense.Message.attachments.idThe ID of the attachment.unknown
Cofense.QuarantineJob.idID of the quarantine job in cofense vision.unknown
Cofense.QuarantineJob.emailCountNumber of emails quarantined.unknown
Cofense.QuarantineJob.matchingIOCsMD5 hash of one or more matching IOCs.unknown
Cofense.QuarantineJob.matchingSourcesOne or more IOC sources.unknown
Cofense.QuarantineJob.quarantineEmails.idID in cofense vision.unknown
Cofense.QuarantineJob.quarantineEmails.internetMessageIDID of the email assigned by the message transfer agent.unknown
Cofense.QuarantineJob.quarantineEmails.recipientAddressEmail address of the account containing the emails to be quarantined.unknown
Cofense.QuarantineJob.quarantineEmails.statusStatus of the email.unknown
Cofense.QuarantineJob.quarantineJobRuns.idID of the quarantine job in Cofense Vision.unknown
Cofense.QuarantineJob.quarantineJobRuns.statusStatus of the quarantine job.unknown
Cofense.QuarantineJob.quarantineJobRuns.totalTotal number of emails in the quarantine job.unknown
Cofense.Search.Message.from.idThe ID of the sender.unknown
Cofense.Search.Message.headers.idThe ID of the header.unknown
Cofense.QuarantineJob.matchingIocInfo.idMD5 hash composed of the UTF-8 concatenation of "threat_type" and "threat_value" attributes.unknown
Cofense.QuarantineJob.matchingIocInfo.attributes.threat_typeThreat type of the IOC match.unknown
Cofense.QuarantineJob.matchingIocInfo.attributes.threat_valueActual value of the IOC match in the email.unknown
Cofense.QuarantineJob.matchingIocInfo.metadata.sourceData that the IOC source reads and writes.unknown

Playbook Image#


Message Quarantine - Cofense Vision