opensnitch-git
The flagged pattern involves using 'python -m installer' to install a wheel built from the project's own source, which is a standard and safe practice in AUR packages, not an external untrusted install.
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 95%): The flagged pattern involves using 'python -m installer' to install a wheel built from the project's own source, which is a standard and safe practice in AUR packages, not an external untrusted install.
1 higher static finding superseded - not the current verdict (shown for transparency)
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:108
go install github.com/golang/protobuf/protoc-gen-go -
PKGBUILD:109
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
PKGBUILD
2 offending line(s) highlighted# Maintainer:
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: lsf
# Contributor: Adam Hose <adis@blad.is>
# Contributor: Ryan Steed <ryan.steed.usa@pm.me>
pkgname=opensnitch-git
pkgver=1.8.0.r215.5c79d419
pkgrel=1
pkgdesc="A GNU/Linux port of the Little Snitch application firewall"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/evilsocket/opensnitch"
license=('GPL3')
makedepends=(
'git'
'go'
'python-grpcio-tools'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
'python-jaraco.text'
'qt6-tools'
)
depends=(
'hicolor-icon-theme'
'libnetfilter_queue'
'libpcap' # check: do we still need this? Arch upstream says no?
'python-grpcio'
'python-protobuf'
'python-slugify'
'python-pyqt6'
'python-pyinotify'
'python-notify2'
)
optdepends=(
'logrotate: logfile rotation'
'opensnitch-ebpf-module-git: eBPF process monitor method (non-hardened kernel only)'
'python-pyasn: display network names of IP'
'python-qt-material-git: extra ui themes'
'qt6-svg')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
backup=(
"etc/${pkgname%-git}d/default-config.json"
"etc/${pkgname%-git}d/system-fw.json"
)
install="${pkgname%-git}.install"
_arch_svntogit=https://raw.githubusercontent.com/archlinux/svntogit-community
_arch_commit=eebb5fb16ed15251d3ead163e8e4b4229c21a999
_arch_git_url=${_arch_svntogit}/${_arch_commit}/trunk/
source=(
'git+https://github.com/evilsocket/opensnitch.git'
"remove-debian-path.patch"
"use-system-python-packages.patch"
"${_arch_git_url}fix-setup.py.patch"
"${_arch_git_url}tmpfiles.conf"
)
sha256sums=('SKIP'
'd88cfe1acce3389ab577958048e5b642fc3b34d12f2f2f69123113bfe49d0099'
'34890f234ef868919d29ba19ab2a9179d626dcc457465d3dffc8aa1af0019c28'
'e77d2f6a6ada2761a987828e00c7725dee0c06bdb8793ae414d0df7fb1eb44a7'
'09bd2cda97f74033617fd31efce8eba68eac03b29ea6d0f55aba2cef18824a72')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/^v//;s/-rc./rc/;s/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
export GOPATH="$srcdir/gopath"
go clean -modcache
cd "$srcdir/${pkgname%-git}"
# Arch upstream patches
# TODO file an upstream bug
# * fix an issue with setup.py installing to python's site-packages instead
# of /usr
# * prefer scaled SVG instead of pixellated 48x48 PNG
patch -p1 -i "$srcdir/fix-setup.py.patch"
# TODO file an upstream bug
# remove Debian-specific path from sys.path
patch -p1 -i "$srcdir/remove-debian-path.patch"
# use system python packages
patch -p1 -i "$srcdir/use-system-python-packages.patch"
# other fixes
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
sed -i "s|/usr/lib/python3/dist-packages/data/|${site_packages}/pyasn/data/|g" ui/opensnitch/utils/__init__.py
sed -i "s|/usr/lib/python3/dist-packages/|${site_packages}/|g" ui/bin/opensnitch-ui
sed -i.orig 's/grpc_tools.protoc/grpc_tools.protoc --experimental_editions/' "${srcdir}/opensnitch/proto/Makefile";
}
build() {
cd "$srcdir/${pkgname%-git}"
export GOPATH="$srcdir/gopath"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=mod"
export PATH=${PATH}:${GOPATH}/bin
go install github.com/golang/protobuf/protoc-gen-go
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
pushd proto
make
popd
pushd daemon
make
popd
pushd ui
# https://stackoverflow.com/questions/66099225/how-can-resources-be-provided-in-pyqt6-which-has-no-pyrcc
/usr/lib/qt6/rcc -g python opensnitch/res/resources.qrc | \
sed '0,/PySide6/s//PyQt6/' > opensnitch/resources_rc.py
# NOTE: yes, we do need this.
# Arch upstream uses a patch, but _also_ includes pb files pre-generated
# so it fails for this PKGBUILD.
# not seeing the files to be fixed with this in the tree _before_ building
# made me assume they were just not there anymore (and thus no need for the fix).
# I was wrong.
find opensnitch/proto/ -name 'ui_pb2_grpc.py' -exec sed -i 's/^import ui_pb2/from . import ui_pb2/' {} \;
python -m build --wheel --no-isolation
# python setup.py build
popd
go clean -modcache
# do not use ebpf proc method by default as the module is provided as an optdepend
# NOTE: does not seem to be required, the default-config.json should use proc unless
# changed in the settings / in the file
# cp "daemon/${pkgname%-git}d.service" "daemon/${pkgname%-git}d-ebpf.service"
# sed -i 's/\(ExecStart=.*\)/\1 -process-monitor-method ebpf/' "daemon/${pkgname%-git}d-ebpf.service"
# sed -i 's/\(ExecStart=.*\)/\1 -process-monitor-method proc/' "daemon/${pkgname%-git}d.service"
}
package() {
cd "$srcdir/${pkgname%-git}"
# pushd ui
# export PYTHONHASHSEED=0 # to hopefully avoid annoying keychain popups
# python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
# popd
install -d "$pkgdir/etc/${pkgname%-git}d/rules"
install -Dm755 "daemon/${pkgname%-git}d" -t "$pkgdir/usr/bin"
install -Dm644 "utils/packaging/daemon/deb/debian/${pkgname%-git}.service" \
"$pkgdir/usr/lib/systemd/system/${pkgname%-git}d.service"
install -vDm644 "$srcdir/tmpfiles.conf" \
"$pkgdir/usr/lib/tmpfiles.d/${pkgname%-git}.conf"
# install -Dm644 "daemon/${pkgname%-git}d-ebpf.service" -t \
# "$pkgdir/usr/lib/systemd/system"
install -Dm644 daemon/data/default-config.json -t "$pkgdir/etc/${pkgname%-git}d"
install -Dm644 daemon/data/system-fw.json -t "$pkgdir/etc/${pkgname%-git}d"
install -Dm644 "utils/packaging/daemon/deb/debian/${pkgname%-git}.logrotate" \
"$pkgdir/etc/logrotate.d/${pkgname%-git}"
# python ui
python -m installer --destdir="$pkgdir" ui/dist/*.whl
# tests are in site-packages, big no-no
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "$pkgdir/$site_packages/tests"
}
Changes since previous scan
--- PKGBUILD @ 2026-09-11 00:19+++ PKGBUILD @ 2026-09-17 00:27@@ -4,7 +4,7 @@ # Contributor: Adam Hose <adis@blad.is> # Contributor: Ryan Steed <ryan.steed.usa@pm.me> pkgname=opensnitch-git-pkgver=1.8.0.r18.65480fa5+pkgver=1.8.0.r215.5c79d419 pkgrel=1 pkgdesc="A GNU/Linux port of the Little Snitch application firewall" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')@@ -57,7 +57,7 @@ ) sha256sums=('SKIP' 'd88cfe1acce3389ab577958048e5b642fc3b34d12f2f2f69123113bfe49d0099'- '812824386d1ef72effd10c193d4fcbe371bf987a072cea77f9bc45bd526dc36e'+ '34890f234ef868919d29ba19ab2a9179d626dcc457465d3dffc8aa1af0019c28' 'e77d2f6a6ada2761a987828e00c7725dee0c06bdb8793ae414d0df7fb1eb44a7' '09bd2cda97f74033617fd31efce8eba68eac03b29ea6d0f55aba2cef18824a72') Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 09:22:22 | Medium | 1 |
| 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 |