super-controller
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command is used to run a local build script (ts-node clean.js) as part of the build process, not to execute arbitrary remote code; the source is the project's own git repository and all dependencies are resolved through standard npm with mirrored registries for reliability.
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 npx command is used to run a local build script (ts-node clean.js) as part of the build process, not to execute arbitrary remote code; the source is the project's own git repository and all dependencies are resolved through standard npm with mirrored registries for reliability.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:79
NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=super-controller
3
_pkgname=SuperController
4
pkgver=1.3.5
5
_electronversion=19
6
_nodeversion=18
7
pkgrel=10
8
pkgdesc="Give your MIDI devices super powers: take control of the lights, messages, and communication between controllers.(Use system-wide electron)"
9
arch=('any')
10
url="https://github.com/aolsenjazz/super-controller"
11
license=('MIT')
12
conflicts=("${pkgname}")
13
depends=(
14
"electron${_electronversion}"
15
'python'
16
)
17
makedepends=(
18
'gendesk'
19
'npm'
20
'nvm'
21
'curl'
22
'git'
23
)
24
options=(
25
'!strip'
26
'!emptydirs'
27
)
28
source=(
29
"${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
30
"${pkgname}.sh"
31
)
32
sha256sums=('cb6b39f51e7545ed6e0efcadae6614192cf8ef79edbd8db8a22bbe92db84a180'
33
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
34
_ensure_local_nvm() {
35
local NVM_DIR="${srcdir}/.nvm"
36
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
37
nvm install "${_nodeversion}"
38
nvm use "${_nodeversion}"
39
}
40
prepare() {
41
sed -i -e "
42
s/@electronversion@/${_electronversion}/g
43
s/@appname@/${pkgname}/g
44
s/@runname@/app.asar/g
45
s/@cfgdirname@/${_pkgname}/g
46
s/@options@//g
47
" "${srcdir}/${pkgname}.sh"
48
_ensure_local_nvm
49
gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Development" --name="${_pkgname}" --exec="${pkgname} %U"
50
cd "${srcdir}/${pkgname}-${pkgver}"
51
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
52
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
53
HOME="${srcdir}/.electron-gyp"
54
{
55
echo -e '\n'
56
#echo 'build_from_source=true'
57
echo "cache=${srcdir}/.npm_cache"
58
echo "maxsockets=10"
59
} >> .npmrc
60
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
61
{
62
echo 'registry=https://registry.npmmirror.com'
63
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
64
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
65
} >> .npmrc
66
cp .npmrc release/app
67
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
68
fi
69
find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname}\'/g" {} +
70
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
71
cd "${srcdir}/${pkgname}-${pkgver}/release/app"
72
NODE_ENV=development npm install --ignore-scripts --leagcy-peer-deps
73
cd "${srcdir}/${pkgname}-${pkgver}"
74
NODE_ENV=development npm install --leagcy-peer-deps
75
}
76
build() {
77
cd "${srcdir}/${pkgname}-${pkgver}"
78
local electronDist="/usr/lib/electron${_electronversion}"
79
NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist
80
NODE_ENV=production npm run build
81
NODE_ENV=production npm exec -c "electron-builder build -l dir -c.electronDist=${electronDist}"
82
}
83
package() {
84
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
85
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/release/build/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
86
cp -Pr --no-preserve=ownership "${srcdir}/${pkgname}-${pkgver}/release/build/linux-"*/resources/{app.asar.unpacked,assets} "${pkgdir}/usr/lib/${pkgname}"
87
_icon_sizes=(16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
88
for _icons in "${_icon_sizes[@]}";do
89
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/icons/${_icons}.png" \
90
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
91
done
92
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
93
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
94
}
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 |