Skip to content
OSINTtools.io

oletools

Verified yesterday

Python tools to analyse Office documents, OLE files and RTF for VBA and Excel 4 macros, embedded objects and DDE links.

Python CLI · Open source · Data analysis and case notes · github.com

Takes
File
Pricing
Free, open source
Footprint
Passive · no contact with target
Account
Not needed
API
No public API
Last verified
Nov 27, 2026
Summary

Python tools to analyse Office documents, OLE files and RTF for VBA and Excel 4 macros, embedded objects and DDE links. It takes file. Read the cons before you build a workflow on it.

What it does

oletools is an open-source package of Python tools for analysing Microsoft OLE2 files, such as Office 97-2003 documents, MSI files and Outlook messages, as well as RTF files and newer OpenXML Office files. Tools like olevba, oleid, oleobj, rtfobj and mraptor detect, extract and analyse VBA macros, Excel 4 macros, embedded OLE objects and DDE links.

Investigators and malware analysts use it to check whether a suspicious document carries macros or embedded payloads before anyone opens it, and to extract the code for closer study. It also reads document metadata, which helps when attributing a file.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

Pros
  • +Free, open source and widely used in malware analysis
  • +Covers old and new Office formats plus RTF
  • +Works offline from the command line
  • +Usable as a Python library
Cons
  • −Focused on Microsoft formats only
  • −Output assumes some malware analysis knowledge
  • −Releases come slowly

When to use it

  1. 01Use it when you receive a suspicious Office document and want to see whether it contains macros.
  2. 02Use it when you need to extract embedded objects or code from a document for analysis.
Key featuresVBA macro extraction and analysis (olevba)Excel 4 (XLM) macro detectionEmbedded OLE object extractionRTF object analysisRisk indicators per file (oleid)File type identificationDocument metadata reading

Next steps from this result

Suggested from the inputs oletools takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends
pip
pip install -U oletools
olevba suspicious.docm

Technical details

Listing verified by an editor on Nov 27, 2026
API
No public API
Account
Not needed
Footprint
Passive · no contact with target
Pricing
Free, open source
Platforms
Python CLI
Repository
decalage2/oletools 3,461 stars
Language
Python
Last commit
Jan 2026
Listed
Nov 27

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used oletools? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to oletools

Listed tools that take the same inputs, closest match first.

oletoolsOpen source · verified yesterday
Visit github.com (opens in new tab)