qianwen-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-23 11:42:33.790858
View on AUR
Why flagged

Prebuilt Electron app .deb binaries are downloaded from a personal/unofficial GitHub repository (kota-rina3/hokeshi) unrelated to the official Qianwen/Tongyi project, making them unverifiable and trivially swappable by the repo owner; checksums are present but only protect against transit corruption, not a malicious upstream swap.

Triggered rules

Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:22 "LICENSE.html::https://terms.alicdn.com/legal-agreement/terms/privacy_policy_full/20231011201849846/20231011201849846.html"
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 llm_review

An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): Prebuilt Electron app .deb binaries are downloaded from a personal/unofficial GitHub repository (kota-rina3/hokeshi) unrelated to the official Qianwen/Tongyi project, making them unverifiable and trivially swappable by the repo owner; checksums are present but only protect against transit corruption, not a malicious upstream swap.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=qianwen-bin
3_shortname=qwen
4_debname="com.${pkgname%-bin}.otohime"
5pkgver=4.9.0.229
6_electronversion=39
7pkgrel=1
8pkgdesc="Unofficial Linux version of Qianwan client, supports login, and supports uploading/downloading files.Linux版非官方千问客户端,支持登录,支持上传/下载文件"
9arch=(
10 'aarch64'
11 'x86_64'
12)
13url="https://www.qianwen.com"
14_ghurl="https://github.com/kota-rina3/hokeshi"
15license=('LicenseRef-custom')
16provides=("${pkgname%-bin}=${pkgver}")
17conflicts=("${pkgname%-bin}")
18depends=(
19 "electron${_electronversion}"
20)
21source=(
22 "LICENSE.html::https://terms.alicdn.com/legal-agreement/terms/privacy_policy_full/20231011201849846/20231011201849846.html"
23 "${pkgname%-bin}.sh"
24)
25source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/${_shortname}-linux-${pkgver}/${_debname}_${pkgver}_arm64.deb")
26source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/${_shortname}-linux-${pkgver}/${_debname}_${pkgver}_amd64.deb")
27sha256sums=('81caf3b6ec2a8ee62a4297cbe46ccec245bf692d6d3c0748497cd7410ad8cd45'
28 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
29sha256sums_aarch64=('7e4511291546df47c7fe0a81231eb4ee3fb2ab9a0e1ea98f7732eca41373aeb6')
30sha256sums_x86_64=('19dba466256dec62e331f66ca90a13228504a0a01b53166718c7b2bcffc540e0')
31_get_app_dir() {
32 find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
33}
34_check_electron_version() {
35 echo "Verifying Electron version..."
36 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
37 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
38 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
39 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
40 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
41 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
42 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
43}
44prepare() {
45 sed -i -e "
46 s/@electronversion@/${_electronversion}/g
47 s/@appname@/${pkgname%-bin}/g
48 s/@runname@/app/g
49 s/@cfgdirname@/tongyi/g
50 " "${srcdir}/${pkgname%-bin}.sh"
51 bsdtar -xf "${srcdir}/data."*
52 _check_electron_version
53 sed -i -e "
54 s/Exec=\/opt\/apps\/${_debname}\/files\/${pkgname%-bin}/Exec=${pkgname%-bin} %U/g
55 s/Icon=\/opt\/apps\/${_debname}\/files\/resources\/app\/${_shortname}.png/Icon=${pkgname%-bin}/g
56 " "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop"
57}
58package() {
59 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
60 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
61 local _app_dir=$(_get_app_dir)
62 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
63 install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
64 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*entries/icons/*" | while read -r _i; do
65 _icon_path="${_i#*entries/icons/}"
66 install -Dm644 "${_i}" "${pkgdir}/usr/share/icons/${_icon_path}"
67 done
68 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
69}
70

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 11:42:33 Medium 3
2026-09-23 11:40:33 Medium 3

Report a package

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

0 / 4000
Your suggestion