Skip to main content

Search And Delete Emails - Gmail

This Playbook is part of the Gmail Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

This playbook searches Gmail to identify and delete emails with similar attributes to the malicious email.\ Note: Searching through large amount of mailboxes might trigger a 429 error code. You can find more details here: https://developers.google.com/gmail/api/guides/handle-errors#:~:text=A%20429%20%22Too%20many%20requests,per%2Duser%20concurrent%20request%20limit.

Dependencies#

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

Sub-playbooks#

This playbook does not use any sub-playbooks.

Integrations#

  • Gmail

Scripts#

  • GetTime
  • Set

Commands#

  • extractIndicators
  • gmail-delete-mail
  • gmail-search-all-mailboxes

Playbook Inputs#


NameDescriptionDefault ValueRequired
FromThe value of the malicious email's "From" attribute.Optional
SubjectThe value of the malicious email's "Subject" attribute.Optional
AttachmentNameThe value of the malicious email's "AttachmentName" attribute.Optional
LimitThe maximum number of search results.50Optional
DeleteTypeThe deletion type (trash or permanent).
For permanent choose 'True'.
FalseOptional
SearchThisWeekLimit the search to the current week (true/false).trueOptional

Playbook Outputs#


There are no outputs for this playbook.

Playbook Image#


Search And Delete Emails - Gmail