xuanxuan-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a prebuilt .deb from a non-standard host (xuanim.com), which is not a widely recognized or whitelisted domain, and installs it without source verification, posing a supply-chain risk if the host is compromised or malicious.

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:19 "${pkgname%-bin}-${pkgver}.deb::https://www.xuanim.com/dl/xuanxuan/ce${pkgver}/${pkgname%-bin}.${pkgver}.ce.linux.amd64.deb"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt .deb from a non-standard host (xuanim.com), which is not a widely recognized or whitelisted domain, and installs it without source verification, posing a supply-chain risk if the host is compromised or malicious.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=xuanxuan-bin
3pkgver=10.3
4_electronversion=31
5pkgrel=1
6pkgdesc="A self-hosted enterprise IM solution.(Prebuilt version.Use system-wide electron)一款功能齐全的企业聊天软件"
7arch=('x86_64')
8url="https://xuanim.com/index.html"
9license=('LicenseRef-custom')
10provides=("${pkgname%-bin}=${pkgver}")
11conflicts=("${pkgname%-bin}")
12depends=(
13 "electron${_electronversion}"
14)
15makedepends=(
16 'asar'
17)
18source=(
19 "${pkgname%-bin}-${pkgver}.deb::https://www.xuanim.com/dl/xuanxuan/ce${pkgver}/${pkgname%-bin}.${pkgver}.ce.linux.amd64.deb"
20 "${pkgname%-bin}.sh"
21)
22sha256sums=('30bd479e56a38b33bd7b10110b307354f2c191549e218f3467c57301646709de'
23 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
24_get_app_dir() {
25 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
26}
27_check_electron_version() {
28 echo "Verifying Electron version..."
29 local _app_dir=$(_get_app_dir)
30 local _main_exe=""
31 if [[ -n "${_app_dir}" ]]; then
32 _main_exe=$(find "${_app_dir}" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -n 1 | cut -d' ' -f2-)
33 fi
34 if [[ -n "${_main_exe}" ]]; then
35 local _elec_ver=$(strings "${_main_exe}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1 | head -n 1)
36 if [[ -n "${_elec_ver}" ]]; then
37 if [[ "${_elec_ver}" != "${_electronversion}" ]]; then
38 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m"
39 else
40 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
41 fi
42 fi
43 else
44 echo -e "\033[1;33mNote: Could not find Electron binary for version verification.\033[0m"
45 fi
46}
47prepare() {
48 sed -i -e "
49 s/@electronversion@/${_electronversion}/g
50 s/@appname@/${pkgname%-bin}/g
51 s/@runname@/app.asar/g
52 s/@cfgdirname@/${pkgname%-bin}/g
53 " "${srcdir}/${pkgname%-bin}.sh"
54 bsdtar -xf "${srcdir}/data."*
55 _check_electron_version
56 local _app_dir=$(_get_app_dir)
57 sed -i -e "
58 s/\/opt\/${pkgname%-bin}\/${pkgname%-bin}/${pkgname%-bin}/g
59 s/Chat/Chat;Network/g
60 " "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
61 asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
62 rm -rf "${_app_dir}/resources/app.asar"
63 find "${srcdir}/app.asar.unpacked" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
64 asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
65}
66package() {
67 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
68 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
69 local _app_dir=$(_get_app_dir)
70 cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
71 install -Dm644 "${srcdir}/opt/${pkgname%-bin}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
72 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
73 _extension="${_i##*.}"
74 _icon_path="${_i#*share/icons/}"
75 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
76 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
77 done
78 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
79}
80

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 00:19:57 Medium 2
2026-08-30 00:04:14 Medium 2
2026-08-29 00:29:17 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