API Reference: Office Macro Malware Analysis Tools
CLI Syntax
Output Sections
| Section |
Content |
AutoExec |
Auto-execution triggers (AutoOpen, Document_Open) |
Suspicious |
Dangerous functions (Shell, WScript, CreateObject) |
IOC |
Extracted indicators (URLs, IPs, file paths) |
Hex String |
Decoded hex-encoded strings |
Python API
oleid - Document Capability Identification
CLI Syntax
Indicators
| Indicator |
Risk Values |
VBA Macros |
True/False |
XLM Macros |
True/False |
External Relationships |
True/False |
ObjectPool |
True/False |
Flash |
True/False |
oledump.py - OLE Stream Analysis
CLI Syntax
Stream Markers
| Marker |
Meaning |
M |
Contains VBA macros |
m |
Contains macro attributes |
O |
Contains OLE objects |
XLMDeobfuscator - Excel 4.0 Macros
CLI Syntax
Dangerous XLM Functions
| Function |
Purpose |
EXEC() |
Execute shell command |
CALL() |
Call DLL function |
REGISTER() |
Register DLL function |
URLDownloadToFileA |
Download file from URL |
VBA Auto-Execution Triggers
| Trigger |
Application |
Auto_Open / AutoOpen |
Word |
Document_Open |
Word |
Workbook_Open |
Excel |
Auto_Close |
Word |
AutoExec |
Word |
VBA Suspicious Functions
| Function |
Risk |
Shell() |
Command execution |
WScript.Shell |
Windows scripting |
CreateObject() |
COM object instantiation |
URLDownloadToFile |
File download |
MSXML2.XMLHTTP |
HTTP requests |
ADODB.Stream |
Binary file writing |
CallByName |
Indirect method invocation |
Environ() |
Environment variable access |
ViperMonkey - VBA Emulation
Syntax