pd2mm

LOW
maintainer ImperatorStorm 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The npx command runs electron-builder on the locally built project source, which is downloaded from the official GitHub repository and verified via checksum; this is a standard part of the build process 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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx command runs electron-builder on the locally built project source, which is downloaded from the official GitHub repository and verified via checksum; this is a standard part of the build process 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:33 npx electron-builder build --linux --publish never --config electron-builder.mjs

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Imperator Storm <ImperatorStorm11@protonmail.com>
2# Contributor: edu4rdshl <edu4rdshl@protonmail.com>
3_pkgname=PD2MM
4pkgname=pd2mm
5pkgdesc="A desktop application for installing and managing PAYDAY 2 mods with a fast, modern workflow."
6pkgver=1.8.3
7pkgrel=1
8arch=("x86_64" "aarch64")
9url="https://github.com/CloodDev/PD2MM"
10license=('MIT')
11depends=('alsa-lib' 'gtk3' 'nss' hicolor-icon-theme)
12makedepends=('npm' 'nodejs>=23')
13optdepends=(
14 'xdg-utils: Open links, files, etc'
15)
16source=("$_pkgname-$pkgver.tar.gz::https://github.com/CloodDev/PD2MM/archive/v${pkgver}.tar.gz"\
17 "pd2mm.desktop"
18 "pd2mm.sh"
19 0001-export-dir.patch)
20sha256sums=('1eb1b5d57f59ba6bdb84ec7ace6a3e570d42b9cefdc46d91bc1ed933d666a2e8'
21 'c50e7bba55b94f177118250d20acb5b185b5b70c5b93b61a35a215e15a35ac68'
22 '42645db318289b1db1c2fae07b0dbd5c8416259b7bc97202aec73ef235ad5152'
23 '3bba3d88bdc151a68937b9f4b2173bb29c07cbfbe5f29b984471eb2899f1455a')
24prepare(){
25 cd "$srcdir/$_pkgname-$pkgver"
26 patch -tp1 <"$srcdir/0001-export-dir.patch"
27}
28
29build() {
30 cd "$srcdir/$_pkgname-$pkgver"
31 npm ci --ignore-scripts
32 npm run build
33 npx electron-builder build --linux --publish never --config electron-builder.mjs
34}
35
36package() {
37 cd "$srcdir/$_pkgname-$pkgver"
38 install -d "$pkgdir/usr/lib/$pkgname"
39 install -d "$pkgdir/usr/bin"
40 # change folder to copy per arch
41 case "${CARCH}" in
42 "aarch64") folder="linux-arm64-unpacked" ;;
43 *) folder="linux-unpacked" ;;
44 esac
45 cp -R "dist/${folder}/." "$pkgdir/usr/lib/$pkgname"
46 install -Dm644 "../pd2mm.desktop" "$pkgdir/usr/share/applications/pd2mm.desktop"
47 install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
48 for res in 64x64 128x128 256x256 512x512; do
49 install -Dm644 "buildResources/icons/${res}.png" "$pkgdir/usr/share/icons/hicolor/${res}/apps/$pkgname.png"
50 done
51 install -Dm755 "../pd2mm.sh" "$pkgdir/usr/bin/$pkgname"
52}
53

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