A Rust port of shadowsocks
This report summarizes scanner evidence for shadowsocks/shadowsocks-rust, a Rust project with 10,959 GitHub stars. SynthScan examined 108,325 lines of code across 261 source files, recording 99 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.9 (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? 97 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 99 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 99 distinct pattern matches across 5 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 | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in | COMMENT |
| LOW | deny.toml | 41 | #exclude = [] | COMMENT |
| LOW | deny.toml | 61 | COMMENT | |
| LOW | deny.toml | 101 | "CC0-1.0", | COMMENT |
| LOW | deny.toml | 121 | # licensing information | COMMENT |
| LOW | deny.toml | 141 | COMMENT | |
| LOW | deny.toml | 161 | # Lint level for when a crate version requirement is `*` | COMMENT |
| LOW | deny.toml | 181 | ] | COMMENT |
| LOW | deny.toml | 201 | # "__rustls", | COMMENT |
| LOW | deny.toml | 221 | # dependencies starting at the specified crate, up to a certain depth, which is | COMMENT |
| LOW | Cross.toml | 1 | [build] | COMMENT |
| LOW | README.md | 721 | // FreeBSD/OpenBSD: pf (default), ipfw | COMMENT |
| LOW | README.md | 821 | ], | COMMENT |
| LOW | README.md | 841 | // Outbound socket bind() to this IP (choose a specific interface) | COMMENT |
| LOW | README.md | 861 | } | COMMENT |
| LOW | README.md | 881 | // - google (TCP, UDP) | COMMENT |
| LOW | README.md | 921 | // Outbound socket bind() to this IP (choose a specific interface) | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1 | //! This is a mod for storing and parsing configuration | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 21 | //! ```ignore | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 441 | #[serde(skip_serializing_if = "Option::is_none")] | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 461 | local_dns_address: Option<String>, | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 481 | forward_address: Option<String>, | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 501 | #[cfg(feature = "local")] | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 661 | pub enum RedirType { | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 981 | pub struct ManagerConfig { | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1141 | /// Destination address for tunnel | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1161 | pub remote_dns_addr: Option<Address>, | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1181 | #[cfg(all(feature = "local-tun", unix))] | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1201 | /// </dict> | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1501 | } | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1521 | pub dns_cache_size: Option<usize>, | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 1541 | COMMENT | |
| LOW | crates/shadowsocks-service/src/config.rs | 1581 | /// Timeout for UDP Associations, default is 5 minutes | COMMENT |
| LOW | crates/shadowsocks-service/src/config.rs | 2741 | protocol = DnsProtocol::Udp; | COMMENT |
| LOW | crates/shadowsocks-service/src/lib.rs | 1 | //! Shadowsocks Service | COMMENT |
| LOW | crates/shadowsocks-service/src/lib.rs | 21 | //! "local_port": 1080, | COMMENT |
| LOW | crates/shadowsocks-service/src/lib.rs | 41 | //! | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/stream.rs | 21 | use super::http_connect::HttpConnectTunnel; | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/stream.rs | 81 | COMMENT | |
| LOW | crates/shadowsocks-service/src/net/outbound/auth.rs | 1 | //! Outbound proxy authentication primitives. | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/mod.rs | 1 | //! Outbound proxy chain support. | COMMENT |
| LOW | …s/shadowsocks-service/src/net/outbound/http_connect.rs | 1 | //! HTTP CONNECT outbound proxy client built on top of `hyper`. | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/tls.rs | 41 | /// would explode the type. There is **no** dynamic dispatch involved | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/udp.rs | 1 | //! Outbound UDP relay through a SOCKS5-only proxy chain. | COMMENT |
| LOW | crates/shadowsocks-service/src/net/outbound/udp.rs | 61 | /// [`DatagramSocket`] / [`DatagramSend`] / [`DatagramReceive`] triple. | COMMENT |
| LOW | crates/shadowsocks-service/src/local/context.rs | 121 | /// | COMMENT |
| LOW | …owsocks-service/src/local/loadbalancing/server_stat.rs | 21 | COMMENT | |
| LOW | …ates/shadowsocks-service/src/local/http/http_client.rs | 41 | /// HTTPClient API request errors | COMMENT |
| LOW | crates/shadowsocks-service/src/local/socks/config.rs | 41 | } | COMMENT |
| LOW | crates/shadowsocks-service/src/local/socks/socks4.rs | 181 | /// The client connects to the SOCKS server and sends a CONNECT/BIND request when | COMMENT |
| LOW | crates/shadowsocks-service/src/acl/mod.rs | 281 | self.rules_set, | COMMENT |
| LOW | crates/shadowsocks-service/src/acl/mod.rs | 301 | /// RULE-1 | COMMENT |
| LOW | crates/shadowsocks-service/src/acl/mod.rs | 321 | /// * `[outbound_allow_list]` - Rules for allowing outbound addresses. | COMMENT |
| LOW | crates/shadowsocks-service/src/acl/mod.rs | 681 | } | COMMENT |
| LOW | crates/shadowsocks/src/net/option.rs | 21 | /// enables keep-alive messages on connection-oriented sockets | COMMENT |
| LOW | crates/shadowsocks/src/net/option.rs | 41 | /// UDP socket allows IP fragmentation | COMMENT |
| LOW | crates/shadowsocks/src/net/option.rs | 101 | /// | COMMENT |
| LOW | crates/shadowsocks/src/plugin/obfs_proxy.rs | 1 | use super::{PluginConfig, PluginMode}; | COMMENT |
| LOW | crates/shadowsocks/src/plugin/mod.rs | 1 | //! Plugin (SIP003) | COMMENT |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/shadowsocks/src/relay/tcprelay/utils.rs | 364 | /// # Return value | COMMENT |
| LOW | crates/shadowsocks/src/relay/tcprelay/utils.rs | 411 | /// # Return value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configs/genipset.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | acl/genacl_proxy_gfw_bypass_china_ip.py | 10 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | acl/genacl_proxy_gfw_bypass_china_ip.py | 3 | CODE |