Self-contained Shadowsocks implementation in C with libuv, asynchronous DNS, and portable static builds for Linux, macOS, Windows, and FreeBSD.
This report summarizes scanner evidence for shadowsocks/shadowsocks-libev, a C++ project with 16,188 GitHub stars. SynthScan examined 51,494 lines of code across 249 source files, recording 204 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 5.3 (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.
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? 182 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 38 finding(s).
Which changes need focused human review? 204 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 204 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 |
|---|---|---|---|---|
| LOW | .uncrustify.cfg | 21 | # Indenting | COMMENT |
| LOW | .uncrustify.cfg | 681 | COMMENT | |
| LOW | .uncrustify.cfg | 1041 | # Change simple unbraced for statements into a one-liner | COMMENT |
| LOW | .uncrustify.cfg | 1341 | # Example: | COMMENT |
| LOW | .uncrustify.cfg | 1361 | # | COMMENT |
| LOW | docker/mingw/apt.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docker/mingw/prepare.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docker/mingw/deps.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docker/mingw/build.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/test_crypto_cpp.cpp | 1 | // SPDX-License-Identifier: GPL-3.0-or-later | COMMENT |
| LOW | tests/test_heap_guard_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/test_crypto_aead2022_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/test_helpers.h | 1 | #ifndef SS_TEST_HELPERS_H | COMMENT |
| LOW | tests/test_process_cpp.cpp | 1 | // SPDX-License-Identifier: GPL-3.0-or-later | COMMENT |
| LOW | tests/test_deb_build.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/test_aead2022_cpp.cpp | 1 | // SPDX-License-Identifier: GPL-3.0-or-later | COMMENT |
| LOW | tests/test.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | tests/test_jconf_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/udp_session_eviction_client.c | 1 | /* Live UDP relay regression based on Akhil Koul (@akoul)'s private report. | COMMENT |
| LOW | tests/test_local_api_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/test_redir_qemu.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/test_crypto_aead_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/test_resolver_cpp.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | tests/qemu/guest-init.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/reference/crypto.h | 21 | */ | COMMENT |
| LOW | tests/reference/crypto.h | 41 | typedef crypto_aead_aes256gcm_state aes256gcm_ctx; | COMMENT |
| LOW | tests/reference/crypto.h | 61 | COMMENT | |
| LOW | tests/reference/crypto.h | 81 | #define SS2022_MAX_PADDING 900 | COMMENT |
| LOW | tests/reference/aead.cpp | 21 | */ | COMMENT |
| LOW | tests/reference/cache.cpp | 21 | */ | COMMENT |
| LOW | tests/reference/aead.h | 21 | */ | COMMENT |
| LOW | tests/reference/crypto.cpp | 21 | */ | COMMENT |
| LOW | tests/reference/aead2022_udp.cpp | 41 | #include "aead_internal.h" | COMMENT |
| LOW | tests/reference/aead2022.cpp | 21 | * | COMMENT |
| LOW | tests/reference/aead2022.cpp | 41 | #define SS2022_HDR_TYPE_SERVER 1 | COMMENT |
| LOW | third_party/mbedtls_config.h | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | third_party/mbedtls_config.h | 21 | #define MBEDTLS_PLATFORM_C | COMMENT |
| LOW | third_party/bloom/murmur2/MurmurHash2.c | 1 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | src/utils.h | 21 | */ | COMMENT |
| LOW | src/jconf.cpp | 21 | COMMENT | |
| LOW | src/utils.cpp | 21 | */ | COMMENT |
| LOW | src/utils.cpp | 41 | #include <sys/stat.h> | COMMENT |
| LOW | src/utils.cpp | 741 | #endif | COMMENT |
| LOW | src/process.cpp | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | src/process.cpp | 21 | #include <time.h> | COMMENT |
| LOW | src/netutils.h | 21 | */ | COMMENT |
| LOW | src/netutils.h | 41 | #include <netdb.h> | COMMENT |
| LOW | src/winsock.cpp | 21 | */ | COMMENT |
| LOW | src/local.cpp | 21 | */ | COMMENT |
| LOW | src/local.cpp | 41 | #endif | COMMENT |
| LOW | src/local.cpp | 61 | #include "jconf.h" | COMMENT |
| LOW | src/android.c | 21 | */ | COMMENT |
| LOW | src/jconf.h | 21 | COMMENT | |
| LOW | src/acl.cpp | 21 | */ | COMMENT |
| LOW | src/redir.cpp | 21 | * <http://www.gnu.org/licenses/>. | COMMENT |
| LOW | src/redir.cpp | 41 | #include <linux/netfilter_ipv4.h> | COMMENT |
| LOW | src/redir.cpp | 61 | COMMENT | |
| LOW | src/manager.cpp | 21 | */ | COMMENT |
| LOW | src/manager.cpp | 41 | #include <dirent.h> | COMMENT |
| LOW | src/manager.cpp | 61 | #define SET_INTERFACE | COMMENT |
| 62 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/sip003_fixture.py | 20 | except OSError: | CODE |
| HIGH | tests/sip003_fixture.py | 33 | except OSError: | CODE |
| HIGH | tests/test_server_acl.py | 97 | except ConnectionResetError: | CODE |
| HIGH | tests/test.py | 149 | except OSError: | CODE |
| HIGH | tests/interop.py | 25 | except (OSError, TimeoutError): | CODE |
| HIGH | tests/interop.py | 271 | except ProcessLookupError: | CODE |
| HIGH | tests/stress_test.py | 56 | except (IOError, OSError, ValueError): | CODE |
| HIGH | tests/stress_test.py | 99 | except (socket.timeout, OSError): | CODE |
| HIGH | tests/stress_test.py | 241 | except OSError: | CODE |
| HIGH | tests/stress_test.py | 143 | except Exception: | CODE |
| HIGH | tests/test_limits.py | 56 | except (OSError, AssertionError): | CODE |
| HIGH | tests/experiments/transport.py | 100 | except (OSError, ValueError, asyncio.IncompleteReadError, asyncio.LimitOverrunError, TimeoutError): | CODE |
| HIGH | tests/experiments/route_server.py | 28 | except (OSError, TimeoutError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tunnel_interop.py | 29 | CODE | |
| LOW | tests/tunnel_interop.py | 46 | CODE | |
| LOW | tests/docker_smoke.py | 19 | CODE | |
| LOW | tests/docker_smoke.py | 49 | CODE | |
| LOW | tests/async_dns_interop.py | 12 | CODE | |
| LOW | tests/measure_udp.py | 15 | CODE | |
| LOW | tests/interop.py | 96 | CODE | |
| LOW | tests/interop.py | 154 | CODE | |
| LOW | tests/interop.py | 183 | CODE | |
| LOW | tests/test_half_close.py | 33 | CODE | |
| LOW | tests/stress_test.py | 39 | CODE | |
| LOW | tests/stress_test.py | 147 | CODE | |
| LOW | tests/stress_test.py | 287 | CODE | |
| LOW | tests/test_limits.py | 18 | CODE | |
| LOW | tests/test_manager.py | 64 | CODE | |
| LOW | tests/test_manager.py | 101 | CODE | |
| LOW | tests/check_printable_pcap.py | 15 | CODE | |
| LOW | tests/test_cli.py | 32 | CODE | |
| LOW | tests/test_cli.py | 141 | CODE | |
| LOW | tests/printable_salt_experiment.py | 145 | CODE | |
| LOW | tests/experiments/benchmark.py | 34 | CODE | |
| LOW | tests/experiments/transport.py | 80 | CODE | |
| LOW | tests/experiments/route_server.py | 74 | CODE | |
| LOW | tests/experiments/route_screen.py | 28 | CODE | |
| LOW | tests/experiments/test_transport.py | 14 | CODE | |
| LOW | tests/experiments/test_supervisor.py | 19 | CODE | |
| LOW | tests/experiments/local_interop.py | 28 | CODE | |
| LOW | tests/experiments/analyze.py | 17 | CODE | |
| LOW | scripts/check_cli_docs.py | 109 | CODE | |
| LOW | scripts/check_no_heap.py | 53 | CODE | |
| LOW | scripts/source_archive.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_cli_docs.py | 33 | def test_current_documentation_matches_all_variants(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 43 | def test_new_option_requires_documentation(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 48 | def test_argument_arity_is_checked(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 54 | def test_unknown_parser_syntax_fails_closed(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 60 | def test_nonliteral_short_options_fail_closed(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 65 | def test_shell_options_require_documentation(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 70 | def test_missing_snippet_is_rejected(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 75 | def test_duplicate_option_is_rejected(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 80 | def test_manual_must_include_parser_options(self): | CODE |
| LOW⚡ | tests/test_cli_docs.py | 85 | def test_missing_rendered_flag_is_rejected(self): | CODE |
| LOW | tests/test_cli.py | 55 | def test_printable_salt_is_local_only_and_rejects_other_ciphers(self): | CODE |
| LOW | tests/test_cli.py | 91 | def test_removed_stream_ciphers_are_rejected(self): | CODE |
| LOW | tests/test_cli.py | 99 | def test_long_aliases_accept_their_arguments(self): | CODE |
| LOW | tests/test_cli.py | 123 | def test_usage_errors_are_stderr_exit_two_without_secrets(self): | CODE |
| LOW | tests/test_cli.py | 141 | def test_transport_and_address_family_override_configuration(self): | CODE |
| LOW | tests/test_cli.py | 177 | def test_server_endpoint_arguments(self): | CODE |
| LOW | tests/test_cli.py | 198 | def test_numeric_option_validation(self): | CODE |
| LOW | tests/experiments/test_transport.py | 35 | async def test_invalid_and_truncated(self): | CODE |
| LOW | tests/experiments/test_transport.py | 50 | async def test_empty_client_does_not_connect_upstream(self): | CODE |
| LOW | tests/experiments/test_transport.py | 67 | async def test_tls_half_close_and_certificate_verification(self): | CODE |
| LOW | tests/experiments/test_transport.py | 102 | async def test_half_close_and_concurrent_relay(self): | CODE |
| LOW | scripts/check_no_heap.py | 53 | def strip_comments_and_strings(text): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker/mingw/apt.sh | 5 | # This file is part of the shadowsocks-libev. | COMMENT |
| MEDIUM | docker/mingw/prepare.sh | 5 | # This file is part of the shadowsocks-libev. | COMMENT |
| MEDIUM | docker/mingw/deps.sh | 5 | # This file is part of the shadowsocks-libev. | COMMENT |
| MEDIUM | docker/mingw/build.sh | 5 | # This file is part of the shadowsocks-libev. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test.py | 18 | CODE | |
| LOW | tests/test.py | 18 | CODE | |
| LOW | tests/test.py | 18 | CODE | |
| LOW | tests/test.py | 18 | CODE | |
| LOW | tests/stress_test.py | 13 | CODE | |
| LOW | tests/test_limits.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/reference/cache.cpp | 70 | std::size_t capacity = 0; // as requested; eviction threshold | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_redir_qemu.sh | 260 | # Check if QEMU is still running | COMMENT |
| LOW | scripts/ss-setup.sh | 510 | # Check if TCP Fast Open is available (Linux only) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/stress_test.py | 139 | except Exception: | CODE |
| LOW | tests/stress_test.py | 143 | except Exception: | CODE |
| LOW | tests/stress_test.py | 257 | except Exception as e: | CODE |