nginx-mod-shapow

LOW
maintainer mzajc 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package builds an nginx module from source hosted on the maintainer's personal domain; the source is verified via sha256sum, and the content consists of buildable source code, not a prebuilt binary, making the risk low despite the non-whitelisted host.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The package builds an nginx module from source hosted on the maintainer's personal domain; the source is verified via sha256sum, and the content consists of buildable source code, not a prebuilt binary, making the risk low despite the non-whitelisted host.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:15 source=(https://files.zajc.tel/public/builds/$_modname/$pkgver/$_modname-src-$pkgver.tar.xz)

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Marko Zajc <marko at zajc period tel>
2
3pkgname=nginx-mod-shapow
4pkgver=3.0
5pkgrel=0
6
7_modname="${pkgname#nginx-mod-}"
8
9pkgdesc="Nginx module to keep bots out with a proof-of-work challenge"
10arch=('x86_64')
11makedepends=('nginx' 'nginx-src')
12url="https://git.zajc.tel/shapow.git/about"
13license=('AGPL-3.0-only')
14
15source=(https://files.zajc.tel/public/builds/$_modname/$pkgver/$_modname-src-$pkgver.tar.xz)
16sha256sums=('116517b54140dbcbe57f4d5962471ce22a778b1b0f625105a6792ecc6919664a')
17backup=('etc/nginx/modules.d/19-shapow.conf')
18
19prepare() {
20 mkdir -p build
21 cd build
22 ln -sf /usr/src/nginx/auto
23 ln -sf /usr/src/nginx/src
24
25 sed -i 's|^#define NGX_HTTP_SHAPOW_RESOURCE_ROOT .*|#define NGX_HTTP_SHAPOW_RESOURCE_ROOT "/usr/share/'$pkgname'"|' \
26 "$srcdir/$_modname/src/config.h";
27}
28
29build() {
30 cd build
31 auto/configure \
32 --with-ld-opt="$LDFLAGS" \
33 --with-compat \
34 --add-dynamic-module=../$_modname
35 make modules
36}
37
38package() {
39 if [[ "$BUILDTOOL" == devtools ]]; then
40 local nginx_dep="nginx=$(nginx -v 2>&1 | sed 's|.*/||')"
41 depends+=($nginx_dep)
42 else
43 depends+=(nginx)
44 fi
45
46 install -Dm644 "$srcdir"/$_modname/README.md "$pkgdir"/usr/share/licenses/$pkgname/README.md
47 install -Dm644 "$srcdir"/$_modname/screenshot.png "$pkgdir"/usr/share/licenses/$pkgname/screenshot.png
48 install -Dm644 "$srcdir"/$_modname/resources/challenge.html "$pkgdir"/usr/share/$pkgname/challenge.html
49 install -Dm644 "$srcdir"/$_modname/resources/challenge.css "$pkgdir"/usr/share/$pkgname/challenge.css
50 install -Dm644 "$srcdir"/$_modname/resources/challenge.js "$pkgdir"/usr/share/$pkgname/challenge.js
51 install -Dm644 "$srcdir"/$_modname/resources/challenge-worker.js "$pkgdir"/usr/share/$pkgname/challenge-worker.js
52 install -dm0755 "$pkgdir"/etc/nginx/modules.d
53
54 cd build/objs
55 for mod in *.so; do
56 install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
57 echo "load_module \"/usr/lib/nginx/modules/$mod\";" >> "$pkgdir/etc/nginx/modules.d/19-shapow.conf"
58 done
59}
60

Changes since previous scan

--- PKGBUILD @ 2026-10-24 00:14
+++ PKGBUILD @ 2026-11-01 00:21
@@ -1,7 +1,7 @@
# Maintainer: Marko Zajc <marko at zajc period tel>
pkgname=nginx-mod-shapow
-pkgver=2.2
+pkgver=3.0
pkgrel=0
_modname="${pkgname#nginx-mod-}"
@@ -13,7 +13,7 @@
license=('AGPL-3.0-only')
source=(https://files.zajc.tel/public/builds/$_modname/$pkgver/$_modname-src-$pkgver.tar.xz)
-sha256sums=('d954551f2567bcc05509e4d902b2c115eec974b9ea1263fe6678d6f7b015f255')
+sha256sums=('116517b54140dbcbe57f4d5962471ce22a778b1b0f625105a6792ecc6919664a')
backup=('etc/nginx/modules.d/19-shapow.conf')
prepare() {

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 23:41:29 Medium 1
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

Report a package

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

0 / 4000
Your suggestion