kag
maintainer aaronfischer
· 25 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from the project's own domain (dl.kag2d.com), which is plausibly official; the content is unpacked and installed without executing remote code, and the host, while not on a standard whitelist, is directly associated with the project.
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 package downloads a source tarball from the project's own domain (dl.kag2d.com), which is plausibly official; the content is unpacked and installed without executing remote code, and the host, while not on a standard whitelist, is directly associated with the project.
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:20
source=(https://dl.kag2d.com/kag-linux32-latest.tar.gz
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Aaron Fischer <mail@aaron-fischer.net>
2
# Contributor: Christopher Cassidy <chris@bytcrft.net>
3
# Contributor: Kirill "reflexing" Churin <reflexing@reflexing.ru>
4
# Contributor: Kyrylo Silin <kyrylosilin@gmail.com>
5
6
pkgname=kag
7
pkgver=0.91A
8
pkgrel=2
9
pkgdesc="King Arthur's Gold Classic is a game about building castles and destroying your enemies (inspired by Soldat and Minecraft)"
10
arch=('any')
11
url="http://kag2d.com/"
12
license=('custom')
13
conflicts=('kag')
14
if test "$CARCH" == x86_64; then
15
depends=(desktop-file-utils xdg-utils lib32-libgl lib32-freetype2 lib32-libstdc++5 lib32-libpng15)
16
else
17
depends=(desktop-file-utils xdg-utils libgl freetype2 libstdc++5 libpng15)
18
fi
19
install=kag.install
20
source=(https://dl.kag2d.com/kag-linux32-latest.tar.gz
21
kag
22
kag.desktop
23
irrlicht_1_32x32x24.png
24
LICENSE)
25
md5sums=('097a49c01c162ff1edb7ffef9dc5d06a'
26
'4b26f563e978acee99d4fe91e28b368c'
27
'3d3b3ea71998582cc88269d3f2da4863'
28
'81f2bae53e67f9220802b1187b8f398f'
29
'35cae9aeae1c2d561677230795d0d827')
30
31
package() {
32
cd ${srcdir}/
33
34
install -dm755 ${pkgdir}/usr/bin
35
install -dm755 ${pkgdir}/usr/share/${pkgname}
36
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
37
38
install -Dm755 kag ${pkgdir}/usr/bin/kag
39
40
cp -r kag-linux32/* ${pkgdir}/usr/share/${pkgname}
41
find ${pkgdir}/usr/share/${pkgname} -type d -exec chmod 755 {} \;
42
find ${pkgdir}/usr/share/${pkgname} -type f -exec chmod 664 {} \;
43
chmod 774 ${pkgdir}/usr/share/${pkgname}/KAG
44
chown -R root:games ${pkgdir}/usr/share/${pkgname}
45
46
install -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
47
48
# Proper installation of .desktop file
49
desktop-file-install -m 644 --dir ${pkgdir}/usr/share/applications/ kag.desktop
50
51
# Install icon (got from source package with "icotool -x irrlicht.ico")
52
install -m644 -D irrlicht_1_32x32x24.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/kag.png
53
}
54
55
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |