Repository navigation
Releases
1.3.0
Changes since v1.2.0.
Known caveats
- The live end-to-end proof that a deployed
strixdloads published rule
marker artifacts has not been performed for this release; the marker path is
covered by CI and the release image test only. - A full independent Opus-class code audit of this release was not performed.
Fixed
MAILSTRIX_MAX_CONCURRENT=autoand the over-subscription warning now honor CPU
limits of nested/systemd cgroups (resolved from/proc/self/cgroupand
mountinfo, most restrictive level wins), not only the fixed container paths.
Changed (breaking)
strixd serverefuses wildcard ICAP and clamd TCP binds unless
MAILSTRIX_ALLOW_WILDCARD_BIND=1is set (#496). See "Upgrading from v1.2.0"
in the README.- Rule-bundle URLs must be
https; plainhttpneeds an explicit opt-in and
an https-to-http redirect is always refused (#441, #482). See "Upgrading
from v1.2.0" in the README.
Changed
MAILSTRIX_MAX_CONCURRENT=autonow respects the container's cgroup CPU limit
(v2cpu.max, v1cfs_quota_us/cfs_period_us), rounded up, minimum 1,
instead of always using the host CPU count.
Security
Severity wording follows the pull request. "Hardening" means no working exploit
was demonstrated. Entries marked "v1.2.0" were verified against the v1.2.0 tag.
- Release binaries are hardened ELF executables. strixd and yarac are PIE
with full RELRO, stack protector and_FORTIFY_SOURCE=2. strix-scan and
strix-milter stay static non-PIE (portable to any libc) and are guarded for
static linking and a non-executable stack.scripts/elf-hardening.pyfails
the binary build on a regression. The rebuilt libyara changes its archive
hash, so strixd skips marker trees built against an earlier libyara and
scans with the full main ruleset (same detection, slower); rebuild marker
trees against this release to keep marker-scan speed. Hardening; affected:
v1.2.0. - ICAP request parsing is bounded (#343, #345). In v1.2.0 the request line,
headers and trailer lines had no length limit and the connection count was
uncapped, so an unauthenticated client could exhaust memory with one endless
line or many slow connections. Affected: v1.2.0. - ICAP bodies are read only after an admission slot is held (#535, #539).
Before, waiting connections buffered full bodies, so memory could exceed the
MaxInflightlimit under load. Affected: v1.2.0. - ICAP framing is validated strictly (#571, #574). Duplicate or conflicting
Encapsulatedfields and malformed chunk extensions could be read as a
clean verdict, and a crafted chunk size could overflow the body-size check
(int64(len(out))+size) and bypassMaxBody. Affected: v1.2.0. - A scan without a complete verdict is no longer reported as clean (#399,
#566). An extractor panic, a malformed scanner reply or a signalled
SpamAssassin child could look like a clean scan, so a crafted file could
pass. v1.2.0 has no incomplete-scan signal. Affected: v1.2.0. - Decode de-duplication confirms 64-bit hash hits with a byte compare (#440).
v1.2.0 skipped a blob that only shared an FNV-1a hash with an earlier one,
so a decoy could hide a payload from YARA. Shown only with a
forced-collision test seam, so treat it as hardening. Affected: v1.2.0. - Rule updates are authenticated (#441, #482, #442, #489, #517, #520, #521).
The updater now requires https, refuses downgrades, requires an ed25519
signature on the rules manifest from a key compiled into the binary (with a
pinned successor key), and refuses empty or sharply smaller bundles. v1.2.0
trusted whoever served the manifest over HTTPS, which controls the YARA
bytecode strixd loads. Affected: v1.2.0. - The rolling
rules-currentpublisher is serialized with a lease and
authenticates its previous state and version records (#592). Overlapping
hosts could allocate the same version, and an unauthenticated previous
manifest was trusted. This concerns the publishing pipeline, not the
runtime. - 7z LZMA and LZMA2 dictionary sizes are capped at 8 MiB and 64 MiB (#491,
#499). A hostile archive could request a very large dictionary. v1.2.0
applied no such cap. Hardening. Affected: v1.2.0. - Scan cache keys length-prefix per-request password candidates (#463). In
v1.2.0 the key joined them with a NUL byte, so different lists could share a
key. Reachable only by directScanMeta.PWCandidatescallers. Hardening.
Affected: v1.2.0. - Public deployment examples no longer run unauthenticated (#578). The README
usedMAILSTRIX_TOKEN=changemewith a publicly published port, which
exposed CPU-heavy scans to anyone who could reach it. Examples now use a
file-backed token and bind to127.0.0.1. Affected: v1.2.0 documentation. - The profiling helper sends its bearer token on standard input (#566). In
v1.2.0 it was in thecurlargument list and visible to local users through
the process table (docker/pprof-capture.sh). Affected: v1.2.0. - Extraction marker provenance and per-format work budgets for OneNote, MSG,
MSI, OLEPackage, PPT and TNEF are enforced (#591). Untrusted content can no
longer supply extractor-only markers. Hardening. - Go toolchain is pinned to 1.26.10 for the x509 certificate-validation fix
GO-2026-6809 (#561), after an earlier bump for stdlib findings and a
golang.org/x/netHTTP/2 HPACK race, GO-2026-6617 (#510). v1.2.0 does not
depend ongolang.org/x/net; its toolchain exposure was not assessed. - RAR members stored as plaintext after an encrypted member are scanned
(#594). Once a password from the request cracked the archive, the re-walk
skipped every plaintext member, but the first walk had only scanned those
before the first encrypted one. A decoy encrypted member followed by a
plaintext payload returned a clean verdict. Major. Affected: v1.2.0. - A refused solid RAR archive or member makes the scan incomplete instead of
clean (#594). Solid RAR is still not decoded; the refusal now records the
rar-solidcap. Major. The solid refusal was added after v1.2.0, so this
gap is in no release; v1.2.0's solid handling was not assessed. golang.org/x/netis v0.62.0 for twox/net/htmladvisories (#593):
quadratic text-node coalescing, GO-2026-6860, and an incomplete ancestor
namespace check when rendering raw text, GO-2026-6866. The HTML extractor
parses untrusted mail HTML with this package since #500. v1.2.0 does not
depend ongolang.org/x/net, so no released version is affected.- MIME header probing is bounded and an unfinished header block is marked
incomplete instead of clean (#585). The MIME walker arrived after v1.2.0
(#404), so no released version is affected.
Nightly
v1.2.0
What's Changed
- feat(archive-pw): PR-A — opt-in plumbing + candidate sourcing (no decrypt yet) by @eilandert in #337
- feat(archive-pw): PR-B — bounded password-protected archive decrypt + child scan by @eilandert in #338
- feat(strix-scan): -json/-label structured family verdict by @eilandert in #339
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- rules: yara-forge full+filter + CanonStager rule (closes clamav 35-gap) by @eilandert in #322
- harden(oleparse): bounded prefix-read stream API for adversarial CFB by @eilandert in #323
- refactor(urlcand): unified URL normalization + slug-migration guard by @eilandert in #324
- feat(feeds): remove abuse.ch Feodo Tracker support by @eilandert in #325
- ci: run on PR only, not on push to main by @eilandert in #326
- perf(ci): mount Go module + build caches in docker build by @eilandert in #327
- Harden feeds and .xlsb extraction by @eilandert in #328
- harden(oleparse): cumulative decompressed cap on legacy ExtractMacros APIs by @eilandert in #329
- feat(server): surface mailstrix.com home URL in startup log + /version + info by @eilandert in #330
- perf(rules): PERF-25 mail rule profile (MAILSTRIX_PROFILE=mail|full) by @eilandert in #331
- harden(release): license NOTICE, supply-chain pins, reproducible build by @eilandert in #332
- harden: audit-2026-06-30 fixes + canary/log-only scoring contract by @eilandert in #333
- fuzz: widen coverage + fix 2 DoS bugs (mbazaar zip hang, ICAP negative chunk size) by @eilandert in #334
- fix(xlm): check deadline inside the A1-resolve inner loop by @eilandert in #335
- docs(readme): fix uncategorized symbol YARA→STRIX by @eilandert in #336
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Mailstrix 1.0.0 — first stable release
Mailstrix is the owl that finds malware hiding in your mail. It takes hostile
attachments apart — unwrapping OLE2/OOXML, VBA, RTF objects, PDFs, archives and
nested carriers — until YARA detection rules can finally see the dangerous bits.
It runs out-of-process behind Rspamd (async HTTP), SpamAssassin, an ICAP server,
Dovecot Sieve, or standalone, so attachment analysis never blocks the mail worker.
This is the first stable, versioned release. Detection is parity-or-lead against the
common open Office-malware tooling, the extractor is fuzz- and budget-hardened, and
the daemon fails open on every error path so a scanner hiccup never loses mail.
Released from d59e77d. The container ships ~10,000 curated public YARA rules plus
local document-behaviour heuristics, refreshed daily.
Links
- Source: https://github.com/eilandert/mailstrix
- Container: https://hub.docker.com/r/eilandert/mailstrix
- Project home: https://mailstrix.com
- How it works (deep-dive article): https://deb.myguard.nl/articles/yara-malware-scanning-mailstrix/
What's in 1.0.0 — features
Attachment extraction & unwrapping
- OLE2 / OOXML opening with VBA stream decompression; scans recovered macro source as a dedicated buffer with the
VBAYARA external set - VBA stomping detection (p-code present vs implausibly small source)
- VBA string deobfuscation:
StrReverse,Environ, variable-referencedReplace(), Dridex-style encoding, multilayer decode worklist - Document-properties string extraction (docprops) and structured OLE SummaryInformation metadata markers
- Bounded XLM (Excel 4.0) interpreter — hidden/"very hidden" macrosheets in OOXML, BIFF8
.xls, BIFF12.xlsb, and SYLK.slk; ptg formula folding; SHRFMLA shared-formula resolution; CONTINUE-split FORMULA array reassembly; per-funcid arity table - OOXML DDE/DDEAUTO field detection, remote-template-injection, CVE-2021-40444 (
mhtml:/!x-usc:) flagging; CSV / Excel-2003-XML formula injection - RTF
\objdataembedded-object carve, in-group hex reassembly,\fldinstUTF-16/\uN/\'HHDDE, evasion hardening - PDF Flate inflation + dangerous-action flagging (OpenAction/Launch/embedded files/JBIG2)
- PE/ELF carving + structural analysis in non-PE containers; base64-PE carving for pad-prefixed MZ headers
- HTML smuggling triage (incl. nested parts), scripted-SVG detection, SVG
<image href>data: URI carving, plain-HTML data: URI carving - TNEF (winmail.dat) extraction; ISO9660 and UDF disc-image member extraction; batch-dropper (echo-redirect) reconstruction; CAB (MSCF) MSZIP/store carving
- Markers: XLL add-in, polyglot PE/ZIP, password-protected archive, OLE2-extra-data, legacy-encryption (Word 97-2003 FibBase, PPT EncryptedSummary), encryption-type + digital-signature classification, anomalous CFB timestamps, orphaned CFB streams
Detection rules
- ~10,000 curated public rules (YARAForge, sigbase, AnyRun, Didier, BartBlaze, InQuest, CAPEv2, YARAify) plus in-repo high-signal local rules, refreshed daily
- Behavioral-score tier (olevba weight-of-evidence): aggregates co-occurring low-confidence structural markers into one verdict so a novel maldoc tripping several weak signals still scores, with a build-time olevba-indicator parity contract
- Shell.Explorer CLSID (CVE-2026-21509) and Equation Editor (CVE-2017-11882 / CVE-2018-0802) exploit detection
- Maldoc auto-exec + write + execute correlation rule; mraptor-style autorun/persistence and ext-func extensions
- Dropper families: PowerShell control-flow-flatten, despaced Assembly.Load, random-name temp-dropper; VBS split-charcode / array-scatter / sibling-EXE launcher; JS XOR-array ActiveX, string-concat charcode; BAT droppers
- GetEIP shellcode prologue detection, VSTO/ClickOnce remote-codebase add-ins, webpack-bundled Node.js RAT, AnyDesk RMM-abuse + .NET LOLBin loaders
- Renamed-container flagging (EXT-MISMATCH / MIME_BAD_EXTENSION), PURE-marker channel separation
Threat-intel feeds
- abuse.ch URLhaus (URL checks, incl. defanged forms) and MalwareBazaar (SHA-256) lookups; ThreatFox IOC + Feodo Tracker IP blocklist — all cached locally and fail-open
Integrations
- Rspamd Lua plugin with verdict explainability (score tiers + rule descriptions) and per-message effort hinting
- SpamAssassin plugin (central-scanner mode + opt-in per-MIME-part scanning)
- ICAP server mode (RFC 3507 REQMOD/RESPMOD)
strix-scanCLI for Dovecot Sieve / LDA delivery-time scanning; localscan,check-rules,extractsubcommands
Effort tiers & performance
- Effort-tier contract: auto level from admission-gate pressure and sender signals, scaling scan timeout, XLM fold caps, nested-PDF caps and decode worklist per request
- Oversized-buffer cost pre-gate (BIGFILE) scanning large buffers against the small local ruleset to stay bounded
- SHA-256 verdict cache with request coalescing; per-channel scan counters and LRU metrics
Operations
- Distroless nonroot image; rules reload keeps the previous compiled bundle on a bad edit; canary mode + file-based denylist with SIGHUP reload
- OOM-headroom estimation, CPU over-subscription warnings, clean feed-goroutine shutdown
.debpackages (strixd + strix-scan, amd64/arm64), Kubernetes Helm chart, Grafana dashboard + Prometheus alert rules- Rule-source provenance surfaced in
/version
Assets
Per-arch binaries (strixd-linux-{amd64,arm64}, strix-scan-linux-{amd64,arm64}),
.deb packages (amd64 + arm64), and SHA256SUMS. The runtime container is on
Docker Hub.
Compiled rules (rolling)
Rolling compiled YARA bundle for yarad --fetch-rules. Assets are clobbered on each rule regeneration; see compiled.yac.manifest.json for the current version.