sqlite3-page-explorer-git

LOW
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The npm install and npx usage are part of building the project from source and use the project's own package.json; no untrusted remote code execution occurs.

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 npm install and npx usage are part of building the project from source and use the project's own package.json; no untrusted remote code execution occurs.

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:69 NODE_ENV=development npm add -D "@electron/packager"
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:73 NODE_ENV=production npx electron-packager . "${pkgname%-git}" --overwrite --asar=true --platform=linux --icon=res/icons/db_search.png --prune=true --out=release --ignore="^/release"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=sqlite3-page-explorer-git
3_pkgname="cc.siara.${pkgname%-git}"
4pkgver=1.0.r75.g0d0b58b
5_electronversion=22
6_nodeversion=18
7pkgrel=1
8pkgdesc="Cross Platform app to explore internal organisation of tables and indices.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/siara-cc/sqlite3_page_explorer"
11license=('Apache-2.0')
12provides=("${pkgname%-git}=${pkgver}")
13conflicts=("${pkgname%-git}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 'git'
19 'npm'
20 'nvm'
21 'gendesk'
22 'curl'
23)
24source=(
25 "${pkgname%-git}.git::git+${url}.git"
26 "${pkgname%-git}.sh"
27)
28sha256sums=('SKIP'
29 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
30pkgver() {
31 cd "${srcdir}/${pkgname%-git}.git"
32 set -o pipefail
33 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
34 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35}
36_ensure_local_nvm() {
37 local NVM_DIR="${srcdir}/.nvm"
38 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
39 nvm install "${_nodeversion}"
40 nvm use "${_nodeversion}"
41}
42prepare() {
43 sed -i -e "
44 s/@electronversion@/${_electronversion}/g
45 s/@appname@/${pkgname%-git}/g
46 s/@runname@/app.asar/g
47 s/@cfgdirname@/${_pkgname}/g
48 s/@options@//g
49 " "${srcdir}/${pkgname%-git}.sh"
50 gendesk -q -f -n --pkgname="${pkgname%-git}" --pkgdesc="${pkgdesc}" --categories="Development" --name="${pkgname%-git}" --exec="${pkgname%-git} %U"
51 cd "${srcdir}/${pkgname%-git}.git"
52 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
53 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
54 HOME="${srcdir}/.electron-gyp"
55 {
56 echo -e '\n'
57 #echo 'build_from_source=true'
58 echo "cache=${srcdir}/.npm_cache"
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 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
67 fi
68 NODE_ENV=development npm install
69 NODE_ENV=development npm add -D "@electron/packager"
70}
71build() {
72 cd "${srcdir}/${pkgname%-git}.git"
73 NODE_ENV=production npx electron-packager . "${pkgname%-git}" --overwrite --asar=true --platform=linux --icon=res/icons/db_search.png --prune=true --out=release --ignore="^/release"
74}
75package() {
76 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
77 install -Dm644 "${srcdir}/${pkgname%-git}.git/release/${pkgname%-git}-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
78 install -Dm644 "${srcdir}/${pkgname%-git}.git/res/icons/db_search.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
79 install -Dm644 "${srcdir}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
80}
81

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 3
2026-09-16 00:03:17 Low 3
2026-09-15 00:25:31 Low 3
2026-09-14 00:27:57 Low 3
2026-09-13 00:19:54 Low 3
2026-09-12 00:25:17 Low 3
2026-09-11 00:19:22 Low 3
2026-09-10 00:22:44 Low 3
2026-09-09 00:04:09 Low 3
2026-09-08 00:18:08 Low 3
2026-09-07 00:30:15 Low 3
2026-09-06 00:17:06 Low 3
2026-09-05 00:16:27 Low 3
2026-09-04 00:03:13 Low 3
2026-09-03 00:15:47 Low 3
2026-09-02 00:02:31 Low 3
2026-09-01 00:11:19 Low 3
2026-08-31 00:19:57 Low 3
2026-08-30 00:04:14 Low 3
2026-08-29 00:29:17 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