mubu-bin

MEDIUM
maintainer zxp19821005 2 votes scanned 2026-09-17 00:27:14.276658
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>
2pkgname=mubu-bin
3_pkgname=Mubu
4_zhsname='幕布'
5pkgver=5.7.0
6_electronversion=32
7pkgrel=1
8pkgdesc="A mind management tool that combines outline notes and mind maps.(Prebuilt version.Use system-wide electron)一款结合了大纲笔记和思维导图的头脑管理工具(packed from origin exe)"
9arch=('x86_64')
10url="https://mubu.com"
11license=('LicenseRef-mubu')
12provides=("${pkgname%-bin}=${pkgver}")
13conflicts=("${pkgname%-bin}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 '7zip'
19 'gendesk'
20 'asar'
21)
22source=(
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)
27sha256sums=('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}
38prepare() {
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}
66package() {
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)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 00:19:57 Medium 2
2026-08-30 00:04:14 Medium 2
2026-08-29 00:29:17 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