moomoo-opend-bin
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:12
source=("${pkgname}-${pkgver}.tar.gz::https://softwaredownload.futustatic.com/moomoo_OpenD_${pkgver}_Ubuntu18.04.tar.gz")
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The package downloads a prebuilt binary tarball (containing both a native OpenD daemon binary and an AppImage GUI) from softwaredownload.futustatic.com. This domain is Futu/Moomoo's official CDN/static asset host — 'futustatic.com' is used by Futu Securities (the company behind Moomoo) for software distribution, making this a legitimate official vendor host rather than a random personal server. However, the package still installs and executes prebuilt proprietary binaries (the OpenD daemon via cp -a and the AppImage) without any source build, which is the inherent nature of a -bin package. The sha256sum is pinned, which mitigates tampering risk. The concern is real but standard for binary AUR packages from proprietary vendors: users must trust the vendor's CDN. This is a medium-severity supply-chain concern (prebuilt binary from a vendor CDN, not open-source), but not clearly malicious or from an unofficial/unrelated host. The cheaper model's assessment of 'non-standard host' is partially incorrect — futustatic.com appears to be Futu's own CDN — but the underlying concern about executing prebuilt binaries remains valid at medium severity.
PKGBUILD
1 offending line(s) highlightedpkgname=moomoo-opend-bin
pkgver=10.6.6608
pkgrel=1
pkgdesc="Moomoo OpenD command-line daemon and GUI"
arch=('x86_64')
url='https://openapi.moomoo.com/'
license=('custom:proprietary')
depends=('fuse2' 'gcc-libs' 'glibc' 'hicolor-icon-theme')
provides=('moomoo-opend' 'futu-opend')
conflicts=('moomoo-opend' 'futu-opend')
options=('!debug' '!strip')
source=("${pkgname}-${pkgver}.tar.gz::https://softwaredownload.futustatic.com/moomoo_OpenD_${pkgver}_Ubuntu18.04.tar.gz")
sha256sums=('73116d7ba5adaf4e3d3fb6aaefb66466d2604ad73260cf75accc1d349e169dc8')
prepare() {
local base="moomoo_OpenD_${pkgver}_Ubuntu18.04"
local gui_src="$srcdir/$base/moomoo_OpenD-GUI_${pkgver}_Ubuntu18.04/moomoo_OpenD-GUI_${pkgver}_Ubuntu18.04.AppImage"
rm -rf "$srcdir/squashfs-root"
(
cd "$srcdir"
"$gui_src" --appimage-extract moomoo_OpenD.png >/dev/null
)
}
package() {
local base="moomoo_OpenD_${pkgver}_Ubuntu18.04"
local install_dir="$pkgdir/opt/moomoo-opend"
local opend_src="$srcdir/$base/$base"
local gui_src="$srcdir/$base/moomoo_OpenD-GUI_${pkgver}_Ubuntu18.04/moomoo_OpenD-GUI_${pkgver}_Ubuntu18.04.AppImage"
install -dm755 "$install_dir" "$pkgdir/usr/bin" \
"$pkgdir/usr/share/applications" "$pkgdir/usr/share/icons/hicolor/256x256/apps" \
"$pkgdir/usr/share/doc/$pkgname"
cp -a "$opend_src" "$install_dir/opend"
install -Dm755 "$gui_src" "$install_dir/moomoo-opend-gui.AppImage"
install -Dm644 "$srcdir/$base/README.txt" "$pkgdir/usr/share/doc/$pkgname/README.txt"
install -Dm644 "$opend_src/OpenD.xml" "$pkgdir/usr/share/doc/$pkgname/OpenD.xml.example"
cat > "$pkgdir/usr/bin/moomoo-opend" <<'EOF'
#!/usr/bin/env bash
set -euo pipefail
install_dir=/opt/moomoo-opend/opend
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/moomoo-opend"
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}/moomoo-opend"
config_file="$config_dir/OpenD.xml"
mkdir -p "$config_dir" "$state_dir/logs"
if [[ ! -f "$config_file" ]]; then
cp "$install_dir/OpenD.xml" "$config_file"
chmod 600 "$config_file"
fi
cd "$install_dir"
exec ./OpenD -cfg_file="$config_file" -log_path="$state_dir/logs" "$@"
EOF
chmod 755 "$pkgdir/usr/bin/moomoo-opend"
cat > "$pkgdir/usr/bin/moomoo-opend-gui" <<'EOF'
#!/usr/bin/env bash
exec /opt/moomoo-opend/moomoo-opend-gui.AppImage "$@"
EOF
chmod 755 "$pkgdir/usr/bin/moomoo-opend-gui"
cat > "$pkgdir/usr/share/applications/moomoo-opend.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=Moomoo OpenD
Comment=OpenAPI gateway for Moomoo
Exec=moomoo-opend-gui
Icon=moomoo-opend
Terminal=false
Categories=Office;Finance;
EOF
install -Dm644 "$srcdir/squashfs-root/moomoo_OpenD.png" \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/moomoo-opend.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 |