fina
maintainer britors
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The npx command is used to run @electron/rebuild, a legitimate build tool, against a dependency in the project's own source; this is a normal part of building the project 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 95%): The npx command is used to run @electron/rebuild, a legitimate build tool, against a dependency in the project's own source; this is a normal part of building the project 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:20
npx @electron/rebuild -f -w better-sqlite3-multiple-ciphers -v "$_electron_version"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Rodrigo Brito <rodrigo@w3ti.com.br>
2
pkgname=fina
3
pkgver=17.2.0
4
pkgrel=1
5
pkgdesc="Gerenciador de finanças pessoais"
6
arch=('x86_64')
7
url="https://github.com/britors/Fina"
8
license=('GPL-3.0-only')
9
depends=('electron38' 'libsecret')
10
makedepends=('npm' 'python' 'gcc' 'make')
11
source=("$pkgname-$pkgver.tar.gz::https://github.com/britors/Fina/archive/v$pkgver.tar.gz")
12
sha256sums=('SKIP')
13
14
prepare() {
15
cd "Fina-$pkgver"
16
npm ci --ignore-scripts
17
# better-sqlite3-multiple-ciphers prebuilds top out at Electron 38; rebuild against that version
18
local _electron_version
19
_electron_version=$(electron38 --version | sed 's/^v//')
20
npx @electron/rebuild -f -w better-sqlite3-multiple-ciphers -v "$_electron_version"
21
# gera build/icon.png a partir do SVG (não versionado no tarball)
22
npm run generate-icons
23
}
24
25
build() {
26
cd "Fina-$pkgver"
27
npm run build
28
}
29
30
package() {
31
cd "Fina-$pkgver"
32
33
# Arquivos do app
34
install -dm755 "$pkgdir/usr/lib/$pkgname"
35
cp -r out "$pkgdir/usr/lib/$pkgname/"
36
cp package.json "$pkgdir/usr/lib/$pkgname/"
37
cp -r node_modules "$pkgdir/usr/lib/$pkgname/"
38
39
# Launcher
40
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<EOF
41
#!/bin/sh
42
exec electron38 /usr/lib/$pkgname "\$@"
43
EOF
44
45
# Ícone gerado em prepare() via generate-icons
46
install -Dm644 "build/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
47
install -Dm644 "build/icon.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname.png"
48
49
# Entrada .desktop
50
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" <<EOF
51
[Desktop Entry]
52
Name=Fina
53
GenericName=Finanças Pessoais
54
Comment=Controle suas finanças com Fina
55
Exec=fina %U
56
Icon=fina
57
Terminal=false
58
Type=Application
59
Categories=Office;Finance;
60
Keywords=financas;dinheiro;orcamento;investimento;
61
EOF
62
63
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
64
}
65
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 |