enigma

command module
v0.0.0-...-ec28fd7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 1 Imported by: 0

README

Enigma

Purpose

eDiscovery tool for bulk decryption of emails in a batch of PST files, written in Go.

This project is a successor to batch-decipher-pst.

This is a containerized command line tool.

Dependencies

This depends on readpst from the libpst tools. The version used is compiled from the git repo source, as there are bug fixes that haven't made it into a release yet. See below for how to build readpst. I wanted to use go-pst but there is a an issue with .msg emails that are attached to other emails. Also, go-pst is not thread-safe. go-pst is used for the getheaders command, and readpst is not required for that command.

Build

First, build readpst.

cd readpst
buildah bud -t readpst .

Next, build the production container.

cd ..
buildah bud -t enigma .

Prereq

This is not a cracking tool. You will need a legitimate way of obtaining certs and keys from escrow. Two helper commands are provided to help you identify encrypted emails and custodian cert info.

getsigs : Search the sent items folder for signed emails and get certificate metadata showing dates, certificate authority, etc.

getheaders : Collect metadata from email headers and identify if the email is encrypted. NOTE: This doesn't recurse into .msg attachments it looks 1 level deep.

Run

If you have sufficient RAM available, mount a tmpfs to the path /mnt/ramdisk/unpack. This path is used by readpst as a temp workspace for unpacking PST files into text format for futher processing. NOTE: This is only available on a Linux host.

Change into your directory with your input files and mount to the path /cases.

podman run -it --rm --tmpfs /mnt/ramdisk/unpack:U -v $(pwd):/cases:Z --userns=keep-id enigma:latest /bin/bash

Enigma uses the Cobra Command framework and has help switches --help. It also uses a YAML config file loaded by Viper. An example config with explanations is provided as config.example.yaml.

Simply run enigma without any sub-commands to get a help overview of how to use the tool. Help is available for every command, ex. enigma decipher --help.

Documentation

Overview

Copyright © 2024 McFlip <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
cmd
decipher
deciphers byteslice using a cert/key from the given keyring
deciphers byteslice using a cert/key from the given keyring
getSigs
Parse certificate info from signed emails.
Parse certificate info from signed emails.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL