owasp-threat-dragon

LOW
maintainer orphaned 2 votes scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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