iceborne

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The flagged npm install and npx execution are part of the build process for the project's own source code from a verified git tag, using locked dependencies; no untrusted remote code is executed, and the operations occur in a controlled, reproducible build environment.

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 90%): The flagged npm install and npx execution are part of the build process for the project's own source code from a verified git tag, using locked dependencies; no untrusted remote code is executed, and the operations occur in a controlled, reproducible build environment.

2 higher static findings superseded - not the current verdict (shown for transparency)
MEDIUM npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:83 NODE_ENV=development npm add -D source-map-support
MEDIUM npx/bunx/deno executes a remote package remote_code_tool

`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.

  • PKGBUILD:89 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=iceborne
3_pkgname=Iceborne
4pkgver=1.4.4
5_electronversion=25
6_nodeversion=20
7pkgrel=1
8pkgdesc="A pure front-end live barrage display and broadcasting tool.(Use system-wide electron)一个纯前端的直播弹幕显示和播报工具"
9arch=('any')
10url="https://github.com/liuxian496/iceborne"
11license=('MIT')
12conflicts=("${pkgname}")
13depends=(
14 "electron${_electronversion}"
15)
16makedepends=(
17 'gendesk'
18 'nvm'
19 'npm'
20 'curl'
21 'git'
22)
23source=(
24 "${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
25 "${pkgname}.sh"
26)
27sha256sums=('66649d44e5220e050648bddf222b5fb20f7bbd479d12adf7be7ba1b1ada30f09'
28 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
29_ensure_local_nvm() {
30 local NVM_DIR="${srcdir}/.nvm"
31 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
32 nvm install "${_nodeversion}"
33 nvm use "${_nodeversion}"
34}
35_get_app_dir() {
36 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
37}
38_set_build_env() {
39 electronDist="/usr/lib/electron${_electronversion}"
40 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
41 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
42 local HOME="${srcdir}/.electron-gyp"
43 export NPM_CONFIG_CACHE="${srcdir}/.npm_cache"
44 export NPM_CONFIG_MAXSOCKETS=32
45 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
46 {
47 export NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"
48 export NPM_CONFIG_ELECTRON_MIRROR="https://registry.npmmirror.com/-/binary/electron/"
49 export NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR="https://registry.npmmirror.com/-/binary/electron-builder-binaries/"
50 export NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
51 export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
52 export ELECTRON_BUILDER_BINARIES_MIRROR="https://npmmirror.com/mirrors/electron-builder-binaries/"
53 }
54 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
55 fi
56}
57_get_electron_version() {
58 _elec_ver=$(find "${srcdir}" -maxdepth 5 -name "package.json" ! -path "*/node_modules/*" \
59 -exec grep -l '"electron"' {} + | xargs -I{} jq -r '(.devDependencies.electron // .dependencies.electron) // empty' {} 2>/dev/null | head -1)
60 [[ -z "${_elec_ver}" ]] && return 1
61 echo -e "The electron version is: \033[1;31m${_elec_ver%%.*}\033[0m"
62}
63prepare() {
64 cd "${srcdir}/${pkgname}-${pkgver}"
65 _get_electron_version
66 sed -i -e "
67 s/@electronversion@/${_electronversion}/g
68 s/@appname@/${pkgname%-bin}/g
69 s/@runname@/app.asar/g
70 s/@cfgdirname@/electron-react-boilerplate/g
71 " "${srcdir}/${pkgname%-bin}.sh"
72 _set_build_env
73 _ensure_local_nvm
74 gendesk -f -n -q \
75 --pkgname="${pkgname}" \
76 --pkgdesc="${pkgdesc}" \
77 --categories="Utility" \
78 --name="${_pkgname}" \
79 --exec="${pkgname} %U"
80 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname}\'/g" {} +
81 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
82 NODE_ENV=development npm install --legacy-peer-deps
83 NODE_ENV=development npm add -D source-map-support
84}
85build() {
86 cd "${srcdir}/${pkgname}-${pkgver}"
87 _set_build_env
88 _ensure_local_nvm
89 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist
90 NODE_ENV=production npm run build
91 NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist}"
92}
93package() {
94 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
95 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
96 local _app_dir=$(_get_app_dir)
97 cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname}/"
98 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
99 _icon_sizes=(16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256 512x512 1024x1024)
100 for _icons in "${_icon_sizes[@]}";do
101 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/icons/${_icons}.png" \
102 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
103 done
104 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
105}

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 3
2026-08-02 00:16:08 LOW 3
2026-08-01 00:11:18 LOW 3
2026-07-31 00:14:10 LOW 3
2026-07-30 00:17:23 LOW 3
2026-07-29 00:25:53 LOW 3
2026-07-28 00:07:28 LOW 3
2026-07-27 00:24:32 LOW 3
2026-07-26 00:07:32 LOW 3
2026-07-25 00:13:44 LOW 3
2026-07-24 00:02:28 LOW 3
2026-07-23 00:14:47 LOW 3
2026-07-22 00:29:32 LOW 3
2026-07-21 00:24:15 LOW 3
2026-07-20 00:19:49 LOW 3
2026-07-19 00:17:08 LOW 3
2026-07-18 00:14:48 LOW 3
2026-07-17 00:06:16 LOW 3
2026-07-16 00:05:41 LOW 3
2026-07-15 00:09:25 LOW 3

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion