wolai-bin
maintainer zxp19821005
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt .deb from a CDN (cdn.wostatic.cn) for a legitimate application (wolai), which is then unpacked and repackaged; the host is not on the whitelist but is plausibly the project's official infrastructure, and no remote code execution or obfuscated payloads are present.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt .deb from a CDN (cdn.wostatic.cn) for a legitimate application (wolai), which is then unpacked and repackaged; the host is not on the whitelist but is plausibly the project's official infrastructure, and no remote code execution or obfuscated payloads are present.
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:22
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::https://cdn.wostatic.cn/dist/installers/${pkgname%-bin}_${pkgver}_arm64.deb")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
# Contributor: zhullyb <zhullyb [at] outlook dot com>
3
pkgname=wolai-bin
4
pkgver=1.2.12
5
_electronversion=22
6
pkgrel=1
7
pkgdesc="A new form of one-stop collaboration platform, it is different from all the traditional documents you used to use, online documents.(Use system-wide electron)一种新形态的文档/笔记/信息系统,它与你过去使用的所有传统文档、在线文档都有很多不同,学会使用wolai就等于拥有了一个强大的个人与团队生产力工具。"
8
arch=(
9
'aarch64'
10
'x86_64'
11
)
12
url="https://www.wolai.com"
13
license=('LicenseRef-custom')
14
provides=("${pkgname%-bin}=${pkgver}")
15
conflicts=("${pkgname%-bin}")
16
depends=(
17
"electron${_electronversion}"
18
)
19
makedepends=(
20
'asar'
21
)
22
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::https://cdn.wostatic.cn/dist/installers/${pkgname%-bin}_${pkgver}_arm64.deb")
23
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::https://cdn.wostatic.cn/dist/installers/${pkgname%-bin}_${pkgver}_amd64.deb")
24
source=(
25
"LICENSE.html"
26
"${pkgname%-bin}.sh"
27
)
28
sha256sums=('04b7a1e4cecbadd2e1bc903b3ad518834f93b9b76542bf53fcb18f24faac099c'
29
'31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
30
sha256sums_aarch64=('cbab7af907f46d7117dbc07a8f4b55a0d8db3c539795d37cdd838a5d12d8cbf6')
31
sha256sums_x86_64=('fa227fecf5dfa0bdf5e9e44fa05b7af951e57e5e3e4133ba90c459f53fbb571f')
32
_get_electron_version() {
33
_elec_ver="$(strings "${srcdir}/opt/${pkgname%-bin}/${pkgname%-bin}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
34
echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
35
}
36
prepare() {
37
sed -i -e "
38
s/@electronversion@/${_electronversion}/g
39
s/@appname@/${pkgname%-bin}/g
40
s/@runname@/app.asar/g
41
s/@cfgdirname@/${pkgname%-bin}/g
42
s/@options@//g
43
" "${srcdir}/${pkgname%-bin}.sh"
44
bsdtar -xf "${srcdir}/data."*
45
_get_electron_version
46
sed -i -e "
47
s/\/opt\/${pkgname%-bin}\///g
48
3i\Name[zh_CN]=我来
49
" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
50
asar e "${srcdir}/opt/${pkgname%-bin}/resources/app.asar" "${srcdir}/app.asar.unpacked"
51
find "${srcdir}/app.asar.unpacked/packages" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
52
asar p "${srcdir}/app.asar.unpacked" "${srcdir}/app.asar"
53
}
54
package() {
55
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
56
install -Dm644 "${srcdir}/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
57
cp -Pr --no-preserve=ownership "${srcdir}/opt/${pkgname%-bin}/resources/"{app.asar.unpacked,buildResources} "${pkgdir}/usr/lib/${pkgname%-bin}"
58
install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
59
_icon_sizes=(16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
60
for _icons in "${_icon_sizes[@]}";do
61
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \
62
-t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
63
done
64
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |