the-dark-mod-bin
maintainer HMK
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt installer from a web archive snapshot of the official update server, which is non-standard but plausibly the project's own source; the installer is run in an isolated Xvfb session to extract game files, which is part of normal packaging for this binary-only game, and no obfuscated or malicious behavior is observed.
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 95%): The package downloads a prebuilt installer from a web archive snapshot of the official update server, which is non-standard but plausibly the project's own source; the installer is run in an isolated Xvfb session to extract game files, which is part of normal packaging for this binary-only game, and no obfuscated or malicious behavior is observed.
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:11
source=('https://web.archive.org/web/20260729210301if_/https://update.thedarkmod.com/zipsync/tdm_installer.linux64.zip')
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Herbert Knapp
2
pkgname="the-dark-mod-bin"
3
pkgver=2.14
4
pkgrel=1
5
pkgdesc="First person stealth game inspired by the Thief series based on id Tech 4 engine"
6
arch=('x86_64')
7
url="https://www.thedarkmod.com/"
8
license=('unknown')
9
options=(!strip)
10
makedepends=('xorg-server-xvfb' 'imagemagick' 'p7zip')
11
source=('https://web.archive.org/web/20260729210301if_/https://update.thedarkmod.com/zipsync/tdm_installer.linux64.zip')
12
sha256sums=('7ae4be6d8d45c7ed0e1a911e2dd6e8df3c0bf5247d7f37f2ae408c822bf035f7')
13
prepare() {
14
chmod +x "${srcdir}/tdm_installer.linux64"
15
}
16
package() {
17
18
cd ${pkgdir}
19
Xvfb :98 -screen 0 1024x768x24 -nolisten tcp &
20
while ! xdpyinfo -display :98 >/dev/null 2>&1; do
21
sleep 0.1
22
done
23
DISPLAY=:98 "${srcdir}/tdm_installer.linux64" --unattended
24
25
rm "${srcdir}/tdm_installer.linux64" "${srcdir}/"tdm_installer_*.log
26
mkdir -p "${pkgdir}/usr/share/games/thedarkmod/" "${pkgdir}/usr/bin"
27
mv "${srcdir}/"* "${pkgdir}/usr/share/games/thedarkmod/"
28
echo '#!/bin/bash' > "${pkgdir}/usr/bin/thedarkmod"
29
echo '[[ ! -w /usr/share/games/thedarkmod || ! -w /usr/share/games/thedarkmod/fms ]] && echo "##" && echo "To enable mission download run: sudo chown -R $USER /usr/share/games/thedarkmod/" && echo "##" && sleep 4' >> "${pkgdir}/usr/bin/thedarkmod"
30
echo 'cd /usr/share/games/thedarkmod/ && ./thedarkmod.x64 $@' >> "${pkgdir}/usr/bin/thedarkmod"
31
chmod +x "${pkgdir}/usr/bin/thedarkmod"
32
33
# Extract icon
34
_tmp=$(mktemp -d)
35
cd ${_tmp}
36
7z x "${pkgdir}/usr/share/games/thedarkmod/TheDarkModx64.exe"
37
convert .rsrc/ICON/12.ico -thumbnail 32x32 -alpha on -background none -flatten "${pkgdir}/usr/share/games/thedarkmod/icon.png"
38
rm -r ${_tmp}
39
40
mkdir -p "${pkgdir}/usr/share/applications"
41
_desktop="${pkgdir}/usr/share/applications/thedarkmod.desktop"
42
echo '[Desktop Entry]' > ${_desktop}
43
echo 'Type=Application' >> ${_desktop}
44
echo "Name=The Dark Mod ${pkgver}" >> ${_desktop}
45
echo "Comment=${pkgdesc}" >> ${_desktop}
46
echo 'Exec=thedarkmod' >> ${_desktop}
47
echo "Icon=/usr/share/games/thedarkmod/icon.png" >> ${_desktop}
48
echo 'Terminal=false' >> ${_desktop}
49
echo 'Categories=Games;ActionGame;' >> ${_desktop}
50
51
echo "###############################################"
52
echo "To enable mission download execute:"
53
echo 'sudo chown -R $USER /usr/share/games/thedarkmod'
54
echo "###############################################"
55
}
56
57
Changes since previous scan
--- PKGBUILD @ 2026-07-29 00:25+++ PKGBUILD @ 2026-08-03 00:08@@ -1,6 +1,6 @@ # Maintainer: Herbert Knapp pkgname="the-dark-mod-bin"-pkgver=2.13+pkgver=2.14 pkgrel=1 pkgdesc="First person stealth game inspired by the Thief series based on id Tech 4 engine" arch=('x86_64')@@ -8,8 +8,8 @@ license=('unknown') options=(!strip) makedepends=('xorg-server-xvfb' 'imagemagick' 'p7zip')-source=('https://web.archive.org/web/20250324182204if_/https://update.thedarkmod.com/zipsync/tdm_installer.linux64.zip')-sha256sums=('56754940823a49d07bd63efcba88a4f58ecd52cc0b3d244c49fdc996f37a687d')+source=('https://web.archive.org/web/20260729210301if_/https://update.thedarkmod.com/zipsync/tdm_installer.linux64.zip')+sha256sums=('7ae4be6d8d45c7ed0e1a911e2dd6e8df3c0bf5247d7f37f2ae408c822bf035f7') prepare() { chmod +x "${srcdir}/tdm_installer.linux64" }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 23:13:22 | MEDIUM | 1 |
| 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 |