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 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.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

docubleach-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docubleach-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 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.1.tar.gz
Algorithm Hash digest
SHA256 f5599fc07de561231376321b2ffebe329ee272552cc72ea31f6fbfec3a149416
MD5 7567aee9540e81365d5901e7c93219ca
BLAKE2b-256 51e590dcc7866ac00e132785e3f53bab3fe943989e9cfdc8f08d7980990de847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docubleach-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8df8cf17a3716de86f3e6bdd6adcf38a4f5b892ed981e76c617abdaf67f765d
MD5 b7415d39a8ab9244b60a0ca1abc81a04
BLAKE2b-256 7e7f1ca8f9b2636aab11ec0d36b7b3499232c878cdae0b36811110e32f7a4aab

See more details on using hashes here.

Supported by

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