Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.
This report summarizes scanner evidence for sshuttle/sshuttle, a Python project with 13,602 GitHub stars. SynthScan examined 9,485 lines of code across 52 source files, recording 113 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 20.3 (Elevated 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? 74 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 67 finding(s).
Which changes need focused human review? 113 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 113 distinct pattern matches across 10 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 | sshuttle/hostwatch.py | 146 | except (OSError, socket.error, UnicodeError): | CODE |
| HIGH | sshuttle/hostwatch.py | 159 | except (socket.gaierror, UnicodeError): | CODE |
| HIGH | sshuttle/hostwatch.py | 60 | except Exception: | CODE |
| HIGH | sshuttle/firewall.py | 117 | except OSError: | CODE |
| HIGH | sshuttle/firewall.py | 351 | except NotImplementedError: | CODE |
| HIGH | sshuttle/ssh.py | 64 | except Exception: | CODE |
| HIGH | sshuttle/helpers.py | 28 | except (IOError, ValueError): # ValueError ~ I/O operation on closed file | CODE |
| HIGH | sshuttle/helpers.py | 41 | except (IOError, ValueError): # ValueError ~ I/O operation on closed file | CODE |
| HIGH | sshuttle/helpers.py | 303 | except Exception: | CODE |
| HIGH | sshuttle/ssnet.py | 175 | except AttributeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sshuttle/server.py | 155 | except Exception: | CODE |
| LOW | sshuttle/hostwatch.py | 60 | except Exception: | CODE |
| LOW | sshuttle/firewall.py | 258 | except Exception: | CODE |
| LOW | sshuttle/firewall.py | 280 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 384 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 391 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 395 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 402 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 406 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 412 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 416 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 422 | except Exception: | CODE |
| LOW⚡ | sshuttle/firewall.py | 426 | except Exception: | CODE |
| MEDIUM | sshuttle/firewall.py | 225 | def _read_next_string_line(): | CODE |
| LOW | sshuttle/client.py | 1019 | except Exception as e: | CODE |
| LOW | sshuttle/ssh.py | 64 | except Exception: | CODE |
| LOW | sshuttle/helpers.py | 269 | except Exception: | CODE |
| LOW | sshuttle/helpers.py | 303 | except Exception: | CODE |
| LOW | sshuttle/helpers.py | 323 | except Exception: | CODE |
| LOW | sshuttle/helpers.py | 337 | except Exception: | CODE |
| MEDIUM | sshuttle/helpers.py | 318 | def stream_reader_to_sock(): | CODE |
| MEDIUM | sshuttle/helpers.py | 330 | def stream_sock_to_writer(): | CODE |
| LOW | sshuttle/ssnet.py | 67 | except Exception as e: | CODE |
| LOW | sshuttle/ssnet.py | 79 | except Exception as e: | CODE |
| LOW | sshuttle/methods/windivert.py | 364 | except Exception: | CODE |
| MEDIUM | sshuttle/methods/windivert.py | 361 | def _target(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/server/test_server.py | 75 | def test_dnsproxy_dispose_closes_every_socket_it_made(): | CODE |
| LOW | tests/server/test_server.py | 92 | def test_udpproxy_dispose_closes_its_socket(): | CODE |
| LOW | tests/client/test_options.py | 123 | def test_convert_arg_line_to_args_skips_comments(): | CODE |
| LOW | tests/client/test_options.py | 129 | def test_parse_subnetport_host(mock_getaddrinfo): | CODE |
| LOW | tests/client/test_options.py | 148 | def test_parse_subnetport_host_with_port(mock_getaddrinfo): | CODE |
| LOW | tests/client/test_methods_tproxy.py | 9 | def test_get_supported_features(): | CODE |
| LOW | tests/client/test_ssnet.py | 18 | def test_close_later_closes_the_socket(): | CODE |
| LOW | tests/client/test_ssnet.py | 32 | def test_close_later_tolerates_none_and_double_close(): | CODE |
| LOW | tests/client/test_ssnet.py | 41 | def test_close_later_closes_inline_when_the_backlog_is_full(): | CODE |
| LOW | tests/client/test_ssnet.py | 62 | def test_handler_dispose_is_a_noop(): | CODE |
| LOW | tests/client/test_ssnet.py | 66 | def test_proxy_dispose_leaves_the_mux_alone(): | CODE |
| LOW | tests/client/test_firewall.py | 68 | def test_rewrite_etc_hosts_no_overwrite(mock_link, mock_rename, tmpdir): | STRING |
| LOW | tests/client/test_sudoers.py | 8 | def test_build_config_pythonpath_is_site_packages_parent(): | CODE |
| LOW | tests/client/test_sudoers.py | 46 | def test_build_config_contains_user_name_and_cmd_alias(): | CODE |
| LOW | tests/client/test_methods_pf.py | 11 | def test_get_supported_features(): | CODE |
| LOW | tests/client/test_methods_pf.py | 93 | def test_firewall_command_darwin(mock_pf_get_dev, mock_ioctl, mock_stdout): | CODE |
| LOW | tests/client/test_methods_pf.py | 116 | def test_firewall_command_freebsd(mock_pf_get_dev, mock_ioctl, mock_stdout): | CODE |
| LOW | tests/client/test_methods_pf.py | 139 | def test_firewall_command_openbsd(mock_pf_get_dev, mock_ioctl, mock_stdout): | CODE |
| LOW | tests/client/test_methods_pf.py | 174 | def test_setup_firewall_darwin(mock_pf_get_dev, mock_ioctl, mock_pfctl): | CODE |
| LOW | tests/client/test_methods_pf.py | 293 | def test_setup_firewall_freebsd(mock_pf_get_dev, mock_ioctl, mock_pfctl, | CODE |
| LOW | tests/client/test_methods_pf.py | 403 | def test_setup_firewall_openbsd(mock_pf_get_dev, mock_ioctl, mock_pfctl): | CODE |
| LOW | tests/client/test_listeners.py | 41 | def test_dual_wildcard_real_sockets(kind): | CODE |
| LOW | tests/client/test_listeners.py | 86 | def test_startup_port_bookkeeping(ports, dns, udp): | CODE |
| LOW | tests/client/test_methods_nat.py | 11 | def test_get_supported_features(): | CODE |
| LOW | tests/client/test_helpers.py | 120 | def test_resolvconf_nameservers(mock_open): | CODE |
| LOW | tests/client/test_helpers.py | 146 | def test_get_random_nameserver(mock_open): | STRING |
| LOW | tests/client/test_sdnotify.py | 9 | def test_notify_invalid_socket_path(mock_get): | CODE |
| LOW | tests/client/test_sdnotify.py | 15 | def test_notify_socket_not_there(mock_get): | CODE |
| LOW | sshuttle/firewall.py | 98 | def _setup_daemon_for_unix_like(): | CODE |
| LOW | sshuttle/firewall.py | 124 | def _setup_daemon_for_windows(): | CODE |
| LOW | sshuttle/methods/windivert.py | 295 | def _get_bind_address_for_port(self, port, family): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | docs/conf.py | 21 | # If extensions (or modules to document with autodoc) are in another directory, | COMMENT |
| LOW | docs/conf.py | 41 | # The suffix of source filenames. | COMMENT |
| LOW | docs/conf.py | 61 | version = '.'.join(release.split('.')[:2]) | COMMENT |
| LOW | docs/conf.py | 81 | # If true, '()' will be appended to :func: etc. cross-reference text. | COMMENT |
| LOW | docs/conf.py | 101 | COMMENT | |
| LOW | docs/conf.py | 121 | # html_short_title = None | COMMENT |
| LOW | docs/conf.py | 141 | COMMENT | |
| LOW | docs/conf.py | 161 | # html_use_index = True | COMMENT |
| LOW | docs/conf.py | 201 | # (source start file, target name, title, | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql.yml | 61 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | COMMENT |
| LOW | sshuttle/client.py | 361 | # Normally, READY will be the first text on the first | COMMENT |
| LOW | sshuttle/ssh.py | 181 | if python: | COMMENT |
| LOW | sshuttle/ssh.py | 201 | # hide the version that "python3 -V" might print (some | COMMENT |
| LOW | sshuttle/helpers.py | 81 | # | COMMENT |
| LOW | sshuttle/ssnet.py | 21 | # | COMMENT |
| LOW | sshuttle/ssnet.py | 261 | else: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sshuttle/server.py | 21 | CODE | |
| LOW | sshuttle/server.py | 298 | CODE | |
| LOW | sshuttle/hostwatch.py | 117 | CODE | |
| LOW | sshuttle/firewall.py | 200 | CODE | |
| LOW | sshuttle/client.py | 594 | CODE | |
| LOW | sshuttle/client.py | 811 | CODE | |
| LOW | sshuttle/cmdline.py | 17 | CODE | |
| LOW | sshuttle/ssh.py | 33 | CODE | |
| LOW | sshuttle/ssh.py | 124 | CODE | |
| LOW | sshuttle/helpers.py | 66 | CODE | |
| LOW | sshuttle/ssnet.py | 228 | CODE | |
| LOW | sshuttle/ssnet.py | 490 | CODE | |
| LOW | sshuttle/methods/tproxy.py | 20 | CODE | |
| LOW | sshuttle/methods/windivert.py | 404 | CODE | |
| LOW | sshuttle/methods/windivert.py | 485 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | sshuttle/methods/nft.py | 56 | # Redirect DNS traffic as requested. This includes routing traffic | COMMENT |
| HIGH | sshuttle/methods/nat.py | 53 | # Redirect DNS traffic as requested. This includes routing traffic | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | sshuttle/server.py | 70 | mask = _maskbits(maskw) # returns 32 if maskw is null | CODE |
| HIGH | sshuttle/hostwatch.py | 167 | p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, stderr=null, | CODE |
| HIGH | sshuttle/ssh.py | 223 | pycmd = ("P=python3; $P -V 2>%s || P=python; " | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sshuttle/server.py | 370 | # different platforms we can not just set the socket family | COMMENT |
| MEDIUM | sshuttle/client.py | 229 | if is_admin_user(): # No need to elevate privileges | CODE |
| MEDIUM | sshuttle/client.py | 236 | # XXX: Attempt to elevate privilege using 'runas' in windows seems not working. | COMMENT |
| MEDIUM | sshuttle/client.py | 355 | # entered the wrong password to elevate privileges. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 7 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | sshuttle/client.py | 87 | # Create a daemon process with a new session id. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sshuttle/hostwatch.py | 240 | # Check if this jobs needs to run. | COMMENT |
| LOW | sshuttle/client.py | 351 | rv = self.p.poll() # Check if process is still running | CODE |