olevba
Parse OLE and OpenXML files (e.g., DOC, XLS, PPT, etc.) to extract VBA macros, deobfuscate, and analyze malicious code. tldr-pages
On several platforms
Several platforms
Parse OLE and OpenXML files (e.g., DOC, XLS, PPT, etc.) to extract VBA macros, deobfuscate, and analyze malicious code. Part of the python-oletools suite.
Analyze a file, showing both macro code and analysis results
olevba path/to/fileIdentifyRecursively analyze all supported files in a directory
olevba -r path/to/directoryIdentifyProvide a password for encrypted Microsoft Office files (may be repeated)
olevba --password password path/to/encrypted_fileIdentifyDisplay only analysis results, without showing macro source code
olevba --analysis path/to/fileIdentifyDisplay only macro source code
olevba --code path/to/fileIdentifyShow obfuscated strings and their decoded content
olevba --decode path/to/fileIdentify