Repository Analysis

DNSCrypt/dnscrypt-proxy

dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols.

2.8 Likely human-written View on GitHub

Analysis Overview

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).

2.8
Adjusted Score
2.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
13.5K
Stars
Go
Language
21.3K
Lines of Code
120
Files
60
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 1MEDIUM 1LOW 58

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block47 hits · 38 pts
SeverityFileLineSnippetContext
LOWdnscrypt-proxy/plugin_firefox.go1// Firefox DoH Canary Domain PluginCOMMENT
LOWdnscrypt-proxy/example-blocked-ips.txt1##############################COMMENT
LOWdnscrypt-proxy/example-cloaking-rules.txt41# names for the same IP are supported COMMENT
LOWdnscrypt-proxy/example-blocked-names.txt1COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml1##############################################COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml21##COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml101## only increase latency.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml121## solution is to reach out to these operators and encourage them toCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml161## These networks don't have to match your actual networks.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml181## 'p2': Randomly choose 1 of the fastest 2 servers by latency.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml201## - At 125 connections (50% load): timeout remains ~4765ms (95.3%)COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml281COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml301## Changing this setting is generally not recommended, but it mayCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml321## These are normal, non-encrypted DNS resolvers, that will be only usedCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml341## Other popular options include 8.8.8.8, 9.9.9.9 and 1.1.1.1.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml361## (*) this is incompatible with systemd sockets.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml381## when the system starts.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml401COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml441# Forwarding #COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml541## Certificate file and key - Note that the certificate has to be trusted.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml561COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml601COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml621COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml681## Optional log format: tsv or ltsv (default: tsv)COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml701COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml721## *.youtube.* @time-to-sleepCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml741# wed = [{after='9:00', before='18:00'}]COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml761## If the `urls` property is missing, cache files and valid signaturesCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml801COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml821# prefix = 'quad9-'COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml841###############################################################################COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml881## 'creds' maps servers to certificates, and supports multiple entries.COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml901## A relay can be specified as a DNS Stamp (either a relay stamp, or aCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml921## Manual selection is always recommended over automatic selection, so that you canCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml941COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml961##COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml981[ip_encryption]COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml1021## Optional username and password for basic authenticationCOMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml1041COMMENT
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml1061###############################################################################COMMENT
LOWdnscrypt-proxy/example-allowed-ips.txt1##############################COMMENT
LOWdnscrypt-proxy/example-allowed-names.txt1COMMENT
LOWdnscrypt-proxy/example-captive-portals.txt1###########################################COMMENT
LOWdnscrypt-proxy/example-forwarding-rules.txt1##################################COMMENT
LOWdnscrypt-proxy/example-forwarding-rules.txt21## If this happens, set `block_ipv6` to `false` in the main config file.COMMENT
LOWdnscrypt-proxy/example-forwarding-rules.txt41COMMENT
LOW…generate-domains-blocklist/domains-time-restricted.txt1## Rules to be applied at specific timesCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdnscrypt-proxy/monitoring_ui.go1218 // In this implementation, we're embedding everything in the HTMLCOMMENT
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…nerate-domains-blocklist/generate-domains-blocklist.py125 except Exception as err:CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py199 except Exception as e:CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py247 except Exception as e:CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py305 except Exception as e:CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py314 except Exception as e:CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdnscrypt-proxy/example-dnscrypt-proxy.toml228## This file is different from other log files, and will not beCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…nerate-domains-blocklist/generate-domains-blocklist.py141CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py209CODE
LOW…nerate-domains-blocklist/generate-domains-blocklist.py255CODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdnscrypt-proxy/example-dnscrypt-proxy.toml117## WARNING: This setting is disabled by default because it will makeCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…nerate-domains-blocklist/generate-domains-blocklist.py255def blocklists_from_config_file(CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…nerate-domains-blocklist/generate-domains-blocklist.py5CODE