Spug is a lightweight agent-free automatic operation and maintenance platform designed for small and medium-sized enterprises. It integrates host management, host batch execution, host online terminal, file management, application release and deployment, pipelines, online task planning, configuration center, monitoring, alarm and so on.
This report summarizes scanner evidence for openspug/spug, a JavaScript project with 11,083 GitHub stars. SynthScan examined 38,875 lines of code across 459 source files, recording 173 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 6.1 (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? 81 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 63 finding(s).
Which changes need focused human review? 173 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 173 distinct pattern matches across 9 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 |
|---|---|---|---|---|
| HIGH | spug_api/spug/settings.py | 147 | except ImportError: | CODE |
| HIGH | spug_api/libs/validators.py | 27 | except ValueError: | CODE |
| HIGH | spug_api/apps/pipeline/models.py | 135 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/repository/models.py | 59 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/repository/models.py | 65 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/schedule/builtin.py | 63 | except IndexError: | CODE |
| HIGH | spug_api/apps/schedule/scheduler.py | 93 | except DatabaseError: | CODE |
| HIGH | spug_api/apps/monitor/scheduler.py | 48 | except DatabaseError: | CODE |
| HIGH | spug_api/apps/file/utils.py | 83 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/deploy/models.py | 77 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/deploy/models.py | 73 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/deploy/models.py | 68 | except FileNotFoundError: | CODE |
| HIGH | spug_api/apps/exec/views.py | 160 | except ProcessLookupError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/ldap.py | 60 | CODE | |
| LOW | spug_api/libs/spug.py | 41 | CODE | |
| LOW | spug_api/libs/spug.py | 192 | CODE | |
| LOW | spug_api/libs/parser.py | 29 | CODE | |
| LOW | spug_api/libs/utils.py | 133 | CODE | |
| LOW | spug_api/libs/ssh.py | 207 | CODE | |
| LOW | spug_api/libs/middleware.py | 34 | CODE | |
| LOW | spug_api/libs/middleware.py | 55 | CODE | |
| LOW | spug_api/consumer/utils.py | 51 | CODE | |
| LOW | spug_api/apps/pipeline/utils.py | 136 | CODE | |
| LOW | spug_api/apps/pipeline/utils.py | 249 | CODE | |
| LOW | spug_api/apps/pipeline/helper.py | 21 | CODE | |
| LOW | spug_api/apps/pipeline/helper.py | 59 | CODE | |
| LOW | spug_api/apps/pipeline/helper.py | 137 | CODE | |
| LOW | spug_api/apps/pipeline/views.py | 84 | CODE | |
| LOW | spug_api/apps/repository/utils.py | 93 | CODE | |
| LOW | spug_api/apps/schedule/utils.py | 17 | CODE | |
| LOW | spug_api/apps/schedule/builtin.py | 24 | CODE | |
| LOW | spug_api/apps/schedule/builtin.py | 78 | CODE | |
| LOW | spug_api/apps/schedule/scheduler.py | 96 | CODE | |
| LOW | spug_api/apps/monitor/executors.py | 101 | CODE | |
| LOW | spug_api/apps/monitor/executors.py | 139 | CODE | |
| LOW | spug_api/apps/monitor/utils.py | 48 | CODE | |
| LOW | spug_api/apps/monitor/scheduler.py | 51 | CODE | |
| LOW | spug_api/apps/monitor/views.py | 111 | CODE | |
| LOW | spug_api/apps/apis/config.py | 49 | CODE | |
| LOW | spug_api/apps/apis/deploy.py | 37 | CODE | |
| LOW | spug_api/apps/apis/exec.py | 70 | CODE | |
| LOW | spug_api/apps/apis/pipeline.py | 22 | CODE | |
| LOW | spug_api/apps/host/add.py | 30 | CODE | |
| LOW | spug_api/apps/host/utils.py | 189 | CODE | |
| LOW | spug_api/apps/host/group.py | 32 | CODE | |
| LOW | spug_api/apps/app/views.py | 123 | CODE | |
| LOW | spug_api/apps/file/utils.py | 25 | CODE | |
| LOW | spug_api/apps/file/utils.py | 73 | CODE | |
| LOW | spug_api/apps/deploy/ext1.py | 18 | CODE | |
| LOW | spug_api/apps/deploy/utils.py | 32 | CODE | |
| LOW | spug_api/apps/deploy/ext2.py | 17 | CODE | |
| LOW | spug_api/apps/deploy/ext2.py | 130 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 22 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 77 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 129 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 183 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 224 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 269 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 359 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 217 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 64 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 125 | CODE | |
| LOW | spug_api/apps/exec/transfer.py | 122 | CODE | |
| LOW | spug_api/apps/exec/transfer.py | 32 | CODE | |
| LOW | spug_api/apps/exec/views.py | 134 | CODE | |
| LOW | spug_api/apps/exec/management/commands/runworker.py | 33 | CODE | |
| LOW | spug_api/apps/exec/management/commands/runworker.py | 52 | CODE | |
| LOW | spug_api/apps/alarm/views.py | 96 | CODE | |
| LOW | spug_api/apps/account/views.py | 184 | CODE | |
| LOW | spug_api/apps/account/management/commands/user.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/ldap.py | 56 | except Exception as error: | CODE |
| LOW | spug_api/libs/ldap.py | 81 | except Exception as error: | CODE |
| LOW | spug_api/libs/ldap.py | 103 | except Exception as error: | CODE |
| MEDIUM | spug_api/libs/ldap.py | 49 | def connect(self): | CODE |
| LOW | spug_api/libs/webhook.py | 44 | except Exception as e: | CODE |
| LOW | spug_api/libs/webhook.py | 50 | except Exception: | CODE |
| LOW | spug_api/libs/webhook.py | 135 | except Exception as e: | CODE |
| MEDIUM | spug_api/libs/webhook.py | 41 | def _request(url, data, mode): | CODE |
| LOW | spug_api/libs/spug.py | 44 | except Exception as e: | CODE |
| MEDIUM | spug_api/libs/spug.py | 41 | def handle_request(url, data, mode=None): | CODE |
| LOW | spug_api/libs/middleware.py | 44 | except Exception: | CODE |
| LOW | spug_api/libs/middleware.py | 80 | except Exception: | CODE |
| LOW | spug_api/consumer/consumers.py | 119 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 120 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 129 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 241 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 292 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 323 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 357 | except Exception as e: | CODE |
| LOW | spug_api/apps/pipeline/utils.py | 392 | except Exception as e: | CODE |
| LOW | spug_api/apps/repository/utils.py | 69 | except Exception as e: | CODE |
| LOW | spug_api/apps/repository/utils.py | 80 | except Exception as e: | CODE |
| LOW | spug_api/apps/schedule/builtin.py | 42 | except Exception as e: | CODE |
| LOW⚡ | spug_api/apps/schedule/builtin.py | 89 | except Exception as e: | CODE |
| LOW⚡ | spug_api/apps/schedule/builtin.py | 97 | except Exception as e: | CODE |
| LOW⚡ | spug_api/apps/schedule/builtin.py | 107 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 29 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 44 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 85 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 97 | except Exception as e: | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 21 | def site_check(url, limit): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 37 | def port_check(addr, port): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 65 | def ping_check(addr): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 89 | def host_executor(host, command): | CODE |
| LOW | spug_api/apps/apis/deploy.py | 33 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/ext1.py | 69 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/ext1.py | 116 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 66 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/ext2.py | 119 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/ext2.py | 157 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/ext2.py | 167 | except Exception as e: | CODE |
| LOW | spug_api/apps/exec/executors.py | 80 | except Exception as e: | CODE |
| LOW | spug_api/apps/exec/management/commands/runworker.py | 43 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 179 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 216 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 231 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 247 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/spug/settings.py | 146 | CODE | |
| LOW | spug_api/libs/__init__.py | 4 | CODE | |
| LOW | spug_api/libs/__init__.py | 4 | CODE | |
| LOW | spug_api/libs/__init__.py | 5 | CODE | |
| LOW | spug_api/libs/__init__.py | 6 | CODE | |
| LOW | spug_api/libs/__init__.py | 7 | CODE | |
| LOW | spug_api/libs/__init__.py | 8 | CODE | |
| LOW | spug_api/libs/ssh.py | 9 | CODE | |
| LOW | spug_api/consumer/routing.py | 6 | CODE | |
| LOW | spug_api/apps/home/urls.py | 6 | CODE | |
| LOW | spug_api/apps/notify/urls.py | 6 | CODE | |
| LOW | spug_api/apps/repository/urls.py | 6 | CODE | |
| LOW | spug_api/apps/repository/views.py | 6 | CODE | |
| LOW | spug_api/apps/repository/views.py | 7 | CODE | |
| LOW | spug_api/apps/schedule/builtin.py | 6 | CODE | |
| LOW | spug_api/apps/schedule/urls.py | 6 | CODE | |
| LOW | spug_api/apps/monitor/urls.py | 6 | CODE | |
| LOW | spug_api/apps/host/urls.py | 6 | CODE | |
| LOW | spug_api/apps/app/urls.py | 6 | CODE | |
| LOW | spug_api/apps/file/urls.py | 6 | CODE | |
| LOW | spug_api/apps/config/urls.py | 6 | CODE | |
| LOW | spug_api/apps/config/views.py | 9 | CODE | |
| LOW | spug_api/apps/deploy/urls.py | 6 | CODE | |
| LOW | spug_api/apps/alarm/urls.py | 6 | CODE | |
| LOW | spug_api/apps/account/urls.py | 6 | CODE | |
| LOW | spug_api/apps/account/urls.py | 7 | CODE | |
| LOW | spug_api/apps/account/views.py | 6 | CODE | |
| LOW | spug_api/apps/account/views.py | 20 | CODE | |
| LOW | spug_api/apps/setting/urls.py | 6 | CODE | |
| LOW | spug_api/apps/setting/views.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/spug/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/consumer/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/home/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/notify/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/pipeline/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/credential/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/repository/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/schedule/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/monitor/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/apis/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/host/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/app/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/file/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/config/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/deploy/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/exec/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/alarm/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/account/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| LOW | spug_api/apps/setting/__init__.py | 1 | # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | spug_api/libs/utils.py | 96 | 'SPUG_PY=$(command -v python3 || command -v python)\n' | CODE |
| HIGH | spug_api/libs/ssh.py | 215 | command += '[ -n "$ZSH_VERSION" ] && set +o zle && set -o no_nomatch && HISTFILE=""\n' | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/ssh.py | 159 | def _win_exec_command_with_stream(self, command, environment=None): | STRING |
| LOW | spug_api/apps/host/utils.py | 33 | def check_instance_charge_type(value, supplier): | CODE |
| LOW | spug_api/apps/host/utils.py | 47 | def check_internet_charge_type(value, supplier): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/locale.py | 310 | # Display values of model field choices, returned to the client through the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/spug.py | 41 | def handle_request(url, data, mode=None): | CODE |