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>
2pkgname=fina
3pkgver=17.2.0
4pkgrel=1
5pkgdesc="Gerenciador de finanças pessoais"
6arch=('x86_64')
7url="https://github.com/britors/Fina"
8license=('GPL-3.0-only')
9depends=('electron38' 'libsecret')
10makedepends=('npm' 'python' 'gcc' 'make')
11source=("$pkgname-$pkgver.tar.gz::https://github.com/britors/Fina/archive/v$pkgver.tar.gz")
12sha256sums=('SKIP')
13
14prepare() {
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
25build() {
26 cd "Fina-$pkgver"
27 npm run build
28}
29
30package() {
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
42exec electron38 /usr/lib/$pkgname "\$@"
43EOF
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]
52Name=Fina
53GenericName=Finanças Pessoais
54Comment=Controle suas finanças com Fina
55Exec=fina %U
56Icon=fina
57Terminal=false
58Type=Application
59Categories=Office;Finance;
60Keywords=financas;dinheiro;orcamento;investimento;
61EOF
62
63 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
64}
65

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion