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 presents the forensic synthetic code analysis of sshuttle/sshuttle, a Python project with 13,458 GitHub stars. SynthScan v2.0 examined 9,000 lines of code across 50 source files, recording 86 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 14.0 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 86 distinct pattern matches across 9 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 | sshuttle/server.py | 154 | 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/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/methods/windivert.py | 364 | except Exception: | CODE |
| MEDIUM | sshuttle/methods/windivert.py | 361 | def _target(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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_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_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/ssh.py | 141 | pyscript = pyscript.replace(c, '`' + c) | COMMENT |
| LOW | sshuttle/ssh.py | 161 | # below). | COMMENT |
| LOW | sshuttle/helpers.py | 81 | # | COMMENT |
| 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 |
|---|---|---|---|---|
| LOW | sshuttle/server.py | 20 | CODE | |
| LOW | sshuttle/server.py | 288 | CODE | |
| LOW | sshuttle/hostwatch.py | 116 | CODE | |
| LOW | sshuttle/firewall.py | 200 | CODE | |
| LOW | sshuttle/client.py | 591 | CODE | |
| LOW | sshuttle/client.py | 808 | CODE | |
| LOW | sshuttle/cmdline.py | 17 | CODE | |
| LOW | sshuttle/ssh.py | 87 | CODE | |
| LOW | sshuttle/helpers.py | 66 | CODE | |
| LOW | sshuttle/ssnet.py | 146 | CODE | |
| LOW | sshuttle/ssnet.py | 401 | 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/server.py | 69 | mask = _maskbits(maskw) # returns 32 if maskw is null | CODE |
| HIGH | sshuttle/hostwatch.py | 166 | p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, stderr=null, | CODE |
| HIGH | sshuttle/ssh.py | 186 | pycmd = ("P=python3; $P -V 2>%s || P=python; " | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sshuttle/server.py | 360 | # different platforms we can not just set the socket family | COMMENT |
| MEDIUM | sshuttle/client.py | 226 | if is_admin_user(): # No need to elevate privileges | CODE |
| MEDIUM | sshuttle/client.py | 233 | # XXX: Attempt to elevate privilege using 'runas' in windows seems not working. | COMMENT |
| MEDIUM | sshuttle/client.py | 352 | # 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 | 239 | # Check if this jobs needs to run. | COMMENT |
| LOW | sshuttle/client.py | 348 | rv = self.p.poll() # Check if process is still running | CODE |