wch-bleuart-guide
wch-bleuart
scanned 2026-11-01 00:21:48.120785
The package downloads official vendor files (ZIP archives, PDFs, and a .deb) from the legitimate domain file.wch.cn, which is plausibly owned by the hardware manufacturer WCH; the files are extracted and installed without executing remote code, and the checksums are provided, making it a standard AUR package with a non-whitelisted but trusted source.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads official vendor files (ZIP archives, PDFs, and a .deb) from the legitimate domain file.wch.cn, which is plausibly owned by the hardware manufacturer WCH; the files are extracted and installed without executing remote code, and the checksums are provided, making it a standard AUR package with a non-whitelisted but trusted source.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:27
"wch-ble-lib-${pkgver}.zip::https://file.wch.cn/download/file?id=346"
PKGBUILD
1 offending line(s) highlighted# Maintainer: taotieren <admin@taotieren.com>
pkgbase=wch-bleuart
pkgname=($pkgbase wch-bleuart-app wch-ble-lib wch-bleuart-guide)
pkgver=1.4
pkgrel=1
arch=('x86_64')
url='http://www.mounriver.com/'
license=('GPL-2.0-or-later')
provides=()
conflicts=()
depends=(
bash
freetype2
fontconfig
glib2
glibc
libgcc
libgpg-error
libstdc++
java-runtime
zlib
)
makedepends=('libarchive' 'unarchiver')
optdepends=('mounriver-studio-toolchain-bin: This MRS Toolchain includes the tool chain for RISC-V kernel chip under Linux x64 and the debug download tool OpenOCD.')
source=(
"wch-ble-lib-${pkgver}.zip::https://file.wch.cn/download/file?id=346"
"wch-bleuart-app-${pkgver}.zip::https://file.wch.cn/download/file?id=347"
"CH9143DS1-${pkgver}.pdf::https://file.wch.cn/download/file?id=274"
"CH9140DS1-${pkgver}.pdf::https://file.wch.cn/download/file?id=331"
"CH9141DS1-${pkgver}.pdf::https://file.wch.cn/download/file?id=332"
)
sha256sums=('9f9326c81fdf2d1e88e621a628f1c5d64c55d07fd2dab67c5362a3c9b1a3282d'
'155facfb45e0bc3e8af3b9de2b6af1fd12a1a85f0770e71857ddc7b426b7dc18'
'95dac832cb5168d4388192baa16e84baf38672b39420fdd7bcd793c3784a2fd3'
'4013a01ef7a7928e3232b0aed9a4622ad4a9c4ac3481900c6ff895250de690ef'
'7d31eb1b4fede49c7f6786c072a6a4d61329dad797b1ad72e5060ac24f33456b')
noextract=(wch-bleuart-app-${pkgver}.zip wch-ble-lib-${pkgver}.zip)
package_wch-bleuart() {
pkgdesc="Wch-bleuart contains all related software packages of BleUart."
depends=(wch-bleuart-app wch-ble-lib wch-bleuart-guide)
}
package_wch-bleuart-app() {
pkgdesc="The software is used for the CH914X chip module of CH914X low-power Bluetooth to serial port."
install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
unar -e GBK "${srcdir}/${pkgname}-${pkgver}.zip" -o "${srcdir}"
bsdtar xf "${srcdir}/BleUartApp/Linux/bleuart_1.0_amd64.deb"
bsdtar xf "${srcdir}/data.tar.xz" --strip-components=3 -C "${pkgdir}/opt/wch/${pkgname}"
cp -r "${srcdir}"/BleUartApp/*.pdf "${pkgdir}/opt/wch/${pkgname}"
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/bleuart" <<EOF
#!/bin/env bash
cd /opt/wch/${pkgname}
exec ./BleUart "\$@"
EOF
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/bleuart.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=BleUart
Exec=bleuart
Icon=/opt/wch/${pkgname}/BleUart.ico
Comment=BleUart, V1.0 南京沁恒微电子股份有限公司 版权所有(C) WCH 2021
Terminal=false
Type=Application
Encoding=UTF-8
EOF
}
package_wch-ble-lib() {
pkgdesc="WCH BleLib Multi-system platform low Power Bluetooth Development Interface Library."
provides=('CH914X-lib' 'CH57X-lib' 'CH9140-lib' 'CH9141-lib' 'CH9143-lib' 'CH579-lib' 'CH578-lib' 'CH573-lib')
depends=()
install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
unar -e GBK "${srcdir}/${pkgname}-${pkgver}.zip"
cp -r "${srcdir}"/BleUartLib/* "${pkgdir}/opt/wch/${pkgname}"
install -Dm0755 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname}.sh" <<EOF
#!/bin/sh
[ -d /opt/wch/${pkgname}/Linux/LIB ] && append_path '/opt/wch/${pkgname}/Linux/LIB'
export PATH
EOF
}
package_wch-bleuart-guide() {
pkgdesc="Introduction to CH9140 CH9141 CH9143."
depends=()
install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
provides=('CH914X-guide' 'CH9140-guide' 'CH9141-guide' 'CH9143-guide')
cp -r "${srcdir}"/*.pdf "${pkgdir}/opt/wch/${pkgname}"
}
# vim: ts=4 sw=4 et
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |