Email investigation playbook
Trace a suspicious message and find where an address is registered, without alerting its owner
beginner
Parses raw email headers into senders, relay hops, IPs and SPF/DKIM/DMARC results
Community-packaged from github.com/osintverse-community/email-header-parser: the registry's community pins the upstream release; the tool is its authors' work. Maintain that project? Claim this package.
Run
Through ot mcp, an agent calls run_tool with this; ot asks you before anything that goes online or touches a target. Set it up: ot mcp install claude (or cursor, vscode, codex, gemini).
{"tool":"osintverse-community/email-header-parser","target":"Received: from mail.example.org (mail.example.org [93.184.216.34]) by mx.example.net; Mon, 6 Jan 2025 10:00:05 +0000\nFrom: Example <sender@example.org>\nAuthentication-Results: mx.example.net; spf=pass; dkim=pass; dmarc=pass","input_type":"string"}Or just say: "Run osintverse-community/email-header-parser on Received: from mail.example.org (mail.example.org [93.184.216.34]) by mx.example.net; Mon, 6 Jan 2025 10:00:05 +0000
From: Example <sender@example.org>
Authentication-Results: mx.example.net; spf=pass; dkim=pass; dmarc=pass with OTInstaller." The registry's read-only MCP server at api.otinstaller.com/mcp can find tools without installing anything.
ot run osintverse-community/email-header-parser --headers "Received: from mail.example.org (mail.example.org [93.184.216.34]) by mx.example.net; Mon, 6 Jan 2025 10:00:05 +0000\nFrom: Example <sender@example.org>\nAuthentication-Results: mx.example.net; spf=pass; dkim=pass; dmarc=pass" --format tableot install osintverse-community/email-header-parserDocker image in a read-only container · no network · no key · up to 1 min. The first ot run installs the tool after asking once. The example value is the registry's own test input, so this command has run. Drop --format table for JSON.
ot? Install it in one linecurl -fsSL https://get.otinstaller.com/ot | shot release for your machine from GitHub Releases.checksums.txt, and the Ed25519 signature on that file against the key built into the script.ot in /usr/local/bin or ~/.local/bin. Nothing else is written. Read the script.irm https://get.otinstaller.com/ot.ps1 | iexot release for your machine from GitHub Releases.checksums.txt, and the Ed25519 signature on that file against the key built into the script.ot in %LOCALAPPDATA%\Programs\ot, and adds it to your PATH. Nothing else is written. Read the script.sha256:58ccadc6…9af053. The same bytes on every install; ot pulls by digest, never by tag.ot checks the same identity before every install and refuses another signer.ot pulls the same digest from the mirror and checks the same signature.{
"envelope": 1,
"tool": "osintverse-community/email-header-parser@0.1.0",
"runtime": "docker",
"input": {
"headers": "Received: from mail.example.org (mail.example.org [93.184.216.34]) by mx.example.net; Mon, 6 Jan 2025 10:00:05 +0000\nFrom: Example <sender@example.org>\nAuthentication-Results: mx.example.net; spf=pass; dkim=pass; dmarc=pass"
},
"started_at": "2026-10-21T09:00:00Z",
"duration_ms": 4100,
"exit_code": 0,
"entities": [
{
"type": "email",
"value": "ada@example.com",
"confidence": "high"
},
{
"type": "domain",
"value": "example.com"
},
{
"type": "ip",
"value": "192.0.2.1"
}
],
"warnings": []
}Every tool returns this shape, shaped here from what this tool declares it finds. --format table to read it; ot extract and ot auto to continue.
Reads the headers of a suspicious email and pulls out who it claims to be from, the reply and bounce addresses, the servers it passed through with their public IPs and times, and the SPF, DKIM and DMARC verdicts. Runs offline.
ot run osintverse-community/email-header-parser --headers "$(cat headers.txt)"
| Input | Required | |
|---|---|---|
headers |
yes | The raw headers, as copied from "Show original"; \n escapes are accepted |
Copy the headers from your mail client (Gmail: ⋮ → Show original; Outlook: File → Properties). Received hops are listed oldest first; private and reserved IPs are left out. Header values can be forged by the sender, except the hops added by servers you trust (normally the last one or two).
Check the relay IPs with osintverse-community/ipwhois and the sender's domain with osintverse-community/checkdmarc.
pip install # no dependencies
python -m unittest
ot validate
Releases are built, signed and published by the otinstaller release workflow (Actions tab, with the version to release).
MIT
Trace a suspicious message and find where an address is registered, without alerting its owner
email-header-parser finds email, domain, ip. Tools that take those:
email → 10 toolsdomain → 9 toolsip → 3 toolsot auto, with a saved result