electron-s3-file-manager
maintainer zxp19821005
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command runs a local build script (tools.js) from the project's own source, not a remote package, so it does not pose a remote code execution risk.
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 runs a local build script (tools.js) from the project's own source, not a remote package, so it does not pose a remote code execution risk.
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:76
NODE_ENV=production npx node tools.js build
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=electron-s3-file-manager
3
pkgver=0.2.0
4
_electronversion=20
5
_nodeversion=18
6
pkgrel=7
7
pkgdesc="A GUI AWS S3 file manager. It supports keyword search, download, upload and preview video.(Use system-wide electron)"
8
arch=('any')
9
url="https://github.com/kelp404/electron-s3-file-manager"
10
license=('MIT')
11
conflicts=("${pkgname}")
12
depends=(
13
"electron${_electronversion}"
14
)
15
makedepends=(
16
'gendesk'
17
'npm'
18
'nvm'
19
'git'
20
'curl'
21
)
22
source=(
23
"${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
24
"${pkgname}.sh"
25
)
26
sha256sums=('936168f7206a3f9dbe2f302ac7a4f02b886e539b36c6c6cba6026184d3ebfd81'
27
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
28
_ensure_local_nvm() {
29
local NVM_DIR="${srcdir}/.nvm"
30
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
31
nvm install "${_nodeversion}"
32
nvm use "${_nodeversion}"
33
}
34
prepare() {
35
sed -i -e "
36
s/@electronversion@/${_electronversion}/g
37
s/@appname@/${pkgname}/g
38
s/@runname@/app.asar/g
39
s/@cfgdirname@/${pkgname}/g
40
s/@options@//g
41
" "${srcdir}/${pkgname}.sh"
42
_ensure_local_nvm
43
gendesk -f -n -q --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Utility" --name="${pkgname}" --exec="${pkgname} %U"
44
cd "${srcdir}/${pkgname}-${pkgver}"
45
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
46
export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
47
HOME="${srcdir}/.electron-gyp"
48
{
49
echo -e '\n'
50
#echo 'build_from_source=true'
51
echo "cache=${srcdir}/.npm_cache"
52
echo "maxsockets=10"
53
} >> .npmrc
54
if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
55
{
56
echo 'registry=https://registry.npmmirror.com'
57
echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
58
echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
59
} >> .npmrc
60
find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
61
fi
62
sed -i -e "
63
/dmg/d
64
s/win/linux/g
65
s/portable/dir/g
66
" tools.js
67
sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
68
NODE_ENV=development npm install
69
}
70
build() {
71
cd "${srcdir}/${pkgname}-${pkgver}"
72
local electronDist="/usr/lib/electron${_electronversion}"
73
NODE_ENV=production npm run clear:build
74
NODE_ENV=production npm run build:renderer
75
NODE_ENV=production npm run build:main
76
NODE_ENV=production npx node tools.js build
77
}
78
package() {
79
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
80
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
81
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
82
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
83
}
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 |