haimacloud-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-10-08 00:28:03.132797
View on AUR
Why flagged

Prebuilt .deb binaries are downloaded from a personal/third-party GitHub account (kota-rina3/hokeshi) unrelated to the official haimacloud.com project, making them unverifiable and trivially swappable by that account owner; checksums are present but only protect against transit corruption, not a malicious upstream substitution.

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:28 "LICENSE.html::https://pc.haimacloud.com/agreement/user"
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Medium AI review llm_review

An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): Prebuilt .deb binaries are downloaded from a personal/third-party GitHub account (kota-rina3/hokeshi) unrelated to the official haimacloud.com project, making them unverifiable and trivially swappable by that account owner; checksums are present but only protect against transit corruption, not a malicious upstream substitution.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=haimacloud-bin
3_zhsname='海马云电脑'
4_debname="com.${pkgname%-bin}.otohime"
5pkgver=2.7.3
6_electronversion=39
7pkgrel=1
8pkgdesc="Play 3A with all the special effects, just use the hippocampus cloud computer.特效全开玩3A,就用海马云电脑."
9arch=(
10 'aarch64'
11 'x86_64'
12)
13url="https://pc.haimacloud.com/"
14_ghurl="https://github.com/kota-rina3/hokeshi"
15license=('LicenseRef-custom')
16provides=("${pkgname%-bin}=${pkgver}")
17conflicts=(
18 "${pkgname%-bin}"
19)
20depends=(
21 "electron${_electronversion}"
22)
23options=(
24 '!strip'
25 '!emptydirs'
26)
27source=(
28 "LICENSE.html::https://pc.haimacloud.com/agreement/user"
29 "${pkgname%-bin}.sh"
30)
31source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/${pkgname%-bin}${pkgver}/${_debname}_${pkgver}.417_arm64.deb")
32source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/${pkgname%-bin}${pkgver}/${_debname}_${pkgver}.417_amd64.deb")
33sha256sums=('bdb8db760dbceec14806559b3304ff8bb205f8bb7cb24a49280e5ed45a60642b'
34 'fe033c7446c688abcb9a007d75f40eb9ca62756880cfde6be54fdf27a5bd94a8')
35sha256sums_aarch64=('993f974261359f5ddf69d1856584943ebb1858dea92cc46bafa5377e516707bc')
36sha256sums_x86_64=('3d41c409733e4cdb782b92725ca4006a8d18d1b2e32ce980c89d68e2f69fb9ba')
37_get_app_dir() {
38 find "${srcdir}" -type f -name "resources.pak" -print 2>/dev/null | while read f; do [ -d "${f%/*}/resources" ] && echo "${f%/*}" && break; done
39}
40_check_electron_version() {
41 echo "Verifying Electron version..."
42 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
43 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
44 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
45 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
46 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
47 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
48 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
49}
50prepare() {
51 sed -i -e "
52 s/@electronversion@/${_electronversion}/g
53 s/@appname@/${pkgname%-bin}/g
54 s/@runname@/app/g
55 " "${srcdir}/${pkgname%-bin}.sh"
56 bsdtar -xf "${srcdir}/data."*
57 _check_electron_version
58 sed -i -e "
59 s/Exec=\/opt\/apps\/${_debname}\/files\//Exec=/g
60 s/Icon=\/opt\/apps\/${_debname}\/files\/resources\/${pkgname%-bin}.png/Icon=${pkgname%-bin}/g
61 " "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop"
62 local _app_dir="$(_get_app_dir)"
63 rm -rf "${_app_dir}/resources/elevate.exe"
64}
65package() {
66 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
67 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
68 local _app_dir="$(_get_app_dir)"
69 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
70 install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
71 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*entries/icons/*" | while read -r _i; do
72 _icon_path="${_i#*entries/icons/}"
73 install -Dm644 "${_i}" "${pkgdir}/usr/share/icons/${_icon_path}"
74 done
75 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
76}
77

Scan history

Scanned at (UTC)SeverityRules
2026-10-08 00:28:03 Medium 3
2026-10-08 00:09:18 Medium 3
2026-10-08 00:07:12 Medium 3

Report a package

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

0 / 4000
Your suggestion