mubu-bin
maintainer zxp19821005
· 2 votes
· scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged
The package downloads a prebuilt Windows executable from a non-standard host (assets.mubu.com) which is not a common source for AUR packages, and although it's the project's own domain, the executable is unpacked and repackaged, creating a supply-chain risk if the source were compromised.
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:23
"${pkgname%-bin}-${pkgver}.exe::https://assets.mubu.com/client/${pkgver}/win/${_pkgname}-${pkgver}-x64.exe"
MEDIUM
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt Windows executable from a non-standard host (assets.mubu.com) which is not a common source for AUR packages, and although it's the project's own domain, the executable is unpacked and repackaged, creating a supply-chain risk if the source were compromised.
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2
pkgname=mubu-bin
3
_pkgname=Mubu
4
_zhsname='幕布'
5
pkgver=5.7.0
6
_electronversion=32
7
pkgrel=1
8
pkgdesc="A mind management tool that combines outline notes and mind maps.(Prebuilt version.Use system-wide electron)一款结合了大纲笔记和思维导图的头脑管理工具(packed from origin exe)"
9
arch=('x86_64')
10
url="https://mubu.com"
11
license=('LicenseRef-mubu')
12
provides=("${pkgname%-bin}=${pkgver}")
13
conflicts=("${pkgname%-bin}")
14
depends=(
15
"electron${_electronversion}"
16
)
17
makedepends=(
18
'7zip'
19
'gendesk'
20
'asar'
21
)
22
source=(
23
"${pkgname%-bin}-${pkgver}.exe::https://assets.mubu.com/client/${pkgver}/win/${_pkgname}-${pkgver}-x64.exe"
24
"LICENSE-${pkgver}.html::${url}/agreement"
25
"${pkgname%-bin}.sh"
26
)
27
sha256sums=('4abc01aeec9cfa8061e802d299bea41679e00997839e0c6bd617d68ddc466f44'
28
'dbc572392757c2abbb6d6d7ca62337561b46b8f3b403963a3624fa5a4884c4ec'
29
'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
30
_get_app_dir() {
31
find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
32
}
33
_check_electron_version() {
34
local _app_dir=$(_get_app_dir)
35
_elec_ver="$(strings "${_app_dir}/${_zhsname}.exe" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
36
echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
37
}
38
prepare() {
39
sed -i -e "
40
s/@electronversion@/${_electronversion}/g
41
s/@appname@/${pkgname%-bin}/g
42
s/@runname@/app.asar/g
43
s/@cfgdirname@/${_pkgname}\/${pkgname%-bin}_app_data/g
44
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
45
" "${srcdir}/${pkgname%-bin}.sh"
46
gendesk -f -n -q \
47
--pkgname="${pkgname%-bin}" \
48
--pkgdesc="${pkgdesc}" \
49
--categories="Office" \
50
--name="${_pkgname}" \
51
--exec="${pkgname%-bin} %U" \
52
--custom="Name[zh_CN]=${_zhsname}"
53
7z x -aoa "${srcdir}/${pkgname%-bin}-${pkgver}.exe"
54
_check_electron_version
55
local _app_dir=$(_get_app_dir)
56
asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
57
rm -rf "${_app_dir}/resources/app.asar"
58
find "${srcdir}/app.asar.unpacked" -type f -name "*.js" -exec sed -i "s/shortcut-logo.ico/logo.png/g" {} +
59
find "${srcdir}/app.asar.unpacked/node_modules" -type d \( -name "android-arm*" -o -name "darwin-*" -o -name "linux-arm*" -o -name "win32-*" \) \
60
-exec rm -rf {} +
61
asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
62
find "${_app_dir}/resources/app.asar.unpacked/node_modules" \
63
-type d \( -name "android-arm*" -o -name "darwin-*" -o -name "linux-arm*" -o -name "win32-*" \) \
64
-exec rm -rf {} +
65
}
66
package() {
67
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
68
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
69
local _app_dir=$(_get_app_dir)
70
cp -a "${_app_dir}/resources/". "${pkgdir}/usr/lib/${pkgname%-bin}/"
71
install -Dm644 "${_app_dir}/resources/app.asar.unpacked/icon/logo.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
72
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
73
install -Dm644 "${srcdir}/LICENSE-${pkgver}.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.html"
74
}
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 |