Amnezia VPN Client (Desktop+Mobile)
This report presents the forensic synthetic code analysis of amnezia-vpn/amnezia-client, a C++ project with 12,912 GitHub stars. SynthScan v2.0 examined 155,522 lines of code across 719 source files, recording 332 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.0 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 332 distinct pattern matches across 7 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 | deploy/data/linux/update-resolv-conf.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | common/crypto/cryptoUtils.h | 1 | #ifndef CRYPTOUTILS_H | COMMENT |
| LOW | common/logger/logger.cpp | 1 | #include "logger.h" | COMMENT |
| LOW | recipes/openvpn/include/openssl/applink.c | 21 | #define APPLINK_FOPEN 11 /* solely for completeness */ | COMMENT |
| LOW | ipc/ipcserver.h | 1 | #ifndef IPCSERVER_H | COMMENT |
| LOW | ipc/ipcserver.cpp | 1 | #include "ipcserver.h" | COMMENT |
| LOW | service/server/helper_route_mac.c | 61 | #include <sys/cdefs.h> | COMMENT |
| LOW | service/server/helper_route_mac.c | 81 | #include <netdb.h> | COMMENT |
| LOW | service/server/helper_route_mac.c | 861 | return; | COMMENT |
| LOW | service/server/xray.cpp | 1 | #include "xray.h" | COMMENT |
| LOW | service/server/xray.cpp | 21 | #include <netinet/in.h> | COMMENT |
| LOW | service/server/router_win.h | 1 | #ifndef ROUTERWIN_H | COMMENT |
| LOW | service/server/router.cpp | 1 | #include "router.h" | COMMENT |
| LOW | service/server/localserver.h | 1 | #ifndef LOCALSERVER_H | COMMENT |
| LOW | service/server/router_linux.cpp | 1 | #include "router_linux.h" | COMMENT |
| LOW | service/server/killswitch.cpp | 1 | #include "killswitch.h" | COMMENT |
| LOW | service/server/localserver.cpp | 1 | #include "localserver.h" | COMMENT |
| LOW | service/src/qtservice.cpp | 41 | #include "qtservice.h" | COMMENT |
| LOW | service/src/qtservice_unix.cpp | 41 | #include "qtservice.h" | COMMENT |
| LOW | service/src/qtservice.h | 41 | #ifndef QTSERVICE_H | COMMENT |
| LOW | service/src/qtservice_win.cpp | 41 | #include "qtservice.h" | COMMENT |
| LOW | client/vpnConnection.cpp | 1 | #include "vpnConnection.h" | COMMENT |
| LOW | client/amneziaApplication.h | 1 | #ifndef AMNEZIA_APPLICATION_H | COMMENT |
| LOW | client/secureQSettings.cpp | 1 | #include "secureQSettings.h" | COMMENT |
| LOW | client/amneziaApplication.cpp | 1 | #include "amneziaApplication.h" | COMMENT |
| LOW | client/amneziaApplication.cpp | 161 | m_coreController->setQmlRoot(); | COMMENT |
| LOW | client/vpnConnection.h | 1 | #ifndef VPNCONNECTION_H | COMMENT |
| LOW | client/main.cpp | 1 | #include <QDebug> | COMMENT |
| LOW | client/ui/utils/macosUtil.mm | 1 | #include "macosUtil.h" | COMMENT |
| LOW | client/ui/utils/systemTrayNotificationHandler.cpp | 161 | // if (engine->window()->isVisible()) { | COMMENT |
| LOW | client/ui/utils/qAutoStart.h | 1 | // The MIT License (MIT) | COMMENT |
| LOW | client/ui/utils/qAutoStart.cpp | 1 | // The MIT License (MIT) | COMMENT |
| LOW | client/ui/utils/qAutoStart.cpp | 21 | // THE SOFTWARE. | COMMENT |
| LOW | client/ui/utils/macosUtil.h | 1 | #ifndef OSXUTIL_H | COMMENT |
| LOW | client/ui/models/protocolsModel.cpp | 1 | #include "protocolsModel.h" | COMMENT |
| LOW | client/ui/models/newsModel.cpp | 1 | #include "ui/models/newsModel.h" | COMMENT |
| LOW | client/ui/models/serversModel.cpp | 1 | #include "serversModel.h" | COMMENT |
| LOW | client/ui/models/services/mtProxyConfigModel.cpp | 1 | #include "mtProxyConfigModel.h" | COMMENT |
| LOW | client/ui/controllers/systemController.cpp | 1 | #include "systemController.h" | COMMENT |
| LOW | client/ui/controllers/importUiController.cpp | 1 | #include "importUiController.h" | COMMENT |
| LOW | client/ui/controllers/settingsUiController.cpp | 1 | #include "settingsUiController.h" | COMMENT |
| LOW | client/ui/controllers/allowedDnsUiController.cpp | 1 | #include "allowedDnsUiController.h" | COMMENT |
| LOW | client/ui/controllers/serversUiController.h | 1 | #ifndef SERVERSUICONTROLLER_H | COMMENT |
| LOW | client/ui/controllers/selfhosted/installUiController.h | 1 | #ifndef INSTALLUICONTROLLER_H | COMMENT |
| LOW | client/ui/controllers/selfhosted/installUiController.h | 21 | #include "ui/models/protocols/wireguardConfigModel.h" | COMMENT |
| LOW | …ient/ui/controllers/selfhosted/installUiController.cpp | 1 | #include "installUiController.h" | COMMENT |
| LOW | …ient/ui/controllers/selfhosted/installUiController.cpp | 21 | #include "core/utils/constants/protocolConstants.h" | COMMENT |
| LOW | client/ui/controllers/qml/pageController.cpp | 1 | #include "pageController.h" | COMMENT |
| LOW | client/ui/controllers/api/subscriptionUiController.cpp | 1 | #include "subscriptionUiController.h" | COMMENT |
| LOW | client/ui/controllers/api/subscriptionUiController.h | 1 | #ifndef SUBSCRIPTIONUICONTROLLER_H | COMMENT |
| LOW | client/mozilla/localsocketcontroller.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/mozilla/networkwatcher.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/mozilla/networkwatcher.cpp | 21 | # include "platforms/linux/linuxnetworkwatcher.h" | COMMENT |
| LOW | client/mozilla/pingsenderfactory.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/mozilla/dnspingsender.cpp | 21 | quint16 flags; | COMMENT |
| LOW | client/platforms/macos/macospingsender.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/platforms/macos/daemon/macosroutemonitor.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/platforms/macos/daemon/macosdaemon.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/platforms/macos/daemon/wireguardutilsmacos.cpp | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public | COMMENT |
| LOW | client/platforms/macos/daemon/macosfirewall.h | 1 | // Copyright (c) 2023 Private Internet Access, Inc. | COMMENT |
| 196 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | deploy/data/macos/post_uninstall.sh | 101 | # ----------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 63 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 137 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 170 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 263 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 306 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 407 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 454 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 547 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 594 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 684 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/deploy.yml | 738 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 46 | // ── Main ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 58 | // ── Security ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 66 | // ── XHTTP ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 112 | // ── mKCP ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 126 | // ── xPadding ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.cpp | 142 | // ── xmux ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 193 | // ── Main ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 200 | // ── Security ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 205 | // ── XHTTP ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 230 | // ── mKCP ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 238 | // ── xPadding ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.cpp | 247 | // ── xmux ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 20 | // ── Main page ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 27 | // ── Security ────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 32 | // ── Transport — XHTTP ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 59 | // ── Transport — mKCP ────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 67 | // ── xPadding ────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | client/ui/models/protocols/xrayConfigModel.h | 76 | // ── xmux ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/ui/models/protocols/xrayConfigModel.h | 98 | // ── Static option lists (for QML DropDown models) ───────────────── | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 34 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 36 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 58 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 60 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 147 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 149 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 164 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 166 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 191 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 193 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 258 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 260 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 300 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 302 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 318 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 320 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 373 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 375 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 428 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 430 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 509 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/server_scripts/check_server.sh | 511 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | client/core/utils/constants/configKeys.h | 137 | // ── Xray-specific keys ──────────────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 12 | // ── xPadding ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 26 | // ── xmux ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 46 | // ── XHTTP transport ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 82 | // ── mKCP transport ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 95 | // ── Server config (settings editable by user) ───────────────────────────────── | COMMENT |
| MEDIUM | client/core/models/protocols/xrayProtocolConfig.h | 120 | // ── Client config (generated, not edited by user) ───────────────────────────── | COMMENT |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | recipes/awg-go/conanfile.py | 80 | CODE | |
| LOW | recipes/tun2socks/conanfile.py | 99 | CODE | |
| LOW | recipes/openssl/conanfile.py | 513 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | recipes/openssl/conanfile.py | 590 | def _create_cmake_module_variables(self, module_file): | CODE |
| LOW | client/android/src/org/amnezia/vpn/AmneziaActivity.kt | 1207 | private class PermissionRequestHandler( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/platforms/windows/daemon/windowssplittunnel.cpp | 430 | // Step 1: Calculate how much size the buffer will need | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/platforms/windows/daemon/windowssplittunnel.cpp | 430 | // Step 1: Calculate how much size the buffer will need | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/server_scripts/check_server.sh | 221 | # Check if password is required for sudo | COMMENT |