:trollface: Self-hosted, lightweight server and website monitoring and O&M tool
This report summarizes scanner evidence for nezhahq/nezha, a Go project with 10,388 GitHub stars. SynthScan examined 118,572 lines of code across 900 source files, recording 130 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.2 (Low 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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 124 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 7 finding(s).
Which changes need focused human review? 130 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 130 distinct pattern matches across 6 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 |
|---|---|---|---|---|
| LOW | cmd/dashboard/main.go | 101 | // @version 1.0 | COMMENT |
| LOW | cmd/dashboard/controller/mcp_origin.go | 41 | } | COMMENT |
| LOW | cmd/dashboard/controller/waf.go | 61 | }, | COMMENT |
| LOW | cmd/dashboard/controller/csrf.go | 81 | c.SetCookie(csrfCookieName, token, 0, "/", "", secure, false) | COMMENT |
| LOW | cmd/dashboard/controller/csrf.go | 101 | // - Bearer-token PAT requests (`Authorization: Bearer nzp_*`): stateless, | COMMENT |
| LOW | cmd/dashboard/controller/notification_group.go | 121 | // Edit notification group | COMMENT |
| LOW | cmd/dashboard/controller/notification_group.go | 201 | } | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 41 | return ssl, nil | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 161 | // entry is dropped: the order shortens the window in which a | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 281 | } | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 361 | // Batch move servers to other user | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 421 | // server 是否存在。 | COMMENT |
| LOW | cmd/dashboard/controller/server.go | 501 | "uptime": tsdb.MetricServerUptime, | COMMENT |
| LOW | cmd/dashboard/controller/service.go | 141 | // Get service history | COMMENT |
| LOW | cmd/dashboard/controller/service.go | 601 | return nil, nil | COMMENT |
| LOW | cmd/dashboard/controller/user.go | 41 | }, nil | COMMENT |
| LOW | cmd/dashboard/controller/user.go | 121 | } | COMMENT |
| LOW | cmd/dashboard/controller/user.go | 161 | COMMENT | |
| LOW | cmd/dashboard/controller/user.go | 241 | Pagination: model.Pagination{ | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 1 | // Package controller — scope reference table for REST + MCP. | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 21 | // | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 41 | // GET /api/v1/server nezha:inventory:read | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 61 | // GET /api/v1/server/{id}/metrics nezha:server:read | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 81 | // POST /api/v1/cron/{id}/manual nezha:cron:exec | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 101 | // POST /api/v1/notification-group nezha:notification-group:write | COMMENT |
| LOW | cmd/dashboard/controller/scope_doc.go | 121 | // POST /api/v1/refresh-token | COMMENT |
| LOW | …d/dashboard/controller/mcp_transfer_zero_chunk_test.go | 21 | } | COMMENT |
| LOW | cmd/dashboard/controller/cron_update_owner_uid_test.go | 61 | c.Set(apiTokenCtxKey, tok) | COMMENT |
| LOW | cmd/dashboard/controller/api_token_revoke_registry.go | 21 | // | COMMENT |
| LOW | cmd/dashboard/controller/setting.go | 61 | Oauth2Providers: config.Oauth2Providers, | COMMENT |
| LOW | cmd/dashboard/controller/frontend.go | 41 | // List frontends | COMMENT |
| LOW | cmd/dashboard/controller/nat.go | 161 | // Batch delete NAT configurations | COMMENT |
| LOW | cmd/dashboard/controller/notification.go | 41 | n.RequestBody = "" | COMMENT |
| LOW | cmd/dashboard/controller/notification.go | 161 | } | COMMENT |
| LOW | cmd/dashboard/controller/cron.go | 201 | } | COMMENT |
| LOW | cmd/dashboard/controller/cron.go | 241 | } | COMMENT |
| LOW | cmd/dashboard/controller/oauth2.go | 21 | ) | COMMENT |
| LOW | cmd/dashboard/controller/transfer_retry_authz_test.go | 21 | // retryServerTransfer previously gated on prev.HasPermission(c), which honours | COMMENT |
| LOW | cmd/dashboard/controller/server_group.go | 81 | // New server group | COMMENT |
| LOW | cmd/dashboard/controller/server_group.go | 141 | // Edit server group | COMMENT |
| LOW | cmd/dashboard/controller/server_group.go | 221 | return nil, nil | COMMENT |
| LOW | cmd/dashboard/controller/permissions.go | 61 | // that carries a non-empty server_ids whitelist. Cover-all semantics in | COMMENT |
| LOW | cmd/dashboard/controller/permissions.go | 201 | return model.DenyListSafeForLimitedPAT(tok, ownerUID, denyIDs) | COMMENT |
| LOW | cmd/dashboard/controller/permissions.go | 221 | // 会跑到 PAT 白名单之外。 | COMMENT |
| LOW | cmd/dashboard/controller/permissions.go | 301 | COMMENT | |
| LOW | cmd/dashboard/controller/permissions.go | 361 | } | COMMENT |
| LOW | cmd/dashboard/controller/permissions.go | 381 | // existing cron's UserID — not the caller — because CronTrigger fans out | COMMENT |
| LOW | cmd/dashboard/controller/terminal_fm_quota_test.go | 1 | package controller | COMMENT |
| LOW | cmd/dashboard/controller/mcp.go | 1 | // Package controller — MCP (Model Context Protocol) server. | COMMENT |
| LOW | cmd/dashboard/controller/transfer_list_filter_test.go | 21 | COMMENT | |
| LOW | cmd/dashboard/controller/transfer.go | 21 | // @Description InitiatorID. The same predicate is enforced both at the SQL | COMMENT |
| LOW | cmd/dashboard/controller/transfer.go | 41 | } | COMMENT |
| LOW | cmd/dashboard/controller/transfer.go | 101 | // @Description terminal (Failed/Timeout/Cancelled) transfer. The previous row | COMMENT |
| LOW | cmd/dashboard/controller/transfer.go | 161 | // @Summary Websocket server transfer stream | COMMENT |
| LOW | cmd/dashboard/controller/cron_service_cover_pat_test.go | 1 | package controller | COMMENT |
| LOW | cmd/dashboard/controller/ddns.go | 41 | COMMENT | |
| LOW | cmd/dashboard/controller/ddns.go | 101 | COMMENT | |
| LOW | cmd/dashboard/controller/ddns.go | 181 | return nil, nil | COMMENT |
| LOW | cmd/dashboard/controller/dashboard_credential.go | 21 | // authenticate dashboard requests on its own. | COMMENT |
| LOW | cmd/dashboard/controller/dashboard_credential.go | 41 | // | COMMENT |
| 59 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | script/install_en.sh | 3 | #======================================================== | COMMENT |
| MEDIUM | script/install_en.sh | 5 | #======================================================== | COMMENT |
| MEDIUM | script/install.sh | 3 | #======================================================== | COMMENT |
| MEDIUM | script/install.sh | 5 | #======================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/sync.py | 37 | def get_github_latest_release(): | CODE |
| LOW | .github/sync.py | 159 | def get_existing_gitee_release(client, release_api_uri, tag, token): | CODE |
| LOW | .github/sync_atomgit.py | 12 | def get_github_latest_release(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/release.yml | 94 | # Create the Go file to link the library | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/dashboard/controller/jwt_session_test.go | 413 | refreshResponse(c, 200, "fake-token", newExpire) | CODE |
| LOW | service/singleton/nat_domain_policy_test.go | 44 | for _, domain := range []string{"*.example.com", "https://example.com", "member.example.com/path", "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/sync.py | 37 | CODE |