clash-of-rust-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-10-30 03:55:04.906523
View on AUR
Why flagged

The package installs a prebuilt binary from a GitHub release (unofficial build artifact) without source compilation, which creates a supply-chain risk if the release is compromised; though the host is GitHub (plausibly project-owned), the use of unverifiable .deb binaries with no upstream source build raises concerns about remote code execution if the artifact is swapped.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Medium AI review of an ambiguous pattern llm_review

The static rules found a suspicious pattern they could not resolve, so an AI model (qwen/qwen3-235b-a22b-2507) reviewed it and judged it MEDIUM (confidence 95%): The package installs a prebuilt binary from a GitHub release (unofficial build artifact) without source compilation, which creates a supply-chain risk if the release is compromised; though the host is GitHub (plausibly project-owned), the use of unverifiable .deb binaries with no upstream source build raises concerns about remote code execution if the artifact is swapped.

PKGBUILD

1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=clash-of-rust-bin
3_pkgname=Clash-of-Rust
4pkgver=0.6.5
5pkgrel=1
6pkgdesc="Cross-platform client side based on Rust, Slint and mihomo."
7arch=(
8 'aarch64'
9 'x86_64'
10)
11url="https://github.com/Fu021/Clash-of-Rust"
12license=('GPL-3.0-or-later')
13provides=("${pkgname%-bin}=${pkgver}")
14conflicts=("${pkgname%-bin}")
15depends=(
16 'glib2'
17 'libgcc'
18 'hicolor-icon-theme'
19 'fontconfig'
20 'mihomo'
21)
22source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-arm64.deb")
23source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-amd64.deb")
24sha256sums_aarch64=('193a4188ada4371be0baf19f6abf2119208b06bce43a85a4dc56782d2c3b75bb')
25sha256sums_x86_64=('8dd160004ed9e39b5ee60d9010f2ce6eaae4ddb4ee981bafae349f1836378894')
26prepare() {
27 bsdtar -xf "${srcdir}/data."*
28 sed -i "s/\/usr\/bin\///g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
29 ln -sf "/usr/bin/mihomo" "${srcdir}/opt/${pkgname%-bin}/resources/mihomo"
30}
31package() {
32 install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${pkgname%-bin}"}
33 cp -a "${srcdir}/opt/${pkgname%-bin}/." "${pkgdir}/usr/lib/${pkgname%-bin}"
34 ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
35 ln -sf "/usr/lib/${pkgname%-bin}/cor" "${pkgdir}/usr/bin/cor"
36 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
37 _extension="${_i##*.}"
38 _icon_path="${_i#*share/icons/}"
39 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
40 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
41 done
42 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
43 install -Dm644 "${srcdir}/usr/share/polkit-1/actions/org.clashofrust.tun.policy" -t "${pkgdir}/usr/share/polkit-1/actions"
44}
45

Scan history

Scanned at (UTC)SeverityRules
2026-10-30 03:55:04 Medium 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion