pd2mm
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
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)
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# Maintainer: Imperator Storm <ImperatorStorm11@protonmail.com>
# Contributor: edu4rdshl <edu4rdshl@protonmail.com>
_pkgname=PD2MM
pkgname=pd2mm
pkgdesc="A desktop application for installing and managing PAYDAY 2 mods with a fast, modern workflow."
pkgver=1.8.3
pkgrel=1
arch=("x86_64" "aarch64")
url="https://github.com/CloodDev/PD2MM"
license=('MIT')
depends=('alsa-lib' 'gtk3' 'nss' hicolor-icon-theme)
makedepends=('npm' 'nodejs>=23')
optdepends=(
'xdg-utils: Open links, files, etc'
)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/CloodDev/PD2MM/archive/v${pkgver}.tar.gz"\
"pd2mm.desktop"
"pd2mm.sh"
0001-export-dir.patch)
sha256sums=('1eb1b5d57f59ba6bdb84ec7ace6a3e570d42b9cefdc46d91bc1ed933d666a2e8'
'c50e7bba55b94f177118250d20acb5b185b5b70c5b93b61a35a215e15a35ac68'
'42645db318289b1db1c2fae07b0dbd5c8416259b7bc97202aec73ef235ad5152'
'3bba3d88bdc151a68937b9f4b2173bb29c07cbfbe5f29b984471eb2899f1455a')
prepare(){
cd "$srcdir/$_pkgname-$pkgver"
patch -tp1 <"$srcdir/0001-export-dir.patch"
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
npm ci --ignore-scripts
npm run build
npx electron-builder build --linux --publish never --config electron-builder.mjs
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
install -d "$pkgdir/usr/lib/$pkgname"
install -d "$pkgdir/usr/bin"
# change folder to copy per arch
case "${CARCH}" in
"aarch64") folder="linux-arm64-unpacked" ;;
*) folder="linux-unpacked" ;;
esac
cp -R "dist/${folder}/." "$pkgdir/usr/lib/$pkgname"
install -Dm644 "../pd2mm.desktop" "$pkgdir/usr/share/applications/pd2mm.desktop"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
for res in 64x64 128x128 256x256 512x512; do
install -Dm644 "buildResources/icons/${res}.png" "$pkgdir/usr/share/icons/hicolor/${res}/apps/$pkgname.png"
done
install -Dm755 "../pd2mm.sh" "$pkgdir/usr/bin/$pkgname"
}
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 |