v2ray-rs
The package installs setuid binaries and modifies system groups for legitimate TUN device access in a proxy tool, which is expected behavior for its functionality and not inherently malicious.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package installs setuid binaries and modifies system groups for legitimate TUN device access in a proxy tool, which is expected behavior for its functionality and not inherently malicious.
1 higher static finding superseded - not the current verdict (shown for transparency)
privileged_install
The package grants elevated privileges or installs an update path outside pacman: a /etc/sudoers.d rule (often passwordless), a setuid/setgid binary, or a self-update script/service that can fetch and run future code with no checksum verification. The initial install may be verified, but the ongoing privilege + update surface is a real supply-chain / privilege-escalation risk.
-
.install:15
chmod 4750 /usr/bin/v2ray-rs-run 2>/dev/null || true
PKGBUILD
pkgname=v2ray-rs
pkgver=0.18.0
pkgrel=1
pkgdesc="Linux desktop GUI for v2ray/xray/sing-box proxy management"
arch=('x86_64')
url="https://github.com/victorzhuk/v2ray-rs"
license=('Apache-2.0')
depends=('gtk4' 'libadwaita' 'dbus' 'libcap')
makedepends=('rust' 'cargo')
optdepends=(
'v2ray: V2Ray proxy backend'
'xray: Xray proxy backend'
'sing-box: sing-box proxy backend'
'polkit: one-time TUN privilege grant via pkexec'
)
install=v2ray-rs.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('45636b6319002f82869973acab1e162bb6e3330e8c53b662e33c43418dc80a3f')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release -p v2ray-rs-ui -p v2ray-rs-netctl -p v2ray-rs-run
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/v2ray-rs-ui" "$pkgdir/usr/bin/v2ray-rs"
# Privileged TUN helpers. The install hook creates the `v2ray-rs` group,
# restricts these to it (netctl 0750 + cap_net_admin, run 4750 setuid), and
# creates the bypass user. Modes here are the pre-hook defaults.
install -Dm755 "target/release/v2ray-rs-netctl" "$pkgdir/usr/bin/v2ray-rs-netctl"
install -Dm4755 "target/release/v2ray-rs-run" "$pkgdir/usr/bin/v2ray-rs-run"
install_icon "assets/v2ray-rs.svg" \
"crates/ui/icons/hicolor/scalable/apps/com.github.v2ray-rs.svg" \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.v2ray-rs.svg"
install_optional "assets/v2ray-rs.png" \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/com.github.v2ray-rs.png"
install_icon "crates/ui/icons/hicolor/symbolic/apps/com.github.v2ray-rs-symbolic.svg" \
"assets/v2ray-rs-symbolic.svg" \
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/com.github.v2ray-rs-symbolic.svg"
install_icon "assets/com.github.v2ray-rs.desktop" \
"crates/ui/assets/com.github.v2ray-rs.desktop" \
"$pkgdir/usr/share/applications/com.github.v2ray-rs.desktop"
local lang
for lang in en_US ru_RU; do
install -Dm644 "locale/$lang/LC_MESSAGES/v2ray-rs.mo" \
"$pkgdir/usr/share/locale/$lang/LC_MESSAGES/v2ray-rs.mo"
done
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
install_icon() {
local primary=$1
local fallback=$2
local dest=$3
if [[ -f "$primary" ]]; then
install -Dm644 "$primary" "$dest"
return
fi
if [[ -f "$fallback" ]]; then
install -Dm644 "$fallback" "$dest"
return
fi
echo "Missing icon asset: $primary or $fallback" >&2
return 1
}
install_optional() {
local src=$1
local dest=$2
if [[ -f "$src" ]]; then
install -Dm644 "$src" "$dest"
fi
}
Changes since previous scan
--- PKGBUILD @ 2026-09-12 00:25+++ PKGBUILD @ 2026-09-17 00:27@@ -1,5 +1,5 @@ pkgname=v2ray-rs-pkgver=0.17.3+pkgver=0.18.0 pkgrel=1 pkgdesc="Linux desktop GUI for v2ray/xray/sing-box proxy management" arch=('x86_64')@@ -15,7 +15,7 @@ ) install=v2ray-rs.install source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")-sha256sums=('53c4cc8b17cfd424742bbb70e5598025c26bcba5c442b2c95236384a7282f997')+sha256sums=('45636b6319002f82869973acab1e162bb6e3330e8c53b662e33c43418dc80a3f') prepare() { cd "$pkgname-$pkgver"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 13:12:15 | Medium | 1 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 05:56:41 | Medium | 1 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 19:54:21 | Medium | 1 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |