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 beta, and uses semantic versioning to indicate compatability between releases.

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

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.6.27
File Size Uploaded
multidecoder-1.6.27.tar.gz 108.5 kB Details

Built distribution (wheel)

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

Total release size: 227.4 kB

Release files / multidecoder-1.6.27.tar.gz

Download URL multidecoder-1.6.27.tar.gz
Size 108.5 kB
Tags Source
SHA-256 checksum
How to use checksums
83e17012fec9d239a950ac6a1955cab73a63c4195b0a13ba99b35a2d61f86b41
BLAKE2b-256 checksum
How to use checksums
dac774bba80828c6921571ac4c3dea7978e6e2e6da87f3bcadfd4fd1f8908b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

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

Download URL multidecoder-1.6.27-py3-none-any.whl
Size 118.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3fbed2d2fed54458c52b9cc79c2a6641f04b2fa722d9cf68f635e1780ff253c
BLAKE2b-256 checksum
How to use checksums
27389d0cbe6876c1856c48680130c1bbc1b3cec47a3ea068a341f942cb722676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

1.6.27 This release

2 release files

1.6.26

2 release files

1.6.25

2 release files

1.6.24

2 release files

1.6.23

2 release files

1.6.20

2 release files

1.6.19

2 release files

1.6.18

2 release files

1.6.17

2 release files

1.6.16

2 release files

1.6.15

2 release files

1.6.13

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.0.0

2 release files

0.1.0

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

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