Skip to main content

MaldocTrace

MaldocTrace is a defensive analyzer for malicious documents. It extracts and emulates VBA, Excel 4.0 (XLM) and VBScript in a fully simulated environment and reports what the document would do: the commands it would run, the payloads it would decode and the files it would drop. It never executes the sample.

It covers Office (OLE, OOXML, RTF, SYLK, Word XML, MHT), OneNote sections, emails (.eml, .msg), ZIP/7z archives and ISO images, and follows multi-stage droppers (OneNote → VBScript → dropped script → rundll32) in one run. Every report starts with a verdict, a 0–100 risk score and the reasons behind it.

MaldocTrace following an IcedID OneNote dropper to the final rundll32 command

Install

pip install maldoctrace        # or: pipx install maldoctrace / uv tool install maldoctrace

The wheel contains the static MaldocTrace binary for your platform (Windows, Linux and macOS, x64 and ARM64) and installs it as the maldoctrace command. The binary is the one published on the GitHub release of the same version.

Command line

maldoctrace analyze sample.docm
maldoctrace analyze sample.one --format json
maldoctrace analyze ./samples --recursive --format jsonl

Python

import maldoctrace

report = maldoctrace.analyze("sample.one")          # JSON report as a dict
print(report["verdict"], report["risk_score"])
for cmd in report.get("commands") or []:
    print(cmd["command_line"])

report = maldoctrace.analyze_bytes(data, name="invoice.xls", passwords=["infected"])

Documentation, the full option list and the JSON schema are in the project README.

MaldocTrace is released under the Apache License 2.0.

Metadata

Release files for maldoctrace 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for maldoctrace 0.6.0
File Actions
maldoctrace-0.6.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for maldoctrace-0.6.0-py3-none-win_arm64.whl
maldoctrace-0.6.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for maldoctrace-0.6.0-py3-none-win_amd64.whl
maldoctrace-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details for maldoctrace-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
maldoctrace-0.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 Details for maldoctrace-0.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
maldoctrace-0.6.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for maldoctrace-0.6.0-py3-none-macosx_11_0_x86_64.whl
maldoctrace-0.6.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for maldoctrace-0.6.0-py3-none-macosx_11_0_arm64.whl

Total release size: 19.4 MB

Release files / maldoctrace-0.6.0-py3-none-win_arm64.whl

Download URL maldoctrace-0.6.0-py3-none-win_arm64.whl
Size 3.1 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
561c0deece8957762a9075c448f338695c5638f11df50a218b73343533682dba
BLAKE2b-256 checksum
How to use checksums
4249739dc38ba3f65995b670e867c2b2bb08de2dcaa410e3a58d4c38c084411e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / maldoctrace-0.6.0-py3-none-win_amd64.whl

Download URL maldoctrace-0.6.0-py3-none-win_amd64.whl
Size 3.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b697ea390e8da7d93214d0d154d707abba3ff2dd583341f0175741c6411d293d
BLAKE2b-256 checksum
How to use checksums
06d5c4ca4b374781d34e9e3eee2ac5db9119ed3251f3584d5eb1d0fb88596f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / maldoctrace-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL maldoctrace-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 3.3 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bd5f3ca6687c46a4d90bf6b131d06ea0cb29e142ea3335317c6a0f74330e08f6
BLAKE2b-256 checksum
How to use checksums
f5c43916ced02449e82158b1cc1cdf46631d4a25d73d777bccc0bd98a7b28002
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / maldoctrace-0.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL maldoctrace-0.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 3.1 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fd54cca43784973c6f2dfaa1fe916b6ec4f8bb39d67b66c1904defde443f3a73
BLAKE2b-256 checksum
How to use checksums
5477d1792a80b12df2923754d85a9d2bdda542c020810643ec58b52478261721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / maldoctrace-0.6.0-py3-none-macosx_11_0_x86_64.whl

Download URL maldoctrace-0.6.0-py3-none-macosx_11_0_x86_64.whl
Size 3.4 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
44ac74d353afa55fc09f91541ba520d286e6df76e1921147e804e2d90a859550
BLAKE2b-256 checksum
How to use checksums
457a59b40d553b33267f61256c46ed562c6803ecbfa0ed42cd702ffded350b39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / maldoctrace-0.6.0-py3-none-macosx_11_0_arm64.whl

Download URL maldoctrace-0.6.0-py3-none-macosx_11_0_arm64.whl
Size 3.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ca6f3160b3d98aa30741fe51ab3a80ff4c73f94d8d3e18852de4d10091fd73d9
BLAKE2b-256 checksum
How to use checksums
79592f812696561eb8e3df449277e299902643f96f6f1cff2d21913231238fa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for maldoctrace 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for maldoctrace-0.6.0-py3-none-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page