terrafire
The PKGBUILD downloads a Windows installer (tf_full.exe) from the official vendor's own domain (ortsoftware.com) using curl with a spoofed user-agent to work around a 406 error, but critically this download is NOT listed in source=() and has no checksum verification. The binary is extracted with innoextract and the resulting Windows executable is run under dosbox (not natively), so there is no direct host-code-execution risk. However, the lack of integrity verification (no sha256sum for tf_full.exe) means the binary could be silently swapped or tampered with in transit without detection. The vendor host appears to be the legitimate upstream (ortsoftware.com matches the url= field), which reduces the supply-chain concern somewhat, but the missing checksum is a genuine security gap. This is a real medium-severity concern: an unverified executable from an external host installed into /opt, even if run under an emulator.
Triggered rules
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:18
curl --user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" 'https://www.ortsoftware.com/exe/tf_full.exe' -o tf_full.exe
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a Windows installer (tf_full.exe) from the official vendor's own domain (ortsoftware.com) using curl with a spoofed user-agent to work around a 406 error, but critically this download is NOT listed in source=() and has no checksum verification. The binary is extracted with innoextract and the resulting Windows executable is run under dosbox (not natively), so there is no direct host-code-execution risk. However, the lack of integrity verification (no sha256sum for tf_full.exe) means the binary could be silently swapped or tampered with in transit without detection. The vendor host appears to be the legitimate upstream (ortsoftware.com matches the url= field), which reduces the supply-chain concern somewhat, but the missing checksum is a genuine security gap. This is a real medium-severity concern: an unverified executable from an external host installed into /opt, even if run under an emulator.
PKGBUILD
1 offending line(s) highlighted# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch>
pkgname=terrafire
pkgver=2.0.5
pkgrel=1
pkgdesc="Award-winning arcade game featuring rendered 3D graphics, realistic gravitational physics and 360 degree parallax scrolling from ORT Software."
arch=('i686' 'x86_64')
url="https://www.ortsoftware.com/tf.html"
license=('freeware')
provides=('terrafire')
source=('terrafire.desktop')
depends=('dosbox')
makedepends=('innoextract' 'imagemagick')
sha256sums=('f7489700fe3a3795a599b1bedeef3eb279b9949ae7725ec8d924312419113b71')
prepare() {
#workaround for curl http 406 error
cd "${srcdir}"
curl --user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" 'https://www.ortsoftware.com/exe/tf_full.exe' -o tf_full.exe
}
build() {
cd "${srcdir}"
innoextract "tf_full.exe" || return 1
convert "app/tf.ico" "terrafire.png" || return 1
}
package() {
install -Dm644 ${srcdir}/terrafire.desktop ${pkgdir}/usr/share/applications/terrafire.desktop
install -Dm644 ${srcdir}/terrafire.png ${pkgdir}/usr/share/pixmaps/terrafire.png
cd "${srcdir}/app"
mkdir -p "${pkgdir}/opt/terrafire"
mkdir -p "${pkgdir}/usr/bin/"
cp -ar * "${pkgdir}/opt/terrafire"
cat << EOF > "${pkgdir}/usr/bin/terrafire"
#!/bin/bash
# Let us create a hidden folder in the home
mkdir -p "\$HOME/.terrafire"
if [ ! -f "\$HOME/.terrafire/settings.cfg" ]; then
cp "/opt/terrafire/settings.cfg" "\$HOME/.terrafire/"
fi
FILES=\$(ls /opt/terrafire)
# Checking/preparing environment
for f in \$FILES; do
if [ ! -e "\$HOME/.terrafire/\$f" ]; then
ln -s "/opt/terrafire/\$f" "\$HOME/.terrafire/"
fi
done
dosbox -exit "\$HOME/.terrafire/tf.exe"
EOF
chmod +x "${pkgdir}/usr/bin/terrafire"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |