nginx-mod-shapow
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
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)
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# Maintainer: Marko Zajc <marko at zajc period tel>
pkgname=nginx-mod-shapow
pkgver=3.0
pkgrel=0
_modname="${pkgname#nginx-mod-}"
pkgdesc="Nginx module to keep bots out with a proof-of-work challenge"
arch=('x86_64')
makedepends=('nginx' 'nginx-src')
url="https://git.zajc.tel/shapow.git/about"
license=('AGPL-3.0-only')
source=(https://files.zajc.tel/public/builds/$_modname/$pkgver/$_modname-src-$pkgver.tar.xz)
sha256sums=('116517b54140dbcbe57f4d5962471ce22a778b1b0f625105a6792ecc6919664a')
backup=('etc/nginx/modules.d/19-shapow.conf')
prepare() {
mkdir -p build
cd build
ln -sf /usr/src/nginx/auto
ln -sf /usr/src/nginx/src
sed -i 's|^#define NGX_HTTP_SHAPOW_RESOURCE_ROOT .*|#define NGX_HTTP_SHAPOW_RESOURCE_ROOT "/usr/share/'$pkgname'"|' \
"$srcdir/$_modname/src/config.h";
}
build() {
cd build
auto/configure \
--with-ld-opt="$LDFLAGS" \
--with-compat \
--add-dynamic-module=../$_modname
make modules
}
package() {
if [[ "$BUILDTOOL" == devtools ]]; then
local nginx_dep="nginx=$(nginx -v 2>&1 | sed 's|.*/||')"
depends+=($nginx_dep)
else
depends+=(nginx)
fi
install -Dm644 "$srcdir"/$_modname/README.md "$pkgdir"/usr/share/licenses/$pkgname/README.md
install -Dm644 "$srcdir"/$_modname/screenshot.png "$pkgdir"/usr/share/licenses/$pkgname/screenshot.png
install -Dm644 "$srcdir"/$_modname/resources/challenge.html "$pkgdir"/usr/share/$pkgname/challenge.html
install -Dm644 "$srcdir"/$_modname/resources/challenge.css "$pkgdir"/usr/share/$pkgname/challenge.css
install -Dm644 "$srcdir"/$_modname/resources/challenge.js "$pkgdir"/usr/share/$pkgname/challenge.js
install -Dm644 "$srcdir"/$_modname/resources/challenge-worker.js "$pkgdir"/usr/share/$pkgname/challenge-worker.js
install -dm0755 "$pkgdir"/etc/nginx/modules.d
cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
echo "load_module \"/usr/lib/nginx/modules/$mod\";" >> "$pkgdir/etc/nginx/modules.d/19-shapow.conf"
done
}
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) | Severity | Rules |
|---|---|---|
| 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 |