Repository navigation
Meioc 2.2.0 consolidates the development since 1.4 into a new stable release for SOC and threat-intelligence email analysis.
Highlights
- Native Outlook MSG support alongside EML, using a shared analysis pipeline.
- Compact JSON output by default;
--verboseprovides the full diagnostic report. - Independent SPF, DKIM, and DMARC evaluation with live DNS, kept separate from receiver-reported results.
- RFC 9989 DMARC policy evaluation: bounded DNS tree walks, per-analysis caching, identifier alignment, inherited subdomain policies, PSD boundaries, and test-mode policy handling.
- SPF reports identify whether MAIL FROM or HELO was checked and show the checked domain.
- Improved SMTP session reconstruction, including MXFilter SPF comments, ambiguous-envelope checks, and authenticated submission detection.
- Authenticated submission followed only by local delivery is marked
not_availablefor SPF instead of evaluating the submission client as the outbound relay. - DKIM verification preserves original EML bytes. Reconstructed MSG signatures are marked
not_verifiablewhen original MIME bytes are unavailable. - Improved Received parsing, IPv4/IPv6 extraction, DNS response validation, input-size bounds, URL handling, and attachment hashing.
- Installable Python package and
meioccommand. - Use dnspython rather than Py3DNS to avoid DNS module collisions on case-insensitive filesystems.
Migration from 1.4
- Python 3.10 or newer is required.
- JSON schema version 2 is not backward compatible with 1.4. Authentication results use explicit status strings rather than a single boolean; recipient and indicator collections use arrays.
- DNS verification is enabled by default. Use
--offline-authfor header-only evidence and signature-presence analysis. The former opt-in--spfand--dkimswitches are replaced by this model. - Use
--verbosewhen full relay clauses, authentication identities, DNS diagnostics, and receiver-reported results are needed. - Upgrade in a fresh virtual environment if the previous installation used Py3DNS.
Installation
Download the wheel attached to this release and install it in a virtual environment:
python3 -m venv venv
source venv/bin/activate
python3 -m pip install meioc-2.2.0-py3-none-any.whl
meioc suspicious.eml
meioc suspicious.msg --verboseAlternatively, check out tag 2.2.0 and run python3 -m pip install ..
Validation and interpretation
- 85 automated tests passed, including optional local EML/MSG corpus checks.
- The suite passed on Python 3.11 and on a fresh Python 3.10 wheel installation.
- Wheel and source archive contents are checked to exclude real email samples.
- DNS results reflect current records; historical receiver results may legitimately differ.
- SPF/DMARC reconstruction is scoped to the available SMTP session evidence. Incomplete or ambiguous evidence remains unavailable.
- Authentication success is not a spam or phishing verdict. Meioc does not deliver mail, generate DMARC reports, open extracted links, or execute attachments.
Thanks to @marco-acorte for the packaging contribution in #17 and to contributors who helped test email formats and edge cases.
Full comparison: 1.4...2.2.0