Cortex XDR - Retrieve File by sha256

This playbook is part of the 'Malware Investigation And Response' pack. For more information, refer to https://xsoar.pan.dev/docs/reference/packs/malware-investigation-and-response. The playbook facilitates the process of retrieving files from the investigated devices, unzipping the retrieved files, and loading them into the War Room. This playbook consists of the following steps: Initially, the sub-playbook 'Cortex XDR - Get File Path from alerts by hash' examines the SHA256 file hashes and retrieves the file paths associated with each hash. As soon as the SHA256 hashes, file paths, and endpoint IDs are obtained, the playbook attempts to retrieve the files from all the investigated devices. Once the file retrieval automation has been completed successfully, the playbook will unzip the files and load them into the War Room. Note: When retrieving multiple files, ensure that the SHA256 input is set to run in a loop.

Cortex XDR by Palo Alto Networks · 9 tasks · 1 input · 10 outputs

Inputs

  • Sha256 — SHA256 for the file to be retrieved.

Outputs

  • File — Retrieve the file details command results.
  • File.Name — The full file name (including the file extension).
  • File.EntryID — The ID for locating the file in the War Room.
  • File.Size — The size of the file in bytes.
  • File.MD5 — The MD5 hash of the file.
  • File.SHA1 — The SHA1 hash of the file.
  • File.SHA256 — The SHA256 hash of the file.
  • File.SHA512 — The SHA512 hash of the file.
  • File.Extension — The file extension. For example, 'xls'.
  • File.Type — The file type, as determined by libmagic (same as displayed in the file entries).

Commands used

xdr-file-retrieve

Flowchart

true false true true Start Start Done Done Cortex XDR - Retrieve File - xdr-file-retrieve Cortex XDR - Retrieve File xdr-file-retrieve UnZip File - UnzipFile UnZip File UnzipFile Cortex XDR - Get File Path from alerts by hash - Cortex XDR - Get File Path from alerts by hash Cortex XDR - Get File Pat... Cortex XDR - Get File Path fr... Is there a path for the provided sha256? Is there a path for the p... Print Error - No path was found - PrintErrorEntry Print Error - No path was... PrintErrorEntry Were any errors? - isError Were any errors? isError Did the file retrieval fail? Did the file retrieval fail?