# oletools

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

Source: https://osinttools.io/tools/oletools/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** File
- **Category:** Data analysis and case notes
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/decalage2/oletools
- **Docs:** https://github.com/decalage2/oletools/wiki
- **GitHub:** decalage2/oletools, 3,461 stars · Python · last commit 2026-01-26
- **Listed:** Nov 27
- **Last verified by an editor:** Nov 27, 2026

## 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.

## Features

- VBA macro extraction and analysis (olevba)
- Excel 4 (XLM) macro detection
- Embedded OLE object extraction
- RTF object analysis
- Risk indicators per file (oleid)
- File type identification
- Document metadata reading

## 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

- Use it when you receive a suspicious Office document and want to see whether it contains macros.
- Use it when you need to extract embedded objects or code from a document for analysis.

## Quick start

pip:

```
pip install -U oletools
olevba suspicious.docm
```

## Alternatives

- [AI Voice Detector](https://osinttools.io/tools/ai-voice-detector/): Web detector that scores whether speech in an audio clip is AI-generated, segment by segment, with a free tier and an API. (Freemium · File · passive)
- [ALEAPP](https://osinttools.io/tools/aleapp/): Open-source parser that turns an Android extraction into HTML, TSV, timeline and KML reports of messages, app data and logs. (Open source · File · passive · 1,055 GitHub stars)
- [APKLeaks](https://osinttools.io/tools/apkleaks/): Python CLI that decompiles an Android APK with jadx and scans it for URLs, endpoints and hardcoded secrets. (Open source · File · passive · 6,404 GitHub stars)
- [Apache Tika](https://osinttools.io/tools/apache-tika/): Apache toolkit that detects file types and extracts text and metadata from over a thousand formats, including PDF and Office. (Open source · File · passive · 4,160 GitHub stars)
- [Apktool](https://osinttools.io/tools/apktool/): Open-source tool for decoding Android APK files into readable resources and smali code, and rebuilding them. (Open source · File · passive · 27,387 GitHub stars)
- [Autopsy](https://osinttools.io/tools/autopsy/): Open-source digital forensics platform and GUI for The Sleuth Kit, used to examine disk images, phones and other media. (Open source · File · passive · 3,468 GitHub stars)

All alternatives to oletools in one table: https://osinttools.io/tools/oletools/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
