A fast, highly extensible, and event driven SMTP server
This report summarizes scanner evidence for haraka/Haraka, a JavaScript project with 5,614 GitHub stars. SynthScan examined 33,202 lines of code across 213 source files, recording 77 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 5.8 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 57 finding(s).
Which changes need focused human review? 77 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 77 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/transaction.js | 12 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/transaction.js | 51 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 35 | // ─── CRAM-MD5 helper ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 44 | // ─── Server lifecycle helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 77 | // ─── SMTP session helper ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 176 | // ─── Tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 179 | // ── get_listen_addrs ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 276 | // ── load_smtp_ini ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 292 | // ── get_smtp_server ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 747 | // ── listener binding ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 830 | // ── get_http_docroot ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 1013 | // ── SMTP sessions ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 1040 | // ── requireAuthorized: SMTPS (implicit TLS) ─────────────────────────────── | COMMENT |
| MEDIUM | test/server.js | 1070 | // ── requireAuthorized: STARTTLS ─────────────────────────────────────────── | COMMENT |
| MEDIUM | test/connection.js | 18 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/connection.js | 45 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 21 | // ─── Socket / client helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 76 | // ─── Constructor ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 116 | // ─── Line handler ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 273 | // ── Auth responses ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 275 | // ── Auth challenge responses (334) ───────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 318 | // ─── Socket connect event ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 349 | // ─── closed() — socket error / timeout / close / end ───────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 435 | // ─── load_tls_options ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 453 | // ─── send_command ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 495 | // ─── start_data ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 521 | // ─── release ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 565 | // ─── destroy ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 584 | // ─── upgrade ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 618 | // ─── is_dead_sender ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 641 | // ─── get_client export ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 660 | // ─── onCapabilitiesOutbound ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 736 | // ─── get_client_plugin ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 1038 | // ─── Full SMTP session (integration) ───────────────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 1142 | // ─── Full SMTP session with AUTH (integration) ─────────────────────────────── | COMMENT |
| MEDIUM | test/smtp_client.js | 1251 | // ─── testUpgradeIsCalledOnSTARTTLS ─────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 17 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 74 | // ─── register ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 134 | // ─── tls_options ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 170 | // ─── load_smtp_forward_ini ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 187 | // ─── get_config ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 328 | // ─── check_sender ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 407 | // ─── set_queue ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 509 | // ─── check_recipient ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 618 | // ─── auth ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 689 | // ─── forward_enabled ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 728 | // ─── queue_forward ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 930 | // ─── get_mx_next_hop ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 988 | // ─── get_mx ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/plugins/queue/smtp_forward.js | 1110 | // ─── is_outbound_enabled ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/bounce_rfc3464.js | 26 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/bounce_rfc3464.js | 78 | // ── Shared conversation building blocks ─────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/bounce_rfc3464.js | 96 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/hmail.js | 17 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/hmail.js | 21 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/bounce_net_errors.js | 27 | // ── Helpers ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/outbound/bounce_net_errors.js | 66 | // ── Tests ───────────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/plugins/prevent_credential_leaks.js | 36 | const conn = buildConnection({ authUser: 'user@example.com', authPasswd: 'secret' }) | CODE |
| LOW | test/plugins/prevent_credential_leaks.js | 46 | const conn = buildConnection({ authUser: 'user@example.com' }) | CODE |
| LOW | test/plugins/prevent_credential_leaks.js | 76 | const conn = buildConnection({ authUser: 'user@example.com', bodytext: 'user@example.com' }) | CODE |
| LOW | test/plugins/rcpt_to.in_host_list.js | 126 | [new Address('test@test.com')], | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 137 | addr: 'test@test.com', | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 145 | addr: 'test@test.com', | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 151 | addr: 'test@test.com', | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 157 | addr: 'test@test.com', | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 163 | addr: 'test@test.com', | CODE |
| LOW⚡ | test/plugins/rcpt_to.in_host_list.js | 172 | addr: 'test@test.com', | CODE |
| LOW | test/plugins/auth/auth_base.js | 582 | this.mfrom = new Address('user@example.com') | CODE |
| LOW | test/plugins/auth/auth_base.js | 583 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | test/plugins/auth/auth_base.js | 596 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | test/plugins/auth/auth_base.js | 611 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | test/plugins/auth/auth_base.js | 625 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | test/plugins/auth/auth_base.js | 638 | this.mfrom = new Address('user@example.com') | CODE |
| LOW | test/plugins/auth/auth_base.js | 652 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | test/plugins/auth/auth_base.js | 666 | this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' }) | CODE |
| LOW | docs/Outbound.md | 163 | const to = 'user@example.com' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/smtp_bridge.ini | 1 | host=localhost | COMMENT |