xuanxuan-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt .deb from a non-standard host (dl.zentao.net) which is not a widely recognized software distribution domain, posing a potential supply-chain risk if the host is compromised or the artifact is swapped, though the checksum is verified.

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://dl.zentao.net/xuanxuan/ee${pkgver}/${pkgname%-bin}.${pkgver}.ee.linux.amd64.deb"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt .deb from a non-standard host (dl.zentao.net) which is not a widely recognized software distribution domain, posing a potential supply-chain risk if the host is compromised or the artifact is swapped, though the checksum is verified.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=xuanxuan-bin
3pkgver=11.0
4_electronversion=31
5pkgrel=1
6pkgdesc="A self-hosted enterprise IM solution.一款功能齐全的企业聊天软件"
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://dl.zentao.net/xuanxuan/ee${pkgver}/${pkgname%-bin}.${pkgver}.ee.linux.amd64.deb"
20 "${pkgname%-bin}.sh"
21)
22sha256sums=('cfd2f761067e98b5317933bb3c3d6c05e8ae9e1f59b89b7d7b078a6ff5ced85b'
23 'dfcd6603d29c7b8d88e019b517a2e5c1a7b5ab905a0961a8b81adfa508b258b8')
24_get_app_dir() {
25 find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -printf '%h\n' 2>/dev/null \
26 | while read -r d; do [[ -d "${d}/resources" ]] && { echo "$d"; return 0; }; done
27}
28_check_electron_version() {
29 local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
30 -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
31 | grep -oP 'Electron/\K[0-9]+' | head -1)
32 [[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
33 (( _v == _electronversion )) && c=32 || c=31
34 echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
35}
36prepare() {
37 sed -i -e "
38 s/@electronversion@/${_electronversion}/g
39 s/@appname@/${pkgname%-bin}/g
40 " "${srcdir}/${pkgname%-bin}.sh"
41 bsdtar -xf "${srcdir}/data."*
42 _check_electron_version
43 sed -i -e "
44 s/\/opt\/${pkgname%-bin}\/${pkgname%-bin}/${pkgname%-bin}/g
45 s/Chat/Chat;Network/g
46 " "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
47 asar e "$(_get_app_dir)/resources/app.asar" "${srcdir}/app.asar.unpacked"
48 find "${srcdir}/app.asar.unpacked" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
49 asar p "${srcdir}/app.asar.unpacked" "$(_get_app_dir)/resources/app.asar"
50}
51package() {
52 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
53 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
54 cp -a "$(_get_app_dir)/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
55 install -Dm644 "${srcdir}/opt/${pkgname%-bin}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
56 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
57 _extension="${_i##*.}"
58 _icon_path="${_i#*share/icons/}"
59 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
60 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
61 done
62 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
63}
64

Changes since previous scan

--- PKGBUILD @ 2026-10-14 00:06
+++ PKGBUILD @ 2026-11-01 00:21
@@ -1,9 +1,9 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=xuanxuan-bin
-pkgver=10.3
+pkgver=11.0
_electronversion=31
pkgrel=1
-pkgdesc="A self-hosted enterprise IM solution.(Prebuilt version.Use system-wide electron)一款功能齐全的企业聊天软件"
+pkgdesc="A self-hosted enterprise IM solution.一款功能齐全的企业聊天软件"
arch=('x86_64')
url="https://xuanim.com/index.html"
license=('LicenseRef-custom')
@@ -16,58 +16,42 @@
'asar'
)
source=(
- "${pkgname%-bin}-${pkgver}.deb::https://www.xuanim.com/dl/xuanxuan/ce${pkgver}/${pkgname%-bin}.${pkgver}.ce.linux.amd64.deb"
+ "${pkgname%-bin}-${pkgver}.deb::https://dl.zentao.net/xuanxuan/ee${pkgver}/${pkgname%-bin}.${pkgver}.ee.linux.amd64.deb"
"${pkgname%-bin}.sh"
)
-sha256sums=('30bd479e56a38b33bd7b10110b307354f2c191549e218f3467c57301646709de'
- 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
+sha256sums=('cfd2f761067e98b5317933bb3c3d6c05e8ae9e1f59b89b7d7b078a6ff5ced85b'
+ 'dfcd6603d29c7b8d88e019b517a2e5c1a7b5ab905a0961a8b81adfa508b258b8')
_get_app_dir() {
- find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
+ find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -printf '%h\n' 2>/dev/null \
+ | while read -r d; do [[ -d "${d}/resources" ]] && { echo "$d"; return 0; }; done
}
_check_electron_version() {
- echo "Verifying Electron version..."
- local _app_dir=$(_get_app_dir)
- local _main_exe=""
- if [[ -n "${_app_dir}" ]]; then
- _main_exe=$(find "${_app_dir}" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -n 1 | cut -d' ' -f2-)
- fi
- if [[ -n "${_main_exe}" ]]; then
- local _elec_ver=$(strings "${_main_exe}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1 | head -n 1)
- if [[ -n "${_elec_ver}" ]]; then
- if [[ "${_elec_ver}" != "${_electronversion}" ]]; then
- echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m"
- else
- echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
- fi
- fi
- else
- echo -e "\033[1;33mNote: Could not find Electron binary for version verification.\033[0m"
- fi
+ local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
+ -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
+ | grep -oP 'Electron/\K[0-9]+' | head -1)
+ [[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
+ (( _v == _electronversion )) && c=32 || c=31
+ echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
}
prepare() {
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
- s/@runname@/app.asar/g
- s/@cfgdirname@/${pkgname%-bin}/g
" "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
_check_electron_version
- local _app_dir=$(_get_app_dir)
sed -i -e "
s/\/opt\/${pkgname%-bin}\/${pkgname%-bin}/${pkgname%-bin}/g
s/Chat/Chat;Network/g
" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
- asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
- rm -rf "${_app_dir}/resources/app.asar"
+ asar e "$(_get_app_dir)/resources/app.asar" "${srcdir}/app.asar.unpacked"
find "${srcdir}/app.asar.unpacked" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
- asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
+ asar p "${srcdir}/app.asar.unpacked" "$(_get_app_dir)/resources/app.asar"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
- local _app_dir=$(_get_app_dir)
- cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
+ cp -a "$(_get_app_dir)/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
_extension="${_i##*.}"

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 00:29:30 Medium 2
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 09:19:50 Medium 1
2026-10-14 00:06:47 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