Skip to main content

Tool to purge and remove all macro and dynamic content from an MS Office file

Project description

DocuBleach

DocuBleach

A command-line tool designed to detect and purge macros from commonly used office document formats (including MS Office Files, PDFs, etc.).

Super-Linter Unit Tests

Supported formats

Word

  • .docx: Word Document
  • .doc: Word Document (1997 - 2007)
  • .docm: Word Document with Macros
  • .dotx: Word Template
  • .dotm: Word Template with Macros

PowerPoint

  • .pptx: PowerPoint Presentation
  • .pptm: PowerPoint Presentation with Macros
  • .potx: PowerPoint Template
  • .potm: PowerPoint Template with Macros
  • .ppsx: PowerPoint Show
  • .ppsm: PowerPoint Show with Macros

Excel

  • .xlsx: Excel Spreadsheet
  • .xls: Excel Spreadsheet (1997 - 2007)
  • .xlsm: Excel Spreadsheet with Macros
  • .xltx: Excel Template
  • .xltm: Excel Template with Macros

Planned formats

  • .ppt: PowerPoint Presentation (1997 - 2007)
  • .pdf: Portable Document File

Problem

VBA and OLE content in MS Office files can, and have sometimes been made to, act as vehicles for malware delivery.

Microsoft has previously attempted to protect users from macros by disabling them by default. However, anybody is able to enable macros in an MS Office file before sending them on to a potential victim.

This Python tool aims to detect and remove any of this potentially malicious content from given files.

Solution

A command-line program written in modern Python (3.10+) that is capable of locating and removing macros from a variety of files.

It should support all the common Office Open XML formats, 'legacy' MS binary files, and PDFs.

Usage

This package has now been published to PyPi. Installation and usage are detailed below:

  1. pip install docubleach
  2. docubleach <PATH_TO_FILE>

The optional '-c' flag may be appended to the final command to enable notification if any macros or hyperlinks are detected.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docubleach-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

docubleach-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file docubleach-0.1.2.tar.gz.

File metadata

  • Download URL: docubleach-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/11

File hashes

Hashes for docubleach-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0c58832953227cd4abcaf5ca449ff4370c7b08edc740f995cca95be5722bafdd
MD5 631f0261f052c1b13f767998291b4708
BLAKE2b-256 f385e5f9eac98a3d919941fb8ce455c31d1e57f4356335c971953f0780986240

See more details on using hashes here.

File details

Details for the file docubleach-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: docubleach-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/11

File hashes

Hashes for docubleach-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab5a228f9aed39da690af562b5b4f5b61bb7750a855487f4b9a35f2fa096711
MD5 882df7d29d5ed2e1d291f8e5e67f2686
BLAKE2b-256 b55c5b963076ff5ca008ccef7167866f14e108f9237a87a9c583160a24a0077e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page