AI Slop Code RIsk Monitor

haraka/Haraka

A fast, highly extensible, and event driven SMTP server

5.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

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.

5.8
Adjusted Signal
5.8
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
5.6K
Stars
JavaScript
Language
33.2K
Lines of Code
213
Files
77
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 0.1/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.3/100 · LOW

Are imports declared and package/API names verified? 19 finding(s).

Agent Over-Engineering Ratio 22.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 57 finding(s).

PR Review Velocity Impact 25.0/100 · MEDIUM

Which changes need focused human review? 77 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 57LOW 20

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators57 hits · 171 pts
SeverityFileLineSnippetContext
MEDIUMtest/transaction.js12// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/transaction.js51// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js35// ─── CRAM-MD5 helper ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js44// ─── Server lifecycle helpers ─────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js77// ─── SMTP session helper ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js176// ─── Tests ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js179 // ── get_listen_addrs ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js276 // ── load_smtp_ini ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js292 // ── get_smtp_server ───────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js747 // ── listener binding ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js830 // ── get_http_docroot ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js1013 // ── SMTP sessions ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/server.js1040 // ── requireAuthorized: SMTPS (implicit TLS) ───────────────────────────────COMMENT
MEDIUMtest/server.js1070 // ── requireAuthorized: STARTTLS ───────────────────────────────────────────COMMENT
MEDIUMtest/connection.js18// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/connection.js45// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js21// ─── Socket / client helpers ─────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js76// ─── Constructor ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js116// ─── Line handler ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js273 // ── Auth responses ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js275 // ── Auth challenge responses (334) ─────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js318// ─── Socket connect event ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js349// ─── closed() — socket error / timeout / close / end ─────────────────────────COMMENT
MEDIUMtest/smtp_client.js435// ─── load_tls_options ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js453// ─── send_command ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js495// ─── start_data ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js521// ─── release ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js565// ─── destroy ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js584// ─── upgrade ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js618// ─── is_dead_sender ───────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js641// ─── get_client export ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js660// ─── onCapabilitiesOutbound ───────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js736// ─── get_client_plugin ────────────────────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js1038// ─── Full SMTP session (integration) ─────────────────────────────────────────COMMENT
MEDIUMtest/smtp_client.js1142// ─── Full SMTP session with AUTH (integration) ───────────────────────────────COMMENT
MEDIUMtest/smtp_client.js1251// ─── testUpgradeIsCalledOnSTARTTLS ───────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js17// ─── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js74// ─── register ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js134// ─── tls_options ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js170// ─── load_smtp_forward_ini ────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js187// ─── get_config ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js328// ─── check_sender ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js407// ─── set_queue ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js509// ─── check_recipient ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js618// ─── auth ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js689// ─── forward_enabled ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js728// ─── queue_forward ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js930// ─── get_mx_next_hop ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js988// ─── get_mx ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/plugins/queue/smtp_forward.js1110// ─── is_outbound_enabled ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/bounce_rfc3464.js26// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/bounce_rfc3464.js78// ── Shared conversation building blocks ───────────────────────────────────────COMMENT
MEDIUMtest/outbound/bounce_rfc3464.js96// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/hmail.js17// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/hmail.js21// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/bounce_net_errors.js27// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/outbound/bounce_net_errors.js66// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
Fake / Example Data19 hits · 22 pts
SeverityFileLineSnippetContext
LOWtest/plugins/prevent_credential_leaks.js36 const conn = buildConnection({ authUser: 'user@example.com', authPasswd: 'secret' })CODE
LOWtest/plugins/prevent_credential_leaks.js46 const conn = buildConnection({ authUser: 'user@example.com' })CODE
LOWtest/plugins/prevent_credential_leaks.js76 const conn = buildConnection({ authUser: 'user@example.com', bodytext: 'user@example.com' })CODE
LOWtest/plugins/rcpt_to.in_host_list.js126 [new Address('test@test.com')],CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js137 addr: 'test@test.com',CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js145 addr: 'test@test.com',CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js151 addr: 'test@test.com',CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js157 addr: 'test@test.com',CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js163 addr: 'test@test.com',CODE
LOW⚡test/plugins/rcpt_to.in_host_list.js172 addr: 'test@test.com',CODE
LOWtest/plugins/auth/auth_base.js582 this.mfrom = new Address('user@example.com')CODE
LOWtest/plugins/auth/auth_base.js583 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWtest/plugins/auth/auth_base.js596 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWtest/plugins/auth/auth_base.js611 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWtest/plugins/auth/auth_base.js625 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWtest/plugins/auth/auth_base.js638 this.mfrom = new Address('user@example.com')CODE
LOWtest/plugins/auth/auth_base.js652 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWtest/plugins/auth/auth_base.js666 this.connection.results.add({ name: 'auth' }, { user: 'user@example.com' })CODE
LOWdocs/Outbound.md163const to = 'user@example.com'CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWconfig/smtp_bridge.ini1host=localhostCOMMENT