Giter VIP home page Giter VIP logo

verify-dkim's Introduction

DKIM verification script

Reporters often need to verify the authenticity of leaked emails, and one increasingly popular technique is to check those emails' DKIM signatures, as ProPublica documented so well in 2017.

The ProPublica post explains how to do this for individual messages, but for a recent story, The Associated Press' investigative team needed to verify many emails contained in an mbox archive.

Usage

$ ./verify_dkim.sh MBOX_FILE

This script will create an output directory called messages-organized, with the following subdirectories:

  • messages-organized/unsigned will contain messages that had no DKIM signature at all.

  • messages-organized/signed/unverified will contain messages that had DKIM signatures, but for some reason those signatures could not be verified. (This does not necessarily imply forgery; configurations can change over time, and some emails servers just don't behave particularly well.)

  • messages-organized/signed/verified will contain messages that had DKIM signatures that were verified as authentic.

The script also will produce two other outputs:

  • messages-split will be a directory containing all of the original emails, not organized in any particular way.

  • messages-organized.zip will be a zipped archive of the messages-organized directory, suitable for sending via any appropriate medium.

Other potential formats

  • If you have just one message to verify, follow the instructions in ProPublica's 2017 post.

  • If you have a directory of many individual messages, consider editing this script to skip the git mailsplit call in the INITIALIZATION section.

Dependencies

verify-dkim's People

Contributors

myersjustinc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

verify-dkim's Issues

Feature Request: DKIM keys from hdd

Since admins that value the privacy of their users may/should change DKIM keys on a regular bases it seems reasonable for journalists to make local backups of the DKIM keys used by goverment (and other important) servers to be able to verify emails that may be leaked a long time after DKIM keys have been changed.

Ideally the tool should be able to use this local backups from hdd as a source to verify signatures against.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.