开源运维平台:面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。
This report presents the forensic synthetic code analysis of openspug/spug, a JavaScript project with 11,030 GitHub stars. SynthScan v2.0 examined 27,778 lines of code across 348 source files, recording 119 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 5.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 119 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/spug.py | 46 | CODE | |
| LOW | spug_api/libs/spug.py | 187 | CODE | |
| LOW | spug_api/libs/parser.py | 36 | CODE | |
| LOW | spug_api/consumer/consumers.py | 61 | CODE | |
| LOW | spug_api/consumer/utils.py | 27 | CODE | |
| LOW | spug_api/apps/repository/utils.py | 66 | CODE | |
| LOW | spug_api/apps/repository/views.py | 109 | CODE | |
| LOW | spug_api/apps/schedule/utils.py | 19 | CODE | |
| LOW | spug_api/apps/schedule/builtin.py | 24 | CODE | |
| LOW | spug_api/apps/schedule/scheduler.py | 95 | CODE | |
| LOW | spug_api/apps/monitor/executors.py | 74 | CODE | |
| LOW | spug_api/apps/monitor/executors.py | 111 | 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/host/add.py | 30 | CODE | |
| LOW | spug_api/apps/host/utils.py | 185 | 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/utils.py | 76 | CODE | |
| LOW | spug_api/apps/deploy/utils.py | 131 | CODE | |
| LOW | spug_api/apps/deploy/utils.py | 283 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 25 | CODE | |
| LOW | spug_api/apps/deploy/helper.py | 191 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 208 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 64 | CODE | |
| LOW | spug_api/apps/deploy/views.py | 103 | CODE | |
| LOW | spug_api/apps/exec/transfer.py | 121 | CODE | |
| LOW | spug_api/apps/exec/transfer.py | 31 | 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 | 113 | CODE | |
| LOW | spug_api/apps/account/models.py | 44 | CODE | |
| LOW | spug_api/apps/account/views.py | 187 | CODE | |
| LOW | spug_api/apps/account/management/commands/user.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/ldap.py | 29 | except Exception as error: | CODE |
| MEDIUM | spug_api/libs/ldap.py | 17 | def valid_user(self, username, password): | CODE |
| LOW | spug_api/libs/spug.py | 49 | except Exception as e: | CODE |
| MEDIUM | spug_api/libs/spug.py | 46 | def handle_request(url, data, mode=None): | CODE |
| LOW | spug_api/libs/push.py | 26 | except Exception: | CODE |
| MEDIUM | spug_api/libs/push.py | 20 | def get_contacts(token): | CODE |
| LOW | spug_api/consumer/consumers.py | 112 | except Exception as e: | CODE |
| LOW | spug_api/apps/repository/utils.py | 52 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 28 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 43 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 58 | except Exception as e: | CODE |
| LOW | spug_api/apps/monitor/executors.py | 70 | except Exception as e: | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 20 | def site_check(url, limit): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 36 | def port_check(addr, port): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 47 | def ping_check(addr): | CODE |
| MEDIUM | spug_api/apps/monitor/executors.py | 62 | def host_executor(host, command): | CODE |
| LOW | spug_api/apps/apis/deploy.py | 33 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 62 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 124 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 214 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 255 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 304 | except Exception as e: | CODE |
| LOW | spug_api/apps/deploy/utils.py | 314 | except Exception as e: | CODE |
| LOW | spug_api/apps/exec/executors.py | 68 | 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 | 87 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 107 | except Exception as e: | CODE |
| LOW | spug_api/apps/setting/views.py | 134 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/spug/settings.py | 140 | 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/push.py | 4 | 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/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/exec/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/setting/urls.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | spug_api/libs/ssh.py | 183 | command += '[ -n "$ZSH_VERSION" ] && set +o zle && set -o no_nomatch\n' | CODE |
| HIGH | spug_api/apps/schedule/executors.py | 42 | attach = 'INTERPRETER=python\ncommand -v python3 &> /dev/null && INTERPRETER=python3' | CODE |
| HIGH | spug_api/apps/schedule/builtin.py | 64 | os.system(f'umount -f {transfer_dir} &> /dev/null ; rm -rf {transfer_dir}') | CODE |
| HIGH | spug_api/apps/exec/executors.py | 42 | attach = 'INTERPRETER=python\ncommand -v python3 &> /dev/null && INTERPRETER=python3' | CODE |
| HIGH | spug_api/apps/exec/transfer.py | 61 | os.system(f'umount -f {base_dir} &> /dev/null ; rm -rf {base_dir}') | 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/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 |
|---|---|---|---|---|
| LOW | spug_api/libs/ssh.py | 14 | def _finalize_pubkey_algorithm(self, key_type): | CODE |
| LOW | spug_api/libs/ssh.py | 125 | def _win_exec_command_with_stream(self, command, environment=None): | CODE |
| LOW | spug_api/apps/host/utils.py | 29 | def check_instance_charge_type(value, supplier): | CODE |
| LOW | spug_api/apps/host/utils.py | 43 | def check_internet_charge_type(value, supplier): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spug_api/libs/spug.py | 46 | def handle_request(url, data, mode=None): | CODE |