Skip to main content

Multidecoder

Latest Stable Release

Multidecoder is a python library and command line tool for extracting indicators of compromise (IOCs) from a file. Multidecoder preserves the context of where and how an IOC is found to allow automated detection of patterns of obfuscation. Multidecoder is currently in alpha, and may change in ways that breaks backwards compatibility as developement continues.

Indicators of compromise extracted by Multidecoder:

  • network IOCS: urls, domains, emails, ip addressses
  • executable filenames
  • embedded PowerShell
  • embedded PE files
  • a customizable set of keywords

Deobfuscations and decodings supported:

  • base64 encoding
  • hexadecimal encoding
  • string concatenation
  • powershell escape characters

Installing

Multidecoder can be installed from pypi using pip:

pip install -U multidecoder

Alternatly, it can also be installed from the repository:

pip install -U https://github.com/CybercentreCanada/Multidecoder/archive/main.zip

To test the latest development version, install from the dev branch:

pip install -U https://github.com/CybercenterCanada/Multidecoder/archive/dev.zip

Command Line

After being installed Multidecoder can be run on a file from the command-line

> multidecoder file

which will output a list of indicators found. Indicators are printed one per line, with a string representation of the context of the indicator followed by the indicator.

The raw json result can be output with the --json flag

> multidecoder --json file

if no filename is given multidecoder takes its standard input as the file to be scanned.

Python library

Multidecoder can be used as a python library through the Multidecoder class, which can scan data to give a dictionary tree similar to the command-line json output.

from multidecoder.multidecoder import Multidecoder

md = Multidecoder()
context_tree = md.scan(data)

Metadata

Release files for multidecoder 1.2.1

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

Source distribution (sdist)

Source distribution for multidecoder 1.2.1
File Size Uploaded Provenance Actions
multidecoder-1.2.1.tar.gz 87.7 kB Without provenance Details for multidecoder-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multidecoder 1.2.1
File Interpreter ABI Platform Actions
multidecoder-1.2.1-py3-none-any.whl Python 3 none any Details for multidecoder-1.2.1-py3-none-any.whl

Total release size: 192.4 kB

Release files / multidecoder-1.2.1.tar.gz

Download URL multidecoder-1.2.1.tar.gz
Size 87.7 kB
Tags Source
SHA-256 checksum
How to use checksums
31d1bcc3ea1c38a29894fc1cca5ad4962d7f2ae1d979f240ea83c3e0e21ae8ee
BLAKE2b-256 checksum
How to use checksums
cdcfe55f485fdd81ea0e662b7bb3fc8215ece332c58ba93248342824f10a417b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / multidecoder-1.2.1-py3-none-any.whl

Download URL multidecoder-1.2.1-py3-none-any.whl
Size 104.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45d5509052b93bfb8af3f8e28ab4653d737eb15d0cf89084c44f734c8464c3bc
BLAKE2b-256 checksum
How to use checksums
8841f098a631920da3cda7a71edd3b85bc12b7d746dfb94056d98684e616c142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Security for multidecoder 1.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

1.2.1 This release

2 release files No 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