hexhub

maintainer YangYuS8 · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged This PKGBUILD downloads a prebuilt AppImage binary from oss.hexhub.cn, which is the vendor's own CDN/OSS host (matching the official site hexhub.cn), extracts it, and installs the contents. The host is not a well-known, independently verifiable mirror, but it does appear to be the vendor's own storage bucket. The core concern is that a prebuilt binary is being executed (chmod +x and --appimage-extract runs the AppImage), and the entire extracted contents are installed to /opt. There is a sha256sum check, which mitigates silent substitution to some degree, but the binary itself is opaque and unauditable. This is a classic medium-risk pattern: a closed-source prebuilt binary from a vendor-controlled but non-mainstream host, with no source build. Not clearly malicious, but a genuine supply-chain concern.

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:14 source=('https://oss.hexhub.cn/plugin/HexHub-amd64-appimage-1.3.0.AppImage')
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): This PKGBUILD downloads a prebuilt AppImage binary from oss.hexhub.cn, which is the vendor's own CDN/OSS host (matching the official site hexhub.cn), extracts it, and installs the contents. The host is not a well-known, independently verifiable mirror, but it does appear to be the vendor's own storage bucket. The core concern is that a prebuilt binary is being executed (chmod +x and --appimage-extract runs the AppImage), and the entire extracted contents are installed to /opt. There is a sha256sum check, which mitigates silent substitution to some degree, but the binary itself is opaque and unauditable. This is a classic medium-risk pattern: a closed-source prebuilt binary from a vendor-controlled but non-mainstream host, with no source build. Not clearly malicious, but a genuine supply-chain concern.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: wwxiaoqi <tahicoing@gmail.com>
2# 1.3.0 updated by: YangYuS8 <YangYuS8@163.com>
3
4pkgname=hexhub
5pkgver=1.3.0
6pkgrel=1
7pkgdesc="database, docker, ssh, sftp. all in one"
8arch=('x86_64')
9url='https://www.hexhub.cn/'
10license=('GPL')
11depends=()
12conflicts=()
13options=("!strip" "!debug")
14source=('https://oss.hexhub.cn/plugin/HexHub-amd64-appimage-1.3.0.AppImage')
15sha256sums=('af03d64d97e671c14ffd29fa22bdef4eac5fe00f2448c8acf5b4ef34259dba2a')
16
17_pkgname=HexHub-amd64-appimage-1.3.0.AppImage
18noextract=("$_pkgname")
19
20prepare() {
21 chmod +x "$_pkgname"
22 ./"$_pkgname" --appimage-extract > /dev/null
23}
24
25build() {
26 # Adjust .desktop so it will work autside of AppImage container
27 sed -i \
28 -e "s|Exec=HexHub|Exec=/opt/$pkgname/AppRun|" \
29 -e "s+^Icon=.*+Icon=hexhub-bin+" \
30 -e "s|^Terminal=true|Terminal=false|" \
31 -e "s|^NoDisplay=true|NoDisplay=false|" \
32 "squashfs-root/appimagetool.desktop"
33
34 # Fix work no so files.
35 sed -i \
36 -e "s|cd \"\$(dirname \"\$0\")\"|cd /opt/$pkgname|" \
37 "squashfs-root/AppRun"
38}
39
40package() {
41 # Icon images
42 install -Dm644 "squashfs-root/hexhub.png" \
43 "$pkgdir/usr/share/icons/hicolor/512x512/apps/hexhub-bin.png"
44
45 # Desktop file
46 install -Dm644 "$srcdir/squashfs-root/appimagetool.desktop" \
47 "$pkgdir/usr/share/applications/HexHub.desktop"
48
49 # Copy executable
50 mkdir -p "$pkgdir/opt/$pkgname"
51 cp -r "$srcdir/squashfs-root/." "$pkgdir/opt/$pkgname/"
52
53 # Copy Bin run file
54 install -dm755 "$pkgdir/usr/bin"
55 cp -r "$pkgdir/opt/$pkgname/AppRun" "$pkgdir/usr/bin/hexhub"
56}
57

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