technical deep dive · march 2026
sample intake · classification · generation · distribution · rollout
architecture · 9-stage pipeline
signature formats · 7 output types
taxonomy · structured naming
3-tier vendor normalization: explicit map → wildcard → inference
quality gates · zero false positives
Field structure verification, hex character validation, tag prefix consistency, line count checks
clamscan --compile against staging database. Cross-version: ClamAV 0.103 through 1.4.x
yara -c rule compilation check. Validates syntax, string definitions, and condition logic
Scan 142K benign files (WordPress, Joomla, Drupal core). Zero hits required to pass
part two
multi-engine detection · real-time monitoring · 4-channel alerting · SIEM audit logging
lmd 2.x · performance
43x improvement from batch Aho-Corasick workers, parallel xargs -P, single-pass awk pipelines, and fused hash walks.
lmd 2.x · benchmark · sigforge custom corpus
sf benchmark run --scanners clamav,clamdav,lmd --corpus custom --parallel 1 · 6,002 files · Docker isolation
maldet.sigs.ver against CDN (every 6h via cron)
maldet-sigpack.tgz + SHA-256 sidecar verification
/usr/local/maldetect/sigs/ (preserves custom sigs)
custom.md5.dat, custom.hex.dat, custom.sha256.datcustom.csig.dat — compound boolean logiccustom.yara + custom.yara.d/ — per-rule filessig_import_*_url — fleet-wide pushignore_sigs — exclude signature namesignore_paths — exclude file pathsignore_file_ext — exclude extensionsignore_inotify — exclude from monitoringAll custom files preserved across signature updates.
maldet -a /path — full directory scanmaldet -r /path 7 — files modified in last N daysmaldet -f filelist — scan from file list-i, -x)-co scan_hexdepth=1048576-b for non-blocking executionmaldet -m users — watch all user homedirsmaldet -m /path,/path2 — watch specific pathspublic_html, public_ftp)cron.daily — automatic web directory scancron.d/maldet-sigup — signature updatesscan_days)lmd 2.x · alert pipeline
alert_lib.sh v1.0.5 — channel registry · template engine · MIME builder · curl-based delivery · consumed by both LMD and BFD
lmd 2.x · alert reports
Digest mode: periodic summaries for inotify monitoring · customizable templates in alert/custom.d/
lmd 2.x · siem configuration
ELOG_CEF_VENDOR
ELOG_CEF_PRODUCT
ELOG_CEF_VERSION
ELOG_CEF_FILE
ELOG_SYSLOG_UDP_HOST
ELOG_SYSLOG_UDP_PORT
ELOG_SYSLOG_UDP_FACILITY
ELOG_SYSLOG_UDP_FORMAT (5424/3164)
ELOG_SYSLOG_UDP_PAYLOAD (classic/json/cef)
ELOG_GELF_HOST
ELOG_GELF_PORT
ELOG_GELF_TRANSPORT (udp/http)
ELOG_GELF_FILE (debug capture)
ELOG_ELK_URL
ELOG_ELK_INDEX
ELOG_ELK_FILE (debug capture)
ELOG_AUDIT_FILE
— always JSONL, always on, tamper-evident
Log rotation built-in · max-lines truncation · logrotate.d integration · elog_lib.sh v1.0.4
Session header
#LMD:v1 | scanid | hostname | scan_start | scan_end | tot_files | tot_hits | engine | ...
Hit record
sig_name | filepath | quarpath | hit_type | hit_label | hash | size | owner | ...
Hit types:
MD5 ·
SHA256 ·
HEX ·
YARA ·
CAV ·
CSIG ·
SA
rfxn.com · github.com/rfxn · proj@rfxn.com