Dedup - Generic v4

This playbook identifies duplicate incidents using the Cortex XSOAR machine learning method (script). In this playbook, you can choose fields and/or indicators to be compared against other incidents in the Cortex XSOAR database. Note: To identify similar incidents you *must* properly define the playbook inputs.

Common Playbooks · 16 tasks · 12 inputs · 2 outputs

Inputs

  • method — Choose the way you want to identify similar incidents. Choose between "Indicators" / "Fields" / "Fields and Indicators".
  • handleSimilar — This input defines how to handle similar incidents. Possible values: "Link " (default), "Close", and "Link and Close". Note: Close incidents requires you to define the "CloseSimilar" input as well. Also, the incidents found by similar indicators or fields will be closed if their similarity score is above the CloseSimilar value.
  • fieldExactMatch — Select the incident field name you want the script to query. For example, if you select <Type>, the playbook will query against the database for all incidents with the same type as your current incident. Note: If you use comma-separated values, the operator between them will be *AND*.
  • fieldsToDisplay — A comma-separated list of additional incident fields to display in the context output. These fields can be used later on for layouts or other states if needed. (Those which will not be taken into account when computing similarity)
  • fromDate — The start date to filter incidents. Date format is the same as in the incidents query page, for example, "3 days ago", "1 month ago", "2019-01-01T00:00:00 +0200").
  • limit — The maximum number of incidents to query and set to context data. Default is: 200
  • minimunIncidentSimilarity — Retain incidents with a similarity score greater than the MinimunIncidentSimilarity. Default: 0.2 Value should be between 0 to 1 [0=low similarity, 1=identical]
  • similarTextField — A comma-separated list of incident text fields to take into account when computing similarity. For example commandline, URL
  • CloseSimilar — Defines the threshold of similarity to close a similar incident. All similar incidents with similarity above this value will be closed. For example, if CloseSimilar is set to .8 and an incident has a similarity score of .9, the incident will be closed. The value should be between 0 and 1 [0=low similarity , 1=identical].
  • showIncidentSimilarityForAllFields — Whether to display the similarity score for each of the incident fields that were entered in the "similarTextField". Default: True
  • query — The argument for dedicated query on incidents. This helps reduce the query size. Default (same is in the Incident tab): "-status:closed -category:job "
  • closeReason — Specify the reason for closing the incident. This information will be added as a note/comment to the closed incident.

Outputs

  • DBotFindSimilarIncidents — Return all the results from the "DBotFindSimilarIncidents" script.
  • DBotFindSimilarIncidentsByIndicators — Return all the results from the "DBotFindSimilarIncidentsByIndicators" script.

Commands used

closeInvestigation linkIncidents

Flowchart

yes Close link yes Indicators fields Yes yes yes yes yes Start Start Find Similar Incidents By Fields - DBotFindSimilarIncidents Find Similar Incidents By... DBotFindSimilarIncidents Are There Any Similar Incidents? Are There Any Similar Inc... Done Done Link similar incident - linkIncidents Link similar incident linkIncidents Similar Incident Found Similar Incident Found Close similar incidents - closeInvestigation Close similar incidents closeInvestigation Handle Similar Incident Handle Similar Incident Close Incident? Close Incident? Find Similar Incidents by Indicators - DBotFindSimilarIncidentsByIndicators Find Similar Incidents by... DBotFindSimilarIncidentsByInd... Find Similar Incidents By Indicators or Fields? Find Similar Incidents By... Also Find Similarity By Indicators? Also Find Similarity By I... A closer percentage was provided? A closer percentage was p... Are There Similar Incidents by Fields? Are There Similar Inciden... Close similar incidents - closeInvestigation Close similar incidents closeInvestigation Are There Similar Incidents by Indicators? Are There Similar Inciden...