xuanxuan-bin
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
MEDIUM
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>
2
pkgname=xuanxuan-bin
3
pkgver=10.3
4
_electronversion=31
5
pkgrel=1
6
pkgdesc="A self-hosted enterprise IM solution.(Prebuilt version.Use system-wide electron)一款功能齐全的企业聊天软件"
7
arch=('x86_64')
8
url="https://xuanim.com/index.html"
9
license=('LicenseRef-custom')
10
provides=("${pkgname%-bin}=${pkgver}")
11
conflicts=("${pkgname%-bin}")
12
depends=(
13
"electron${_electronversion}"
14
)
15
makedepends=(
16
'asar'
17
)
18
source=(
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
)
22
sha256sums=('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
}
47
prepare() {
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
}
66
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 00:11:18 | MEDIUM | 2 |
| 2026-07-31 00:14:10 | MEDIUM | 2 |
| 2026-07-30 00:17:23 | MEDIUM | 2 |
| 2026-07-29 00:25:53 | MEDIUM | 2 |
| 2026-07-28 00:07:28 | MEDIUM | 2 |
| 2026-07-27 00:24:32 | MEDIUM | 2 |
| 2026-07-26 00:07:32 | MEDIUM | 2 |
| 2026-07-25 00:13:44 | MEDIUM | 2 |
| 2026-07-24 00:02:28 | MEDIUM | 2 |
| 2026-07-23 00:14:47 | MEDIUM | 2 |
| 2026-07-22 00:29:32 | MEDIUM | 2 |
| 2026-07-21 00:24:15 | MEDIUM | 2 |
| 2026-07-20 00:19:49 | MEDIUM | 2 |
| 2026-07-19 00:17:08 | MEDIUM | 2 |
| 2026-07-18 00:14:48 | MEDIUM | 2 |
| 2026-07-17 00:06:16 | MEDIUM | 2 |
| 2026-07-16 00:05:41 | MEDIUM | 2 |
| 2026-07-15 00:09:25 | MEDIUM | 2 |