yuanbao-bin

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

The prebuilt .deb files come from a GitHub repository (kota-rina3/hokeshi) that appears to be an unofficial repackaging project rather than Tencent's official release infrastructure, making it an unverifiable third-party binary; however, checksums are provided and the package only extracts app resources (Electron app assets) rather than running arbitrary scripts, keeping the realistic risk moderate-to-low.

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.

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): The prebuilt .deb files come from a GitHub repository (kota-rina3/hokeshi) that appears to be an unofficial repackaging project rather than Tencent's official release infrastructure, making it an unverifiable third-party binary; however, checksums are provided and the package only extracts app resources (Electron app assets) rather than running arbitrary scripts, keeping the realistic risk moderate-to-low.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:21 "LICENSE.html::https://rule.tencent.com/rule/202403110001"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=yuanbao-bin
3_debname="com.tencent.${pkgname%-bin}.otohime"
4pkgver=2.83.10
5_electronversion=42
6pkgrel=1
7pkgdesc="Unofficial Linux version of yuanbao client.Tencent's all-round AI assistant.元宝客户端非官方Linux版,腾讯旗下全能AI助手。"
8arch=(
9 'aarch64'
10 'x86_64'
11)
12url="https://yuanbao.tencent.com"
13_ghurl="https://github.com/kota-rina3/hokeshi"
14license=('LicenseRef-custom')
15provides=("${pkgname%-bin}=${pkgver}")
16conflicts=("${pkgname%-bin}")
17depends=(
18 "electron${_electronversion}"
19)
20source=(
21 "LICENSE.html::https://rule.tencent.com/rule/202403110001"
22 "${pkgname%-bin}.sh"
23)
24source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/${pkgname%-bin}${pkgver}/${_debname}_${pkgver}_arm64.deb")
25source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/${pkgname%-bin}${pkgver}/${_debname}_${pkgver}_amd64.deb")
26sha256sums=('906d172585f954560e014adbca98524b28e475c4ab69e5b8ead65e8560e8fbd8'
27 '5ec6b59a287204cbcbac040071f19d88897a0cb3156e794e6f05847cf5449a9e')
28sha256sums_aarch64=('c6a5adeb2a4bbffa3e8ba0f4c5f6f311240fbd7610b42576f36ababf9df247d0')
29sha256sums_x86_64=('d3aa0f26cf54027a77116487c6dd8bea34656c449d9ab1b802cb20eec52ae477')
30_get_app_dir() {
31 find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
32}
33_check_electron_version() {
34 echo "Verifying Electron version..."
35 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
36 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
37 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
38 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
39 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
40 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
41 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
42}
43prepare() {
44 sed -i -e "
45 s/@electronversion@/${_electronversion}/g
46 s/@appname@/${pkgname%-bin}/g
47 s/@runname@/app/g
48 s/@cfgdirname@/${pkgname%-bin}/g
49 " "${srcdir}/${pkgname%-bin}.sh"
50 bsdtar -xf "${srcdir}/data."*
51 _check_electron_version
52 sed -i -e "
53 s/\/opt\/apps\/${_debname}\/files\/${pkgname%-bin}/${pkgname%-bin} %U/g
54 s/\/opt\/apps\/${_debname}\/files\/resources\/app\/${pkgname%-bin}.png/${pkgname%-bin}/g
55 " "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop"
56}
57package() {
58 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
59 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
60 local _app_dir=$(_get_app_dir)
61 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
62 install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
63 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*entries/icons/*" | while read -r _i; do
64 _icon_path="${_i#*entries/icons/}"
65 install -Dm644 "${_i}" "${pkgdir}/usr/share/icons/${_icon_path}"
66 done
67 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
68}

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 11:42:33 Low 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