hosts-gen
The source is a Git repository from a non-whitelisted host, but it is the project's own official repository used to build the software from source, which is normal for AUR packages; no unverifiable prebuilt binaries or executed remote code are involved.
Triggered rules
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 source is a Git repository from a non-whitelisted host, but it is the project's own official repository used to build the software from source, which is normal for AUR packages; no unverifiable prebuilt binaries or executed remote code are involved.
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:18
source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=hosts-gen
pkgver=0.9.20191123.2
# No actual releases provided; use a specific commit
_pkgcommit=562b4af551efc7249cb68f6d4b8909daf2ce7ce6
pkgrel=2
epoch=
pkgdesc="A little framework to generate /etc/hosts from /etc/hosts.d"
arch=('any')
url="http://r-36.net/scm/$pkgname/"
license=('GPL3')
groups=()
depends=('coreutils')
makedepends=('git')
backup=()
options=()
install="$pkgname.install"
source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"
"$pkgname.path"
"$pkgname.service")
md5sums=('SKIP'
'470be01a8490fc054fb0a04d3a74eed1'
'12ed5fdea9f047bb03e61e8f846c641a')
validpgpkeys=()
pkgver() {
cd "$pkgname"
set +x
local version=$(sed -n -e 's/^VERSION = //p' config.mk)
# group commits by date, counting the ones on the date chosen for the version
local commitdate=$(git show -s --date=short --format=%cd)
local datecommits=$(git rev-list --since="$commitdate 00:00 UTC" HEAD | wc -l)
git show -s --date=format:%Y%m%d --format=format:$version.%cd.$datecommits
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" install
# Generate this from /etc/hosts on install
rm "$pkgdir/etc/hosts.d/01-hosts.local"
# Correct executable location
mkdir -p "$pkgdir/usr"
mv "$pkgdir/bin" "$pkgdir/usr/bin"
# Install documentation
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
install -m0644 "$srcdir/$pkgname/README" "$pkgdir/usr/share/doc/$pkgname/README"
install -m0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
# Install systemd units
mkdir -p "$pkgdir/usr/lib/systemd/system"
install -m0644 "$srcdir/$pkgname.path" "$pkgdir/usr/lib/systemd/system/$pkgname.path"
install -m0644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
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 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 |