owasp-threat-dragon

LOW
maintainer orphaned 2 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The npx command runs electron-builder on the locally checked-out project source, which is a standard and safe build practice; the tool is not executing arbitrary 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 runs electron-builder on the locally checked-out project source, which is a standard and safe build practice; the tool is not executing arbitrary 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:58 npx electron-builder build --linux --dir \

PKGBUILD

1 offending line(s) highlighted
1# PKGBUILD
2
3# Maintainer: Max Ulidtko <ulidtko@gmail.com>
4pkgname=owasp-threat-dragon
5pkgver=v1.2
6pkgrel=3
7pkgdesc="Electron Threat Modelling and diagramming tool by Mike Goodwin @ OWASP"
8arch=('any')
9url="https://threatdragon.org"
10license=('Apache-2.0')
11groups=()
12depends=('electron5')
13optdepends=('hunspell-en_US: spell checking')
14makedepends=('git' 'npm' 'jq')
15provides=("${pkgname%-git}")
16conflicts=("${pkgname%-git}")
17replaces=()
18backup=()
19options=()
20install=
21source=("${pkgname}::git+https://github.com/mike-goodwin/${pkgname}-desktop/#tag=${pkgver}"
22 threat-dragon
23 threat-dragon.desktop
24 relax-coverage-thresholds.patch
25 )
26sha256sums=('SKIP'
27 '822d2385b2e781d105396ca2dea44990b65cbe2919b6c6afde67522be1ffcaab'
28 'ff6ea4a92aa33fe163e0618f89f334cbe8fee87e474baf769d2e921bc218b350'
29 '90e4d6d754d2cecc70cec11375e692ffd5e27cc310f269967dcb5c1df1f015e1')
30
31pkgver() {
32 cd "$srcdir/${pkgname}"
33 git describe --tags
34}
35
36prepare() {
37 cd "$srcdir/${pkgname}"
38 patch -p1 -i "$srcdir/relax-coverage-thresholds.patch"
39}
40
41prune_absolute_paths() {
42 # somehow, sshpk package hardcodes absolute paths into its package.json
43 for module in sshpk; do
44 local target="node_modules/${module}/package.json"
45 jq 'del(.man)' "$target" >tmp.json
46 mv tmp.json "$target"
47 done
48}
49
50build() {
51 cd "$srcdir/${pkgname}"
52 npm install --no-audit --no-progress --no-fund
53 npm install --no-audit --no-progress --no-fund \
54 electron@"$(</usr/lib/electron5/version)"
55 prune_absolute_paths
56 npm run-script pretest
57 npm run-script build-content
58 npx electron-builder build --linux --dir \
59 --config electron-builder.json \
60 -c.electronDist=/usr/lib/electron5 \
61 -c.electronVersion="$(</usr/lib/electron5/version)"
62}
63
64check() {
65 cd "$srcdir/${pkgname}"
66 npm test
67 rm -rf coverage
68}
69
70package() {
71 install -Dm755 -t "${pkgdir}/usr/bin" "threat-dragon"
72 install -Dm644 -t "${pkgdir}/usr/share/applications" "threat-dragon.desktop"
73 install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${pkgname}"/LICENSE.txt
74
75 cd "${pkgname}"
76 install -Dm644 "installers/linux-unpacked/resources/app.asar" "${pkgdir}/usr/share/${pkgname}.asar"
77
78 cd content/icons/png
79 for res in *x*.png; do
80 install -Dm644 "$res" \
81 "$pkgdir/usr/share/icons/hicolor/${res%.png}/apps/$pkgname.png"
82 done
83}
84

Scan history

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

Report a package

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

0 / 4000
Your suggestion