templedriver-bin

maintainer vitaliikuzhdin · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads prebuilt binary snap packages from api.snapcraft.io (Canonical's official Snap Store API) and extracts them with unsquashfs to install the game binary. The snap store is a legitimate, official distribution channel maintained by Canonical, so this is not an unofficial or personal host. However, the snap IDs (euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru) are opaque and the snap store does not provide the same level of source transparency as building from source. The binaries are pinned to specific revision numbers (65/66/67) with sha256sums, which mitigates substitution attacks. The upstream GitHub repo (mrbid/TempleDriver) is the authoritative source and the snap package appears to be the official distribution method for this game. This is a common AUR pattern for packaging snap-distributed software without the snap daemon. The risk is real but low in practice: the sha256 pins prevent MITM substitution, and api.snapcraft.io is Canonical's official infrastructure. This sits at the lower end of medium — it's a prebuilt binary from an opaque source, but pinned and from a reputable host.

Triggered rules

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:40 "https://api.snapcraft.io/api/v1/snaps/download/euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru_67.snap"
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads prebuilt binary snap packages from api.snapcraft.io (Canonical's official Snap Store API) and extracts them with unsquashfs to install the game binary. The snap store is a legitimate, official distribution channel maintained by Canonical, so this is not an unofficial or personal host. However, the snap IDs (euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru) are opaque and the snap store does not provide the same level of source transparency as building from source. The binaries are pinned to specific revision numbers (65/66/67) with sha256sums, which mitigates substitution attacks. The upstream GitHub repo (mrbid/TempleDriver) is the authoritative source and the snap package appears to be the official distribution method for this game. This is a common AUR pattern for packaging snap-distributed software without the snap daemon. The risk is real but low in practice: the sha256 pins prevent MITM substitution, and api.snapcraft.io is Canonical's official infrastructure. This sits at the lower end of medium — it's a prebuilt binary from an opaque source, but pinned and from a reputable host.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
2
3_pkgname="templedriver"
4pkgname="${_pkgname}-bin"
5pkgver=1.1.1
6_commit="f300481b04bff205ad5cbe92a1997cba2d3e59ef" # 1.1.1
7pkgrel=1
8pkgdesc="A driving game dedicated to King Terry A. Davis"
9arch=(
10 'aarch64'
11 'armv7h'
12 'x86_64'
13)
14url="https://github.com/mrbid/TempleDriver"
15license=(
16 'Unlicense'
17)
18depends=(
19 'glibc'
20 'libgles'
21 'sdl2'
22)
23makedepends=(
24 'squashfs-tools'
25)
26provides=(
27 "${_pkgname}"
28)
29conflicts=(
30 "${_pkgname}"
31)
32_pkgsrc="${url##*/}-${pkgver}"
33source=(
34 "${_pkgsrc}-README.md::${url}/raw/${_commit}/README.md"
35 "${_pkgsrc}-LICENSE.md::${url}/raw/${_commit}/LICENSE.md"
36 "${_pkgsrc}-${_pkgname}.appdata.xml::${url}/raw/${_commit}/flat/${_pkgname}.appdata.xml"
37)
38# https://askubuntu.com/a/1196449
39source_aarch64=(
40 "https://api.snapcraft.io/api/v1/snaps/download/euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru_67.snap"
41)
42source_armv7h=(
43 "https://api.snapcraft.io/api/v1/snaps/download/euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru_66.snap"
44)
45source_x86_64=(
46 "https://api.snapcraft.io/api/v1/snaps/download/euH2Y1LDnEHbX4GpjAiIhjDFUfxi15ru_65.snap"
47)
48sha256sums=('6e7718c42707aee26c3ee595fa37bfb896f08e6c950497954d82721fa2768ed5'
49 '88d9b4eb60579c191ec391ca04c16130572d7eedc4a86daa58bf28c6e14c9bcd'
50 '32812355856988863bf6dcb1b1fc04502162a789250c789db8270adefc0976f5')
51sha256sums_aarch64=('8fbbe3b35e2570e7d12d0ddccb69ed2884021595f7fbf6e746585b0e2a9d4000')
52sha256sums_armv7h=('b7026400294bafcf7ba24aaa5830f159b355999c4bb3aaa28ea573ac7b87aa4c')
53sha256sums_x86_64=('a91a827a45846022afa729e6c20ca259f3599cd7bc1e56c4bdf11141ea772b44')
54
55prepare() {
56 local source_array="source_${CARCH}[0]"
57 local source_url="${!source_array}"
58 local source_artifact="${source_url##*/}"
59
60 cd "${srcdir}"
61 unsquashfs -f -d "${srcdir}/${source_artifact%.snap}" "${source_artifact}"
62
63 cd "${source_artifact%.snap}/meta/gui"
64 sed -e "s|^Icon=.*|Icon=${_pkgname}|g" \
65 -i "${_pkgname}.desktop"
66}
67
68package() {
69 local source_array="source_${CARCH}[0]"
70 local source_url="${!source_array}"
71 local source_artifact="${source_url##*/}"
72
73 cd "${srcdir}"
74 install -vDm644 "${_pkgsrc}-README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
75 install -vDm644 "${_pkgsrc}-LICENSE.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.md"
76 install -vDm644 "${_pkgsrc}-${_pkgname}.appdata.xml" "${pkgdir}/usr/share/metainfo/${_pkgname}.appdata.xml"
77
78 cd "${source_artifact%.snap}"
79 install -vDm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
80
81 cd "meta/gui"
82 install -vDm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
83 install -vDm644 "${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
84}
85

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 MEDIUM 2

Report a package

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

0 / 4000
Your suggestion