riichi-city
Triggered rules
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://d3qgi0t347dz44.cloudfront.net/release/linuxpack/default_prod_Linux_$pkgver.zip -
PKGBUILD:12
https://www.mahjong-jp.com/static/img/common/termsofService_en.png)
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt x86_64 binary from a CloudFront CDN URL (d3qgi0t347dz44.cloudfront.net) rather than from the official project domain (mahjong-jp.com). While CloudFront is commonly used by vendors to distribute binaries, this specific distribution URL is not verifiable as the official upstream release host from the project's website, making it a non-standard host for a directly executed binary. The binary is chmod +x'd and symlinked into /usr/bin, meaning it runs with full user privileges. The sha256sum provides integrity checking against tampering in transit, but does not protect against the upstream host serving a malicious binary. This is a genuine medium-severity supply-chain concern: a prebuilt game executable from an unverifiable CDN subdomain. It is not clearly malicious, but the risk is real if the CDN bucket or distribution were compromised or repurposed. The license is distributed as a PNG image rather than text, which is unusual but not a security issue.
PKGBUILD
2 offending line(s) highlighted# Maintainer: martoko <mbastholm at gmail dot com>
pkgname=riichi-city
pkgver=2.0.1
pkgrel=1
pkgdesc='Riichi City is a competitive urban-style Anime mahjong game.'
url='https://www.mahjong-jp.com'
license=('custom')
arch=('x86_64')
depends=('libsecret')
source=(https://d3qgi0t347dz44.cloudfront.net/release/linuxpack/default_prod_Linux_$pkgver.zip
https://www.mahjong-jp.com/static/img/common/termsofService_en.png)
sha256sums=('c351f01fbb2ef2ec70d4cf29961155d25e27b2e59c89c2961bd298e3d61c02f2'
'20983b5d5ed2dc4cfd6043f7f36eff2314be3e0e1664105fc2cb1301d2c3ddfd')
package() {
chmod +x "default_prod_Linux_$pkgver/Mahjong-JP.x86_64"
mkdir -p "$pkgdir/opt"
cp -r "$srcdir/default_prod_Linux_$pkgver" "$pkgdir/opt/riichi-city"
mkdir -p "$pkgdir/usr/bin"
ln -s /opt/riichi-city/Mahjong-JP.x86_64 "$pkgdir/usr/bin/$pkgname"
install -Dm644 termsofService_en.png "$pkgdir/usr/share/licenses/$pkgname/LICENSE.png"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |