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-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |