netron
The npx command is used to run electron-builder on the locally built project, not to execute an arbitrary remote package; the source is the project's own GitHub repository and the build is standard for the project.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The npx command is used to run electron-builder on the locally built project, not to execute an arbitrary remote package; the source is the project's own GitHub repository and the build is standard for the project.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:40
npx electron-builder --linux dir --publish never
PKGBUILD
1 offending line(s) highlighted# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Filipe Bertelli <filipebertelli@tutanota.com>
# Contributor: J. C. Hammons <jch at bitma dot st>
# Contributor: Amr Okasha <amradel55 at gmail dot com>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgbase=netron
pkgname=(netron)
##pkgname+=(netron-cli)
pkgdesc='Visualizer for neural network, deep learning, and machine learning models'
pkgver=9.2.8
pkgrel=1
url='https://netron.app/'
arch=(x86_64)
license=(MIT)
depends=(python)
makedepends=(gendesk npm python-setuptools python-build python-installer python-wheel libxcrypt-compat)
optdepends=(
'python-onnx: serializing ONNX models'
'python-pytorch: serializing PyTorch models'
)
source=("https://github.com/lutzroeder/netron/archive/v${pkgver}/netron-${pkgver}.tar.gz")
sha256sums=('c155d5ceb79ca7f04e8592ceda2a321814bb455b6c5bf272137d9108abf0de17')
prepare() {
cd "${pkgbase}-${pkgver}"
# Use dependencies from Arch
sed '/python -m pip/d' -i package.js
# Disable mac and windows builds
sed -e '/--mac /d' -e '/--win /d' -i package.js
}
build() {
cd "${pkgbase}-${pkgver}"
npm run clean
npm run build python
npx electron-builder --linux dir --publish never
}
package_netron() {
depends+=('gtk3' 'nss' 'dbus-glib' 'libdbusmenu-glib')
provides=('netron' 'netron-cli')
conflicts=('netron-cli' 'netron-bin')
cd "${pkgbase}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/pypi/*.whl
#mv "${pkgdir}/usr/bin/${pkgbase}" "${pkgdir}/usr/bin/${pkgbase}-cli"
mkdir -p "${pkgdir}/opt/"
cp -r dist/linux-unpacked "${pkgdir}/opt/${pkgname}"
#ln -s "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 publish/icon.png "${pkgdir}/usr/share/pixmaps/${pkgbase}.png"
gendesk -f -n --pkgname "${pkgname}" \
--pkgdesc "${pkgdesc}" \
--name "Netron" \
--comment "${pkgdesc}" \
--exec "/opt/${pkgname}/${pkgname}" \
--categories 'Development;Application;' \
--icon "${pkgname}"
install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
package_netron-cli() {
pkgdesc="${pkgdesc} (CLI only)"
arch=(any)
conflicts=('netron')
cd "${pkgbase}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/pypi/*.whl
#mv "${pkgdir}/usr/bin/${pkgbase}" "${pkgdir}/usr/bin/${pkgbase}-cli"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
Changes since previous scan
--- PKGBUILD @ 2026-09-12 00:25+++ PKGBUILD @ 2026-09-17 00:27@@ -9,7 +9,7 @@ pkgname=(netron) ##pkgname+=(netron-cli) pkgdesc='Visualizer for neural network, deep learning, and machine learning models'-pkgver=9.2.6+pkgver=9.2.8 pkgrel=1 url='https://netron.app/' arch=(x86_64)@@ -21,7 +21,7 @@ 'python-pytorch: serializing PyTorch models' ) source=("https://github.com/lutzroeder/netron/archive/v${pkgver}/netron-${pkgver}.tar.gz")-sha256sums=('0afdf95400fc234b7138b35470c8c440843bf6dd9064f1f66ba73f7cfa67ac75')+sha256sums=('c155d5ceb79ca7f04e8592ceda2a321814bb455b6c5bf272137d9108abf0de17') prepare() { cd "${pkgbase}-${pkgver}"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 13:12:15 | Medium | 1 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 14:00:22 | Medium | 1 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 15:45:42 | Medium | 1 |