longbridge-pro-appimage
MEDIUM
maintainer hoywu
1 votes
scanned 2026-11-01 00:21:48.120785
Why flagged
The package downloads a prebuilt AppImage from a non-standard, non-whitelisted host (assets.lbctrl.com), which is an unverifiable executable that could be silently replaced, posing a supply-chain risk.
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:18
source_x86_64=("${_appimage}::https://assets.lbctrl.com/github/release/${_pkgname}-desktop/stable/${_pkgname}-v${pkgver}-linux-x86_64.AppImage" -
PKGBUILD:19
"${_license}::https://pub.lbkrs.com/static/offline/202508/FN9DnQt1WuLR5Wmz/LBPL_Platform_TnCs_3_December_2024.pdf")
Medium
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt AppImage from a non-standard, non-whitelisted host (assets.lbctrl.com), which is an unverifiable executable that could be silently replaced, posing a supply-chain risk.
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: hoywu <wu_git [at-symbol] outlook [dot] com>
2
# Based on: https://daveparrish.net/posts/2019-11-16-Better-AppImage-PKGBUILD-template.html
3
4
_pkgname=longbridge
5
6
pkgname="${_pkgname}"-pro-appimage
7
pkgver=0.19.1
8
pkgrel=1
9
pkgdesc="A professional trading platform tailored to your needs"
10
arch=('x86_64')
11
url="https://longbridge.com/desktop/"
12
license=('custom:Longbridge-Platform-TnCs')
13
conflicts=('longbridge-pro')
14
depends=('glibc' 'zlib' 'hicolor-icon-theme')
15
options=(!strip)
16
_appimage="${pkgname}-${pkgver}.AppImage"
17
_license="LICENSE.pdf"
18
source_x86_64=("${_appimage}::https://assets.lbctrl.com/github/release/${_pkgname}-desktop/stable/${_pkgname}-v${pkgver}-linux-x86_64.AppImage"
19
"${_license}::https://pub.lbkrs.com/static/offline/202508/FN9DnQt1WuLR5Wmz/LBPL_Platform_TnCs_3_December_2024.pdf")
20
noextract=("${_appimage}")
21
sha256sums_x86_64=('02723b20e480604b2e9f44137757bc9cb4397bf261eb87c543feeafd2d6fb426'
22
'c7ed0deafa4570da6fd7d173f8be759645673ee55d3a41ef9473e0d6658ad231')
23
24
prepare() {
25
chmod +x "${_appimage}"
26
./"${_appimage}" --appimage-extract
27
}
28
29
build() {
30
# Adjust .desktop so it will work outside of AppImage container
31
sed -i -E \
32
-e "s|^Name=.*|Name=Longbridge Pro|" \
33
-e "s|^Exec=${_pkgname}|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname}|" \
34
"squashfs-root/${_pkgname}.desktop"
35
# Fix permissions; .AppImage permissions are 700 for all directories
36
chmod -R a-x+rX squashfs-root/usr
37
}
38
39
package() {
40
# AppImage
41
install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage"
42
install -Dm644 "${srcdir}/${_license}" "${pkgdir}/opt/${pkgname}/${_license}"
43
44
# Desktop file
45
install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" \
46
"${pkgdir}/usr/share/applications/${_pkgname}.desktop"
47
48
# Icon images
49
install -dm755 "${pkgdir}/usr/share/"
50
cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
51
52
# Symlink executable
53
install -dm755 "${pkgdir}/usr/bin/"
54
ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
55
56
# Symlink license
57
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
58
ln -s "/opt/$pkgname/${_license}" "$pkgdir/usr/share/licenses/$pkgname"
59
}
60
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |