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-c, a C project with 16,183 GitHub stars. SynthScan examined 42,374 lines of code across 184 source files, recording 140 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 4.5 (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.
Can maintainers explain intent, assumptions, and trade-offs? 123 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 27 finding(s).
Which changes need focused human review? 140 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 140 distinct pattern matches across 8 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_helpers.h | 1 | #ifndef SS_TEST_HELPERS_H | COMMENT |
| LOW | tests/test_deb_build.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/test.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | tests/test_aead2022.c | 1 | /* | COMMENT |
| LOW | tests/test_redir_qemu.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tests/test_jconf.c | 1 | #ifdef HAVE_CONFIG_H | COMMENT |
| LOW | tests/qemu/guest-init.sh | 1 | #!/bin/bash | 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_CAMELLIA_C | COMMENT |
| LOW | third_party/bloom/murmur2/MurmurHash2.c | 1 | //----------------------------------------------------------------------------- | COMMENT |
| LOW | src/utils.h | 21 | */ | COMMENT |
| LOW | src/process.c | 1 | /* SPDX-License-Identifier: GPL-3.0-or-later */ | COMMENT |
| LOW | src/aead.c | 21 | */ | COMMENT |
| LOW | src/netutils.h | 21 | */ | COMMENT |
| LOW | src/netutils.h | 41 | COMMENT | |
| LOW | src/local.c | 21 | */ | COMMENT |
| LOW | src/local.c | 41 | #endif | COMMENT |
| LOW | src/local.c | 61 | #include "local.h" | COMMENT |
| LOW | src/ss_event.h | 1 | /* Project event API backed by bundled/system libuv. Watchers may be freed | COMMENT |
| LOW | src/redir.c | 21 | * <http://www.gnu.org/licenses/>. | COMMENT |
| LOW | src/redir.c | 41 | #include <linux/netfilter_ipv4.h> | COMMENT |
| LOW | src/redir.c | 61 | #define EWOULDBLOCK EAGAIN | COMMENT |
| LOW | src/android.c | 21 | */ | COMMENT |
| LOW | src/stream.h | 21 | */ | COMMENT |
| LOW | src/uthash.h | 41 | #define NO_DECLTYPE | COMMENT |
| LOW | src/uthash.h | 61 | } while (0) | COMMENT |
| LOW | src/uthash.h | 81 | #ifndef uthash_fatal | COMMENT |
| LOW | src/uthash.h | 641 | * cc -## a.c (where a.c is a simple test file) (Sun Studio) | COMMENT |
| LOW | src/server.c | 21 | */ | COMMENT |
| LOW | src/server.c | 41 | #include <arpa/inet.h> | COMMENT |
| LOW | src/server.c | 61 | /* the datatypes enum is picked from libnftables/datatype.h | COMMENT |
| LOW | src/server.c | 81 | #ifndef EWOULDBLOCK | COMMENT |
| LOW | src/jconf.h | 21 | COMMENT | |
| LOW | src/crypto.h | 21 | */ | COMMENT |
| LOW | src/crypto.h | 41 | typedef crypto_aead_aes256gcm_state aes256gcm_ctx; | COMMENT |
| LOW | src/crypto.h | 61 | COMMENT | |
| LOW | src/crypto.h | 81 | #define CRYPTO_ROLE_CLIENT 0 | COMMENT |
| LOW | src/udprelay.c | 21 | */ | COMMENT |
| LOW | src/udprelay.c | 41 | #endif | COMMENT |
| LOW | src/udprelay.c | 61 | #endif | COMMENT |
| LOW | src/udprelay.c | 161 | #ifdef IP_ORIGDSTADDR | COMMENT |
| LOW | src/winsock.c | 21 | */ | COMMENT |
| LOW | src/resolv.c | 21 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | COMMENT |
| LOW | src/utils.c | 21 | */ | COMMENT |
| LOW | src/utils.c | 41 | #include <sys/stat.h> | COMMENT |
| LOW | src/common.h | 21 | COMMENT | |
| LOW | src/netutils.c | 21 | */ | COMMENT |
| LOW | src/aead2022.c | 21 | * | COMMENT |
| LOW | src/aead2022.c | 41 | #define SS2022_HDR_TYPE_SERVER 1 | COMMENT |
| LOW | src/plugin.c | 21 | */ | COMMENT |
| LOW | src/acl.c | 21 | */ | COMMENT |
| 28 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.py | 147 | except OSError: | CODE |
| HIGH | tests/interop.py | 25 | except (OSError, TimeoutError): | CODE |
| HIGH | tests/interop.py | 257 | except ProcessLookupError: | CODE |
| HIGH | tests/stress_test.py | 64 | except (IOError, OSError, ValueError): | CODE |
| HIGH | tests/stress_test.py | 107 | except (socket.timeout, OSError): | CODE |
| HIGH | tests/stress_test.py | 249 | except OSError: | CODE |
| HIGH | tests/stress_test.py | 151 | except Exception: | 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_long_aliases_accept_their_arguments(self): | CODE |
| LOW | tests/test_cli.py | 79 | def test_usage_errors_are_stderr_exit_two_without_secrets(self): | CODE |
| LOW | tests/test_cli.py | 97 | def test_transport_and_address_family_override_configuration(self): | CODE |
| LOW | tests/test_cli.py | 133 | def test_server_endpoint_arguments(self): | CODE |
| LOW | tests/test_cli.py | 154 | def test_numeric_option_validation(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | 92 | CODE | |
| LOW | tests/interop.py | 150 | CODE | |
| LOW | tests/interop.py | 179 | CODE | |
| LOW | tests/stress_test.py | 47 | CODE | |
| LOW | tests/stress_test.py | 155 | CODE | |
| LOW | tests/stress_test.py | 295 | CODE | |
| LOW | tests/test_cli.py | 32 | CODE | |
| LOW | tests/test_cli.py | 97 | CODE | |
| LOW | scripts/check_cli_docs.py | 101 | CODE | |
| LOW | scripts/source_archive.py | 16 | 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_redir_qemu.sh | 259 | # 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 | 147 | except Exception: | CODE |
| LOW | tests/stress_test.py | 151 | except Exception: | CODE |
| LOW | tests/stress_test.py | 265 | except Exception as e: | CODE |