port
maintainer spalf
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command runs electron-rebuild on the locally built project, which is a standard build step for Electron apps and does not execute untrusted remote code.
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 electron-rebuild on the locally built project, which is a standard build step for Electron apps and does not execute untrusted remote code.
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:20
npx electron-rebuild
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: tom barrett <tom at tombarrett dot xyz>
2
# https://aur.archlinux.org/packages/port-bin/
3
4
pkgname=port
5
pkgver=1.10.0
6
pkgrel=1
7
pkgdesc="A ship runner and manager for Urbit OS"
8
arch=("x86_64")
9
url="https://github.com/urbit/port"
10
license=("MIT" "custom:chromium")
11
depends=("urbit" "yarn" "zip" "npm")
12
conflicts=("port-bin")
13
source=("git+https://github.com/urbit/port.git#tag=v${pkgver}")
14
sha512sums=("SKIP")
15
16
package() {
17
pushd "$srcdir"/port
18
yarn
19
#npx electron-rebuild@latest
20
npx electron-rebuild
21
yarn make --targets=@electron-forge/maker-zip
22
popd
23
install -d -m755 "$pkgdir"/usr/bin
24
install -d -m755 "$pkgdir"/usr/share/port
25
cp -r "$srcdir"/port/out/port-linux-x64/* "$pkgdir"/usr/share/port
26
ln -s /usr/share/port/port "$pkgdir"/usr/bin/port
27
}
28
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 |