pd2mm
maintainer ImperatorStorm
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The `npx electron-builder` invocation runs a locally installed npm package (installed via `npm ci`) rather than fetching a remote package at runtime; the source tarball is from the project's own GitHub repo with a verified checksum, so this is a normal Electron app build with no evidence of malicious behavior, though the package is new and low-vote.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): The `npx electron-builder` invocation runs a locally installed npm package (installed via `npm ci`) rather than fetching a remote package at runtime; the source tarball is from the project's own GitHub repo with a verified checksum, so this is a normal Electron app build with no evidence of malicious behavior, though the package is new and low-vote.
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
4
pkgname=pd2mm
5
pkgdesc="A desktop application for installing and managing PAYDAY 2 mods with a fast, modern workflow."
6
pkgver=1.8.0
7
pkgrel=1
8
arch=("x86_64" "aarch64")
9
url="https://github.com/CloodDev/PD2MM"
10
license=('MIT')
11
depends=('alsa-lib' 'gtk3' 'nss' hicolor-icon-theme)
12
makedepends=('npm' 'nodejs>=23')
13
optdepends=(
14
'xdg-utils: Open links, files, etc'
15
)
16
source=("$_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)
20
sha256sums=('1802ab1663e208a5b2dc9482a06e0bce215294f7d8f8cfe815547bf72dbbf6da'
21
'c50e7bba55b94f177118250d20acb5b185b5b70c5b93b61a35a215e15a35ac68'
22
'42645db318289b1db1c2fae07b0dbd5c8416259b7bc97202aec73ef235ad5152'
23
'3bba3d88bdc151a68937b9f4b2173bb29c07cbfbe5f29b984471eb2899f1455a')
24
prepare(){
25
cd "$srcdir/$_pkgname-$pkgver"
26
patch -tp1 <"$srcdir/0001-export-dir.patch"
27
}
28
29
build() {
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
36
package() {
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) | 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 | 3 |
| 2026-07-30 00:17:23 | LOW | 3 |
| 2026-07-29 00:25:53 | LOW | 3 |
| 2026-07-28 00:07:28 | LOW | 3 |
| 2026-07-27 00:24:32 | LOW | 3 |
| 2026-07-26 00:07:32 | LOW | 3 |
| 2026-07-25 00:13:44 | LOW | 3 |
| 2026-07-24 00:02:28 | LOW | 3 |
| 2026-07-23 00:14:47 | LOW | 3 |
| 2026-07-22 00:29:32 | LOW | 3 |
| 2026-07-21 00:24:15 | LOW | 3 |
| 2026-07-20 00:19:49 | LOW | 3 |
| 2026-07-19 00:17:08 | LOW | 3 |
| 2026-07-18 00:14:48 | LOW | 3 |
| 2026-07-17 05:55:49 | LOW | 3 |
| 2026-07-17 05:54:03 | MEDIUM | 2 |