unityhub-cn

MEDIUM
maintainer VictriD 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The PKGBUILD downloads a prebuilt binary .deb from 'public-cdn.cloud.unitychina.cn', which is Unity's official CDN for the Chinese market (Unity Technologies operates unity.cn for China). This is not a random personal host — it is the legitimate distribution channel for Unity Hub in China, analogous to how unity.com serves other regions. However, it is still a prebuilt binary from a region-specific CDN rather than the canonical upstream source, and the source URL is not pinned to a specific versioned filename (it fetches 'UnityHubSetup.deb' without a version in the path), meaning the checksum could become stale if the file is updated server-side. The sha256sum provides integrity verification at build time, but the mutable URL means future builds could silently fetch a different binary if the pkgrel/checksum isn't updated. The package installs an Electron-based proprietary binary directly into /opt, which executes with user privileges. The medium rating is appropriate: it's a real supply-chain concern (mutable URL pointing to a prebuilt proprietary binary from a CDN that, while likely legitimate, is not the primary Unity domain), but there is no evidence of malicious intent.

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:17 "$pkgname-$pkgver.deb::https://public-cdn.cloud.unitychina.cn/hub/prod/UnityHubSetup.deb"
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 a prebuilt binary .deb from 'public-cdn.cloud.unitychina.cn', which is Unity's official CDN for the Chinese market (Unity Technologies operates unity.cn for China). This is not a random personal host — it is the legitimate distribution channel for Unity Hub in China, analogous to how unity.com serves other regions. However, it is still a prebuilt binary from a region-specific CDN rather than the canonical upstream source, and the source URL is not pinned to a specific versioned filename (it fetches 'UnityHubSetup.deb' without a version in the path), meaning the checksum could become stale if the file is updated server-side. The sha256sum provides integrity verification at build time, but the mutable URL means future builds could silently fetch a different binary if the pkgrel/checksum isn't updated. The package installs an Electron-based proprietary binary directly into /opt, which executes with user privileges. The medium rating is appropriate: it's a real supply-chain concern (mutable URL pointing to a prebuilt proprietary binary from a CDN that, while likely legitimate, is not the primary Unity domain), but there is no evidence of malicious intent.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Weihao Jiang <weihau.chiang#gmail.com>
2
3pkgname=unityhub-cn
4pkgver=3.1.1
5pkgrel=1
6pkgdesc="The Unity Hub is a standalone application that streamlines the way you find, download, and manage your Unity Projects and installations. (China localized version)"
7url="https://unity.cn/"
8arch=('x86_64')
9license=('custom')
10depends=('nss' 'gtk3')
11optdepends=(
12 'libappindicator-gtk3: The DEB says this an optional dependency'
13 'gconf: Used by old editors'
14 'cpio: used for Android build support'
15)
16source=(
17 "$pkgname-$pkgver.deb::https://public-cdn.cloud.unitychina.cn/hub/prod/UnityHubSetup.deb"
18 'license.txt'
19)
20sha256sums=('2953526a671543af613998d50808df204c5fbf70685564e208f36f663679d34a'
21 'f0eb3a4bb148bb7f426e4f5b97e891265ac487710cbcba9282518537c7b5d833')
22provides=('unityhub')
23conflicts=('unityhub')
24
25OPTIONS=(!strip)
26
27package() {
28 tar -xf 'data.tar.bz2' -C "$pkgdir/"
29 mkdir -p "$pkgdir/usr/bin"
30 ln -sf '/opt/unityhub/unityhub' "$pkgdir/usr/bin/unityhub"
31
32 install -Dm644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
33}
34

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion