fusionkit-git

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD uses 'npm add' to install undeclared development dependencies and runs 'npx' to execute remote tools (tsc, vite, electron-builder), which are not explicitly listed in source or dependencies, posing a supply-chain risk if the npm registry or packages are compromised.

Triggered rules

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:95 NODE_ENV=development npm add -D node-gyp node-pty node-addon-api
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:102 NODE_ENV=production npx tsc
  • PKGBUILD:103 NODE_ENV=production npx vite build
MEDIUM AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD uses 'npm add' to install undeclared development dependencies and runs 'npx' to execute remote tools (tsc, vite, electron-builder), which are not explicitly listed in source or dependencies, posing a supply-chain risk if the npm registry or packages are compromised.

PKGBUILD

3 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=fusionkit-git
3_pkgname=FusionKit
4pkgver=0.2.10.r0.g62e54de
5_electronversion=33
6_nodeversion=20
7pkgrel=1
8pkgdesc="Desktop toolbox,integrated with subtitle processing(AI translation,format conversion),batch renaming of files,paid music decryption(to FLAC/MP3) and other practical functions.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/QiuYeDx/FusionKit"
11license=('MIT')
12provides=("${pkgname%-git}=${pkgver%.r*}")
13conflicts=("${pkgname%-git}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 'npm'
19 'nvm'
20 'git'
21 'curl'
22 'gendesk'
23 'icoutils'
24 'jq'
25)
26source=(
27 "${pkgname//-/.}::git+${url}.git"
28 "${pkgname%-git}.sh"
29)
30sha256sums=('SKIP'
31 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
32pkgver() {
33 cd "${srcdir}/${pkgname//-/.}"
34 set -o pipefail
35 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g;s/public.beta.//g' ||
36 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
37}
38_ensure_local_nvm() {
39 local NVM_DIR="${srcdir}/.nvm"
40 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
41 nvm install "${_nodeversion}"
42 nvm use "${_nodeversion}"
43}
44_set_build_env() {
45 export electronDist="/usr/lib/electron${_electronversion}"
46 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
47 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
48 export HOME="${srcdir}/.electron-gyp"
49 export NPM_CONFIG_CACHE="${srcdir}/.npm_cache"
50 export NPM_CONFIG_MAXSOCKETS=32
51 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
52 {
53 export NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"
54 export NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
55 export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
56 export ELECTRON_BUILDER_BINARIES_MIRROR="https://npmmirror.com/mirrors/electron-builder-binaries/"
57 }
58 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
59 fi
60}
61_get_app_dir() {
62 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
63}
64_get_electron_version() {
65 _elec_ver=$(find "${srcdir}" -name "package.json" -exec jq -r \
66 '(.devDependencies.electron // .dependencies.electron) | select(. != null)' \
67 {} + 2>/dev/null | head -n 1)
68 _elec_ver=$(echo "${_elec_ver}" | sed 's/[^0-9.]//g')
69 _main_ver=$(echo "${_elec_ver}" | cut -d. -f1)
70 echo -e "The electron version is: \033[1;31m${_main_ver}\033[0m"
71}
72prepare() {
73 cd "${srcdir}/${pkgname//-/.}"
74 _get_electron_version
75 sed -i -e "
76 s/@electronversion@/${_electronversion}/g
77 s/@appname@/${pkgname%-git}/g
78 s/@runname@/app.asar/g
79 s/@cfgdirname@/${pkgname%-git}/g
80 " "${srcdir}/${pkgname%-git}.sh"
81 gendesk -q -f -n \
82 --pkgname="${pkgname%-git}" \
83 --pkgdesc="${pkgdesc}" \
84 --categories="Utility" \
85 --name="${_pkgname}" \
86 --exec="${pkgname%-git} %U"
87 _set_build_env
88 _ensure_local_nvm
89 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-git}\'/g" {} +
90 sed -i "s/\/\${version}//g" electron-builder.json
91 icotool -x "public/${_pkgname}.ico" -o "public/${pkgname%-git}.png"
92 cp "public/${_pkgname}.ico" "public/favicon.ico"
93 sed -i "s/${_pkgname}.ico/${pkgname%-git}.png/g" electron/main/index.ts
94 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
95 NODE_ENV=development npm add -D node-gyp node-pty node-addon-api
96 NODE_ENV=development npm install
97}
98build() {
99 cd "${srcdir}/${pkgname//-/.}"
100 _set_build_env
101 _ensure_local_nvm
102 NODE_ENV=production npx tsc
103 NODE_ENV=production npx vite build
104 NODE_ENV=production npm exec -c "electron-builder --linux dir -c.electronDist=${electronDist} --config electron-builder.json"
105}
106package() {
107 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
108 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-git}"
109 local _app_dir=$(_get_app_dir)
110 cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname%-git}/"
111 install -Dm644 "${srcdir}/${pkgname//-/.}/public/${pkgname%-git}.png" -t "${pkgdir}/usr/share/pixmaps"
112 install -Dm644 "${srcdir}/${pkgname//-/.}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
113 install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
114}
115

Scan history

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

Report a package

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

0 / 4000
Your suggestion