rufus-linux
The npx command is used to run electron-builder locally as part of the build process for a project built from its own source; this is a standard and legitimate use in AUR packages, not execution of a remote untrusted package.
Triggered rules
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 electron-builder locally as part of the build process for a project built from its own source; this is a standard and legitimate use in AUR packages, not execution of a remote untrusted package.
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:34
npx electron-builder --linux dir
PKGBUILD
1 offending line(s) highlighted# Maintainer: Your Name <your@email.com>
pkgname=rufus-linux
pkgver=3.20.1929
pkgrel=1
pkgdesc="A Linux-native replica of the Rufus USB flashing utility"
arch=('x86_64')
url="https://github.com/kajano-source/rufus-linux"
license=('GPL3')
depends=(
'util-linux' # provides lsblk, umount
'parted'
'dosfstools' # mkfs.vfat
'ntfs-3g' # mkfs.ntfs
'exfatprogs' # mkfs.exfat
'e2fsprogs' # mkfs.ext4
'polkit' # pkexec
)
makedepends=(
'npm'
'nodejs'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/kajano-source/rufus-linux/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP') # Replace with actual sha256sum after uploading to GitHub
prepare() {
cd "$srcdir/$pkgname-$pkgver"
npm install --ignore-scripts
}
build() {
cd "$srcdir/$pkgname-$pkgver"
# Build just the app files, not the AppImage (we install them directly)
npx electron-builder --linux dir
}
package() {
cd "$srcdir/$pkgname-$pkgver"
# Install the full bundled app directory
install -dm755 "$pkgdir/usr/lib/$pkgname"
cp -r dist/linux-unpacked/* "$pkgdir/usr/lib/$pkgname/"
# Create shortcut executable
install -dm755 "$pkgdir/usr/bin"
ln -s "/usr/lib/$pkgname/rufus-linux" "$pkgdir/usr/bin/$pkgname"
# Install desktop entry
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" << EOF
[Desktop Entry]
Name=Rufus
GenericName=USB Flasher
Comment=Flash ISO images to USB drives
Exec=$pkgname %U
Icon=$pkgname
Terminal=false
Type=Application
Categories=Utility;
Keywords=usb;flash;iso;bootable;
EOF
# Install icon
install -Dm644 "src/icons/rufus.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
# Install polkit policy for privilege escalation
install -Dm644 /dev/stdin "$pkgdir/usr/share/polkit-1/actions/com.rufus-linux.policy" << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="com.rufus-linux.flash">
<description>Flash ISO to USB</description>
<message>Authentication is required to write to a USB device</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
</policyconfig>
EOF
}
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 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 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 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |