Skip to main content

Oletools

This Script is part of the Oletools Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.5.0 and later.

This is an automation to run oletools malware analysis for office files. Oletools is a tool for analyzing Microsoft OLE2 files, such as Microsoft Office documents or Outlook messages, mainly for malware analysis, forensics, and debugging. Note that oletools is open source code and is subject to change.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.5.0

Inputs#


Argument NameDescription
ole_commandThe OLE command to activate.
- oleid - to analyze OLE files to detect specific characteristics usually found in malicious files.
- oleobj - to extract embedded objects from OLE files.
- olevba- to extract and analyze VBA Macro source code from MS Office documents (OLE and OpenXML).
entryIDThe file to activate the oletools analysis on.
decodeDisplay all the obfuscated strings with their decoded content (Hex, Base64, StrReverse, Dridex, VBA). Note that this works only with the olevba command
passwordIf encrypted office files are encountered, try decryption with this password. May be repeated.

Outputs#


PathDescriptionType
Oletools.Oleid.ole_command_resultIndicator list from the oleid command.Unknown
Oletools.Oleid.file_nameFile nameUnknown
Oletools.Oleid.sha256SHA256 hash.Unknown
Oletools.Oleid.ole_command_result.File_formatIndicator file format.Unknown
Oletools.Oleid.ole_command_result.File_format.ValueIndicator file format value.Unknown
Oletools.Oleid.ole_command_result.File_format.Ole_RiskIndicator file format OLE risk.Unknown
Oletools.Oleid.ole_command_result.File_format.DescriptionIndicator file format description.Unknown
Oletools.Oleid.ole_command_result.Container_formatIndicator container format.Unknown
Oletools.Oleid.ole_command_result.Container_format.ValueIndicator container format valueUnknown
Oletools.Oleid.ole_command_result.Container_format.Ole_RiskIndicator container format OLE risk.Unknown
Oletools.Oleid.ole_command_result.Container_format.DescriptionIndicator container format description.Unknown
Oletools.Oleid.ole_command_result.EncryptedIndicator encrypted.Unknown
Oletools.Oleid.ole_command_result.Encrypted.ValueIndicator encrypted value.Unknown
Oletools.Oleid.ole_command_result.Encrypted.Ole_RiskIndicator encrypted OLE risk.Unknown
Oletools.Oleid.ole_command_result.Encrypted.DescriptionIndicator encrypted description.Unknown
Oletools.Oleid.ole_command_result.VBA_MacrosIndicator VBA macros.Unknown
Oletools.Oleid.ole_command_result.VBA_Macros.ValueIndicator VBA macros value.Unknown
Oletools.Oleid.ole_command_result.VBA_Macros.Ole_RiskIndicator VBA macros OLE risk.Unknown
Oletools.Oleid.ole_command_result.VBA_Macros.DescriptionIndicator VBA macros description.Unknown
Oletools.Oleid.ole_command_result.XLM_MacrosIndicator XLM macros.Unknown
Oletools.Oleid.ole_command_result.XLM_Macros.ValueIndicator XLM macros value.Unknown
Oletools.Oleid.ole_command_result.XLM_Macros.Ole_RiskIndicator XLM macros OLE risk.Unknown
Oletools.Oleid.ole_command_result.XLM_Macros.DescriptionIndicator XLM macros description.Unknown
Oletools.Oleid.ole_command_result.External_RelationshipsIndicator external relationships.Unknown
Oletools.Oleid.ole_command_result.External_Relationships.ValueIndicator XLM macros value.Unknown
Oletools.Oleid.ole_command_result.External_Relationships.Ole_RiskIndicator XLM macros OLE risk.Unknown
Oletools.Oleid.ole_command_result.External_Relationships.DescriptionIndicator XLM macros description.Unknown
Oletools.Oleid.ole_command_result.ObjectPoolIndicator object pool.Unknown
Oletools.Oleid.ole_command_result.ObjectPool.ValueIndicator object pool value.Unknown
Oletools.Oleid.ole_command_result.ObjectPool.Ole_RiskIndicator object pool OLE risk.Unknown
Oletools.Oleid.ole_command_result.ObjectPool.DescriptionIndicator object pool description.Unknown
Oletools.Oleid.ole_command_result.Flash_objectsIndicator flash objects.Unknown
Oletools.Oleid.ole_command_result.Flash_objects.ValueIndicator flash objects value.Unknown
Oletools.Oleid.ole_command_result.Flash_objects.Ole_RiskIndicator flash objects OLE risk.Unknown
Oletools.Oleid.ole_command_result.Flash_objects.DescriptionIndicator flash objects description.Unknown
Oletools.Oleobj.ole_command_result.hyperlinksList of hyperlinks.Unknown
Oletools.Oleobj.file_nameFile name.Unknown
Oletools.Oleobj.sha256SHA256 hash.Unknown
Oletools.Olevba.file_nameFile name.Unknown
Oletools.Olevba.sha256SHA256 hash.Unknown
Oletools.Olevba.ole_command_result.macro_analyzeMacro analyze.Unknown
Oletools.Olevba.ole_command_result.macro_src_codeMacro source code.Unknown
Oletools.Olevba.ole_command_result.macro_listMacro list.Unknown