rufus-linux

LOW
maintainer kajano-source 2 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

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 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)
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:34 npx electron-builder --linux dir

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Your Name <your@email.com>
2
3pkgname=rufus-linux
4pkgver=3.20.1929
5pkgrel=1
6pkgdesc="A Linux-native replica of the Rufus USB flashing utility"
7arch=('x86_64')
8url="https://github.com/kajano-source/rufus-linux"
9license=('GPL3')
10depends=(
11 'util-linux' # provides lsblk, umount
12 'parted'
13 'dosfstools' # mkfs.vfat
14 'ntfs-3g' # mkfs.ntfs
15 'exfatprogs' # mkfs.exfat
16 'e2fsprogs' # mkfs.ext4
17 'polkit' # pkexec
18)
19makedepends=(
20 'npm'
21 'nodejs'
22)
23source=("$pkgname-$pkgver.tar.gz::https://github.com/kajano-source/rufus-linux/archive/refs/tags/v$pkgver.tar.gz")
24sha256sums=('SKIP') # Replace with actual sha256sum after uploading to GitHub
25
26prepare() {
27 cd "$srcdir/$pkgname-$pkgver"
28 npm install --ignore-scripts
29}
30
31build() {
32 cd "$srcdir/$pkgname-$pkgver"
33 # Build just the app files, not the AppImage (we install them directly)
34 npx electron-builder --linux dir
35}
36
37package() {
38 cd "$srcdir/$pkgname-$pkgver"
39
40 # Install the full bundled app directory
41 install -dm755 "$pkgdir/usr/lib/$pkgname"
42 cp -r dist/linux-unpacked/* "$pkgdir/usr/lib/$pkgname/"
43
44 # Create shortcut executable
45 install -dm755 "$pkgdir/usr/bin"
46 ln -s "/usr/lib/$pkgname/rufus-linux" "$pkgdir/usr/bin/$pkgname"
47
48 # Install desktop entry
49 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" << EOF
50[Desktop Entry]
51Name=Rufus
52GenericName=USB Flasher
53Comment=Flash ISO images to USB drives
54Exec=$pkgname %U
55Icon=$pkgname
56Terminal=false
57Type=Application
58Categories=Utility;
59Keywords=usb;flash;iso;bootable;
60EOF
61
62 # Install icon
63 install -Dm644 "src/icons/rufus.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
64
65 # Install polkit policy for privilege escalation
66 install -Dm644 /dev/stdin "$pkgdir/usr/share/polkit-1/actions/com.rufus-linux.policy" << EOF
67<?xml version="1.0" encoding="UTF-8"?>
68<!DOCTYPE policyconfig PUBLIC
69 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
70 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
71<policyconfig>
72 <action id="com.rufus-linux.flash">
73 <description>Flash ISO to USB</description>
74 <message>Authentication is required to write to a USB device</message>
75 <defaults>
76 <allow_any>auth_admin</allow_any>
77 <allow_inactive>auth_admin</allow_inactive>
78 <allow_active>auth_admin_keep</allow_active>
79 </defaults>
80 </action>
81</policyconfig>
82EOF
83}
84

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion