dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols.
This report presents the forensic synthetic code analysis of DNSCrypt/dnscrypt-proxy, a Go project with 13,471 GitHub stars. SynthScan v2.0 examined 21,312 lines of code across 120 source files, recording 60 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 2.8 places this repository in the Likely human-written 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 60 distinct pattern matches across 8 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 | dnscrypt-proxy/plugin_firefox.go | 1 | // Firefox DoH Canary Domain Plugin | COMMENT |
| LOW | dnscrypt-proxy/example-blocked-ips.txt | 1 | ############################## | COMMENT |
| LOW | dnscrypt-proxy/example-cloaking-rules.txt | 41 | # names for the same IP are supported | COMMENT |
| LOW | dnscrypt-proxy/example-blocked-names.txt | 1 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 1 | ############################################## | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 21 | ## | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 101 | ## only increase latency. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 121 | ## solution is to reach out to these operators and encourage them to | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 161 | ## These networks don't have to match your actual networks. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 181 | ## 'p2': Randomly choose 1 of the fastest 2 servers by latency. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 201 | ## - At 125 connections (50% load): timeout remains ~4765ms (95.3%) | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 281 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 301 | ## Changing this setting is generally not recommended, but it may | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 321 | ## These are normal, non-encrypted DNS resolvers, that will be only used | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 341 | ## Other popular options include 8.8.8.8, 9.9.9.9 and 1.1.1.1. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 361 | ## (*) this is incompatible with systemd sockets. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 381 | ## when the system starts. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 401 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 441 | # Forwarding # | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 541 | ## Certificate file and key - Note that the certificate has to be trusted. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 561 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 601 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 621 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 681 | ## Optional log format: tsv or ltsv (default: tsv) | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 701 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 721 | ## *.youtube.* @time-to-sleep | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 741 | # wed = [{after='9:00', before='18:00'}] | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 761 | ## If the `urls` property is missing, cache files and valid signatures | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 801 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 821 | # prefix = 'quad9-' | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 841 | ############################################################################### | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 881 | ## 'creds' maps servers to certificates, and supports multiple entries. | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 901 | ## A relay can be specified as a DNS Stamp (either a relay stamp, or a | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 921 | ## Manual selection is always recommended over automatic selection, so that you can | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 941 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 961 | ## | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 981 | [ip_encryption] | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 1021 | ## Optional username and password for basic authentication | COMMENT |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 1041 | COMMENT | |
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 1061 | ############################################################################### | COMMENT |
| LOW | dnscrypt-proxy/example-allowed-ips.txt | 1 | ############################## | COMMENT |
| LOW | dnscrypt-proxy/example-allowed-names.txt | 1 | COMMENT | |
| LOW | dnscrypt-proxy/example-captive-portals.txt | 1 | ########################################### | COMMENT |
| LOW | dnscrypt-proxy/example-forwarding-rules.txt | 1 | ################################## | COMMENT |
| LOW | dnscrypt-proxy/example-forwarding-rules.txt | 21 | ## If this happens, set `block_ipv6` to `false` in the main config file. | COMMENT |
| LOW | dnscrypt-proxy/example-forwarding-rules.txt | 41 | COMMENT | |
| LOW | …generate-domains-blocklist/domains-time-restricted.txt | 1 | ## Rules to be applied at specific times | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | dnscrypt-proxy/monitoring_ui.go | 1218 | // In this implementation, we're embedding everything in the HTML | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 125 | except Exception as err: | CODE |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 199 | except Exception as e: | CODE |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 247 | except Exception as e: | CODE |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 305 | except Exception as e: | CODE |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 314 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | dnscrypt-proxy/example-dnscrypt-proxy.toml | 228 | ## This file is different from other log files, and will not be | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 141 | CODE | |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 209 | CODE | |
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 255 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dnscrypt-proxy/example-dnscrypt-proxy.toml | 117 | ## WARNING: This setting is disabled by default because it will make | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 255 | def blocklists_from_config_file( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nerate-domains-blocklist/generate-domains-blocklist.py | 5 | CODE |