caprine
maintainer mhdi
· 7 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command runs electron-builder locally as part of the build process, which is a standard tool for packaging 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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The npx command runs electron-builder locally as part of the build process, which is a standard tool for packaging 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:31
npx electron-builder --linux --dir \
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Mahdi Sarikhani <mahdisarikhani@outlook.com>
2
# Contributor: Frederik Schwan <freswa at archlinux dot org>
3
# Contributor: Nicola Squartini <tensor5@gmail.com>
4
5
pkgname=caprine
6
pkgver=2.61.0
7
pkgrel=1
8
pkgdesc='Elegant Facebook Messenger desktop app'
9
arch=('any')
10
url='https://github.com/sindresorhus/caprine'
11
license=('MIT')
12
_electron=electron39
13
depends=('bash' "${_electron}")
14
makedepends=('npm')
15
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
16
"${pkgname}.sh")
17
sha256sums=('4ac222309a86afde59866dc15f59065fec2f30372d9311acb8fe5a6660beaff8'
18
'70679c9959bae776d667ae1dbd4ffca9298d8784ad4a5959f3b35d2493f2c131')
19
20
prepare() {
21
cd "${pkgname}-${pkgver}"
22
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
23
npm install
24
25
sed -i "s/@ELECTRON@/${_electron}/" "${srcdir}/${pkgname}.sh"
26
}
27
28
build() {
29
cd "${pkgname}-${pkgver}"
30
npm run build
31
npx electron-builder --linux --dir \
32
-c.electronDist="/usr/lib/${_electron}" \
33
-c.electronVersion="$(cat /usr/lib/${_electron}/version)"
34
}
35
36
package() {
37
cd "${pkgname}-${pkgver}"
38
install -Dm644 dist/linux-unpacked/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname}"
39
cp -r dist/linux-unpacked/resources/app.asar.unpacked "${pkgdir}/usr/lib/${pkgname}"
40
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
41
install -Dm644 build/icon.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
42
install -Dm644 "packages/rpm/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
43
install -Dm644 license -t "${pkgdir}/usr/share/licenses/${pkgname}"
44
}
45
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 |