Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS, Arch Linux and more
This report presents the forensic synthetic code analysis of angristan/openvpn-install, a Shell project with 16,031 GitHub stars. SynthScan v2.0 examined 7,951 lines of code across 18 source files, recording 114 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 34.3 places this repository in the Strong 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 114 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 |
|---|---|---|---|---|
| MEDIUM⚡ | openvpn-install.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 17 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 165 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 167 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 170 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 172 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 405 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 407 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 752 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 754 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2085 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2087 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2107 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2109 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2138 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2140 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2183 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2185 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2229 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2231 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2258 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | openvpn-install.sh | 2260 | # ========================================================================== | COMMENT |
| MEDIUM | openvpn-install.sh | 456 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 458 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 495 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 497 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 1615 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 1617 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 4573 | # ============================================================================= | COMMENT |
| MEDIUM | openvpn-install.sh | 4575 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 401 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 403 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 409 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 411 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 591 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 593 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 599 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 601 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 805 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 807 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 1034 | # ===================================================== | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 1036 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 200 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 202 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 233 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 235 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 274 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 276 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 332 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 334 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 360 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 362 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 484 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 486 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 838 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 840 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 927 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 929 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 1101 | # ===================================================== | COMMENT |
| MEDIUM | test/server-entrypoint.sh | 1103 | # ===================================================== | COMMENT |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | openvpn-install.sh | 19 | # Set LOG_FILE to customize log location (default: openvpn-install.log in current dir) | COMMENT |
| LOW⚡ | openvpn-install.sh | 409 | # Check if OpenVPN is installed | COMMENT |
| LOW | openvpn-install.sh | 618 | # Check if client name is valid (non-fatal, returns true/false) | COMMENT |
| LOW | openvpn-install.sh | 1093 | # Check if next arg is a value or another flag | COMMENT |
| LOW | openvpn-install.sh | 1125 | # Check if already installed | COMMENT |
| LOW | openvpn-install.sh | 1241 | # Check if next arg is a value or another flag | COMMENT |
| LOW | openvpn-install.sh | 1569 | # Check if user just wants help (don't require root for help) | COMMENT |
| LOW | openvpn-install.sh | 1709 | # Check if running kernel's modules are available | COMMENT |
| LOW | openvpn-install.sh | 1774 | # Check if OpenVPN version is at least the specified version | COMMENT |
| LOW | openvpn-install.sh | 1797 | # Check if kernel version is at least the specified version | COMMENT |
| LOW | openvpn-install.sh | 1815 | # Check if Data Channel Offload (DCO) is available | COMMENT |
| LOW | openvpn-install.sh | 2674 | # Check if configuration is DCO-compatible (udp or udp6) | COMMENT |
| LOW | openvpn-install.sh | 3408 | # Check if client name corresponds to an existing system user with a home directory | COMMENT |
| LOW | openvpn-install.sh | 3760 | # Check if client is in the valid fingerprints list | COMMENT |
| LOW | openvpn-install.sh | 3977 | # Check if client already exists | COMMENT |
| LOW | test/validate-output.sh | 43 | # Check if line starts with ANSI escape code (colored output from log functions) | COMMENT |
| LOW | test/validate-output.sh | 48 | # Check if line starts with our log prefixes (non-TTY mode) | COMMENT |
| LOW | .github/workflows/docker-test.yml | 198 | # Check if OpenVPN server is running and client config exists | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | openvpn-install.sh | 2684 | # Create the server directory (OpenVPN 2.4+ directory structure) | COMMENT |
| MEDIUM | openvpn-install.sh | 2751 | # Create the PKI, set up the CA, the DH params and the server certificate | COMMENT |
| MEDIUM | openvpn-install.sh | 4044 | # Create the block if this is the first client | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 811 | # Create a new client for revocation testing | COMMENT |
| MEDIUM⚡ | test/server-entrypoint.sh | 1040 | # Create a new certificate with the same name as the revoked one | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | openvpn-install.sh | 2086 | # Step 1: Detect server IP addresses | COMMENT |
| LOW⚡ | openvpn-install.sh | 2108 | # Step 2: Endpoint type selection | COMMENT |
| LOW⚡ | openvpn-install.sh | 2139 | # Step 3: Endpoint address (handle NAT for IPv4, direct for IPv6) | COMMENT |
| LOW⚡ | openvpn-install.sh | 2184 | # Step 4: Client IP versions | COMMENT |
| LOW⚡ | openvpn-install.sh | 2230 | # Step 5: IPv4 subnet (prompt only if IPv4 enabled, but always set for leak prevention) | COMMENT |
| LOW⚡ | openvpn-install.sh | 2259 | # Step 6: IPv6 subnet (if IPv6 enabled for clients) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | openvpn-install.sh | 2086 | # Step 1: Detect server IP addresses | COMMENT |
| LOW⚡ | openvpn-install.sh | 2108 | # Step 2: Endpoint type selection | COMMENT |
| LOW⚡ | openvpn-install.sh | 2139 | # Step 3: Endpoint address (handle NAT for IPv4, direct for IPv6) | COMMENT |
| LOW⚡ | openvpn-install.sh | 2184 | # Step 4: Client IP versions | COMMENT |
| LOW⚡ | openvpn-install.sh | 2230 | # Step 5: IPv4 subnet (prompt only if IPv4 enabled, but always set for leak prevention) | COMMENT |
| LOW⚡ | openvpn-install.sh | 2259 | # Step 6: IPv6 subnet (if IPv6 enabled for clients) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | openvpn-install.sh | 764 | # If already set (non-interactive mode), just return | COMMENT |
| LOW | openvpn-install.sh | 802 | # If already set (non-interactive mode), just return | COMMENT |
| LOW | openvpn-install.sh | 838 | # If already set, just return | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openvpn-install.sh | 1704 | function checkArchPendingKernelUpgrade() { | CODE |
| LOW | openvpn-install.sh | 3417 | function setClientConfigPermissions() { | CODE |
| LOW | openvpn-install.sh | 3579 | function getClientsFromFingerprints() { | CODE |
| LOW | openvpn-install.sh | 3592 | function clientExistsInFingerprints() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | openvpn-install.sh | 1 | #!/bin/bash | COMMENT |
| LOW | test/validate-output.sh | 1 | #!/bin/bash | COMMENT |