Repository Analysis

amnezia-vpn/amnezia-client

Amnezia VPN Client (Desktop+Mobile)

3.0 Likely human-written View on GitHub
3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
12,119
Stars
C++
Language
153,702
Lines of Code
708
Files
331
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 68LOW 263

Pattern Findings

331 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block254 hits · 228 pts
SeverityFileLineSnippet
LOWdeploy/data/linux/update-resolv-conf.sh1#!/usr/bin/env bash
LOWcommon/logger/logger.cpp1#include "logger.h"
LOWrecipes/openvpn/include/openssl/applink.c21#define APPLINK_FOPEN 11 /* solely for completeness */
LOWipc/ipcserver.h1#ifndef IPCSERVER_H
LOWipc/ipcserver.cpp1#include "ipcserver.h"
LOWservice/server/helper_route_mac.c61#include <sys/cdefs.h>
LOWservice/server/helper_route_mac.c81#include <netdb.h>
LOWservice/server/helper_route_mac.c861 return;
LOWservice/server/xray.cpp1#include "xray.h"
LOWservice/server/xray.cpp21 #include <netinet/in.h>
LOWservice/server/router_win.h1#ifndef ROUTERWIN_H
LOWservice/server/router.cpp1#include "router.h"
LOWservice/server/localserver.h1#ifndef LOCALSERVER_H
LOWservice/server/router_linux.cpp1#include "router_linux.h"
LOWservice/server/killswitch.cpp1#include "killswitch.h"
LOWservice/server/localserver.cpp1#include "localserver.h"
LOWservice/src/qtservice.cpp41#include "qtservice.h"
LOWservice/src/qtservice_unix.cpp41#include "qtservice.h"
LOWservice/src/qtservice.h41#ifndef QTSERVICE_H
LOWservice/src/qtservice_win.cpp41#include "qtservice.h"
LOWclient/vpnConnection.cpp1#include "vpnConnection.h"
LOWclient/amneziaApplication.h1#ifndef AMNEZIA_APPLICATION_H
LOWclient/secureQSettings.cpp1#include "secureQSettings.h"
LOWclient/amneziaApplication.cpp1#include "amneziaApplication.h"
LOWclient/amneziaApplication.cpp161#else
LOWclient/vpnConnection.h1#ifndef VPNCONNECTION_H
LOWclient/main.cpp1#include <QDebug>
LOWclient/ui/utils/macosUtil.mm1#include "macosUtil.h"
LOWclient/ui/utils/systemTrayNotificationHandler.cpp161// if (engine->window()->isVisible()) {
LOWclient/ui/utils/qAutoStart.h1// The MIT License (MIT)
LOWclient/ui/utils/qAutoStart.cpp1// The MIT License (MIT)
LOWclient/ui/utils/qAutoStart.cpp21// THE SOFTWARE.
LOWclient/ui/utils/macosUtil.h1#ifndef OSXUTIL_H
LOWclient/ui/models/protocolsModel.cpp1#include "protocolsModel.h"
LOWclient/ui/models/newsModel.cpp1#include "ui/models/newsModel.h"
LOWclient/ui/models/serversModel.cpp1#include "serversModel.h"
LOWclient/ui/models/services/mtProxyConfigModel.cpp1#include "mtProxyConfigModel.h"
LOWclient/ui/controllers/systemController.cpp1#include "systemController.h"
LOWclient/ui/controllers/importUiController.cpp1#include "importUiController.h"
LOWclient/ui/controllers/settingsUiController.cpp1#include "settingsUiController.h"
LOWclient/ui/controllers/allowedDnsUiController.cpp1#include "allowedDnsUiController.h"
LOWclient/ui/controllers/serversUiController.h1#ifndef SERVERSUICONTROLLER_H
LOWclient/ui/controllers/selfhosted/installUiController.h1#ifndef INSTALLUICONTROLLER_H
LOWclient/ui/controllers/selfhosted/installUiController.h21#include "ui/models/protocols/wireguardConfigModel.h"
LOW…ient/ui/controllers/selfhosted/installUiController.cpp1#include "installUiController.h"
LOW…ient/ui/controllers/selfhosted/installUiController.cpp21#include "ui/models/protocols/awgConfigModel.h"
LOWclient/ui/controllers/qml/pageController.cpp1#include "pageController.h"
LOWclient/ui/controllers/api/subscriptionUiController.cpp1#include "subscriptionUiController.h"
LOWclient/ui/controllers/api/subscriptionUiController.h1#ifndef SUBSCRIPTIONUICONTROLLER_H
LOWclient/mozilla/localsocketcontroller.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/mozilla/networkwatcher.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/mozilla/networkwatcher.cpp21# include "platforms/linux/linuxnetworkwatcher.h"
LOWclient/mozilla/pingsenderfactory.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/mozilla/dnspingsender.cpp21 quint16 flags;
LOWclient/platforms/macos/macospingsender.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/platforms/macos/daemon/macosroutemonitor.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/platforms/macos/daemon/macosdaemon.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/platforms/macos/daemon/wireguardutilsmacos.cpp1/* This Source Code Form is subject to the terms of the Mozilla Public
LOWclient/platforms/macos/daemon/macosfirewall.h1// Copyright (c) 2023 Private Internet Access, Inc.
LOWclient/platforms/macos/daemon/macosfirewall.h21//
194 more matches not shown…
Decorative Section Separators68 hits · 225 pts
SeverityFileLineSnippet
MEDIUMdeploy/data/macos/post_uninstall.sh101# -----------------------------------------------------------
MEDIUM.github/workflows/deploy.yml63# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml137# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml170# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml263# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml306# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml407# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml450# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml543# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml586# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml676# ------------------------------------------------------
MEDIUM.github/workflows/deploy.yml730# ------------------------------------------------------
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp42 // ── Main ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp54 // ── Security ──────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp62 // ── XHTTP ─────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp108 // ── mKCP ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp122 // ── xPadding ──────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp138 // ── xmux ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp189 // ── Main ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp196 // ── Security ──────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp201 // ── XHTTP ─────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp226 // ── mKCP ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp234 // ── xPadding ──────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp243 // ── xmux ──────────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h20 // ── Main page ─────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h27 // ── Security ──────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h32 // ── Transport — XHTTP ─────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h59 // ── Transport — mKCP ──────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h67 // ── xPadding ──────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h76 // ── xmux ──────────────────────────────────────────────────────
MEDIUMclient/ui/models/protocols/xrayConfigModel.h98 // ── Static option lists (for QML DropDown models) ─────────────────
MEDIUMclient/server_scripts/check_server.sh34# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh36# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh58# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh60# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh147# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh149# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh164# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh166# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh191# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh193# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh258# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh260# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh300# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh302# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh318# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh320# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh373# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh375# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh428# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh430# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh509# ------------------------------------------------------------------------------
MEDIUMclient/server_scripts/check_server.sh511# ------------------------------------------------------------------------------
MEDIUMclient/core/utils/constants/configKeys.h130 // ── Xray-specific keys ────────────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h12// ── xPadding ─────────────────────────────────────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h26// ── xmux ─────────────────────────────────────────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h46// ── XHTTP transport ───────────────────────────────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h82// ── mKCP transport ────────────────────────────────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h95// ── Server config (settings editable by user) ─────────────────────────────────
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h120// ── Client config (generated, not edited by user) ─────────────────────────────
8 more matches not shown…
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippet
LOWclient/platforms/windows/daemon/windowsfirewall.cpp129 // Step 1: Start Transaction
LOWclient/platforms/windows/daemon/windowsfirewall.cpp137 // Step 3: Add Sublayer
LOWclient/platforms/windows/daemon/windowsfirewall.cpp151 // Step 4: Commit!
LOWclient/platforms/windows/daemon/windowssplittunnel.cpp403 // Step 1: Calculate how much size the buffer will need
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWrecipes/openssl/conanfile.py590 def _create_cmake_module_variables(self, module_file):
LOWclient/android/src/org/amnezia/vpn/AmneziaActivity.kt1193private class PermissionRequestHandler(
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWrecipes/tun2socks/conanfile.py6
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWrecipes/openssl/conanfile.py513
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippet
LOWclient/server_scripts/check_server.sh221# Check if password is required for sudo