the-dark-mod-bin

LOW
maintainer HMK 3 votes scanned 2026-09-17 00:27:14.276658
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
2pkgname="the-dark-mod-bin"
3pkgver=2.14
4pkgrel=1
5pkgdesc="First person stealth game inspired by the Thief series based on id Tech 4 engine"
6arch=('x86_64')
7url="https://www.thedarkmod.com/"
8license=('unknown')
9options=(!strip)
10makedepends=('xorg-server-xvfb' 'imagemagick' 'p7zip')
11source=('https://web.archive.org/web/20260729210301if_/https://update.thedarkmod.com/zipsync/tdm_installer.linux64.zip')
12sha256sums=('7ae4be6d8d45c7ed0e1a911e2dd6e8df3c0bf5247d7f37f2ae408c822bf035f7')
13prepare() {
14 chmod +x "${srcdir}/tdm_installer.linux64"
15}
16package() {
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

Scan history

Scanned at (UTC)SeverityRules
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 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
2026-08-29 00:29:17 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion