rufus-linux
maintainer kajano-source
· 2 votes
· scanned 2026-08-03 00:08:14.047287
LOW
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
3
pkgname=rufus-linux
4
pkgver=3.20.1929
5
pkgrel=1
6
pkgdesc="A Linux-native replica of the Rufus USB flashing utility"
7
arch=('x86_64')
8
url="https://github.com/kajano-source/rufus-linux"
9
license=('GPL3')
10
depends=(
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
)
19
makedepends=(
20
'npm'
21
'nodejs'
22
)
23
source=("$pkgname-$pkgver.tar.gz::https://github.com/kajano-source/rufus-linux/archive/refs/tags/v$pkgver.tar.gz")
24
sha256sums=('SKIP') # Replace with actual sha256sum after uploading to GitHub
25
26
prepare() {
27
cd "$srcdir/$pkgname-$pkgver"
28
npm install --ignore-scripts
29
}
30
31
build() {
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
37
package() {
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]
51
Name=Rufus
52
GenericName=USB Flasher
53
Comment=Flash ISO images to USB drives
54
Exec=$pkgname %U
55
Icon=$pkgname
56
Terminal=false
57
Type=Application
58
Categories=Utility;
59
Keywords=usb;flash;iso;bootable;
60
EOF
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>
82
EOF
83
}
84
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 |