wch-bleuart

maintainer taotieren · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads official vendor files from the company's own API domain (api.wch.cn), which is plausibly legitimate; the files include a prebuilt .deb and libraries, but given the vendor context and verifiable checksums, the risk is low despite the non-standard URL format.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads official vendor files from the company's own API domain (api.wch.cn), which is plausibly legitimate; the files include a prebuilt .deb and libraries, but given the vendor context and verifiable checksums, the risk is low despite the non-standard URL format.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:24 "wch-ble-lib-${pkgver}.zip::https://api.wch.cn/api/official/website/common/downloadFile?fileName=BleUartLib.ZIP"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: taotieren <admin@taotieren.com>
2
3pkgbase=wch-bleuart
4pkgname=($pkgbase wch-bleuart-app wch-ble-lib wch-bleuart-guide)
5pkgver=1.3
6pkgrel=1
7arch=('x86_64')
8url='http://www.mounriver.com/'
9license=('GPL-2.0-or-later')
10provides=()
11conflicts=()
12depends=(
13 bash
14 gcc-libs
15 glib2
16 glibc
17 libgpg-error
18 java-runtime
19 zlib
20)
21makedepends=('libarchive' 'unarchiver')
22optdepends=('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.')
23source=(
24 "wch-ble-lib-${pkgver}.zip::https://api.wch.cn/api/official/website/common/downloadFile?fileName=BleUartLib.ZIP"
25 "wch-bleuart-app-${pkgver}.zip::https://api.wch.cn/api/official/website/common/downloadFile?fileName=BleUartApp.ZIP"
26 "CH9143DS1-${pkgver}.pdf::https://api.wch.cn/api/official/website/common/downloadFile?fileName=CH9143DS1.PDF"
27 "CH9140DS1-${pkgver}.pdf::https://api.wch.cn/api/official/website/common/downloadFile?fileName=CH9140DS1.PDF"
28 "CH9141DS1-${pkgver}.pdf::https://api.wch.cn/api/official/website/common/downloadFile?fileName=CH9141DS1.PDF"
29
30)
31
32sha256sums=('9f9326c81fdf2d1e88e621a628f1c5d64c55d07fd2dab67c5362a3c9b1a3282d'
33 '85cd9431265bb728d5f89bb72947b6deb62338689c8be647027b07314dbeed48'
34 '7d31eb1b4fede49c7f6786c072a6a4d61329dad797b1ad72e5060ac24f33456b'
35 '4013a01ef7a7928e3232b0aed9a4622ad4a9c4ac3481900c6ff895250de690ef'
36 '95dac832cb5168d4388192baa16e84baf38672b39420fdd7bcd793c3784a2fd3')
37
38noextract=(wch-bleuart-app-${pkgver}.zip wch-ble-lib-${pkgver}.zip)
39
40package_wch-bleuart() {
41 pkgdesc="Wch-bleuart contains all related software packages of BleUart."
42 depends=(wch-bleuart-app wch-ble-lib wch-bleuart-guide)
43}
44
45package_wch-bleuart-app() {
46 pkgdesc="The software is used for the CH914X chip module of CH914X low-power Bluetooth to serial port."
47
48 install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
49
50 unar -e GBK "${srcdir}/${pkgname}-${pkgver}.zip" -o "${srcdir}"
51 bsdtar xf "${srcdir}/BleUartApp/Linux/bleuart_1.0_amd64.deb"
52 bsdtar xf "${srcdir}/data.tar.xz" --strip-components=3 -C "${pkgdir}/opt/wch/${pkgname}"
53 cp -r "${srcdir}"/BleUartApp/*.pdf "${pkgdir}/opt/wch/${pkgname}"
54
55 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/bleuart" <<EOF
56#!/bin/env bash
57
58cd /opt/wch/${pkgname}
59exec ./BleUart "\$@"
60
61EOF
62 install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/bleuart.desktop" <<EOF
63[Desktop Entry]
64Type=Application
65Name=BleUart
66Exec=bleuart
67Icon=/opt/wch/${pkgname}/BleUart.ico
68Comment=BleUart, V1.0 南京沁恒微电子股份有限公司 版权所有(C) WCH 2021
69Terminal=false
70Type=Application
71Encoding=UTF-8
72
73EOF
74}
75
76package_wch-ble-lib() {
77 pkgdesc="WCH BleLib Multi-system platform low Power Bluetooth Development Interface Library."
78 provides=('CH914X-lib' 'CH57X-lib' 'CH9140-lib' 'CH9141-lib' 'CH9143-lib' 'CH579-lib' 'CH578-lib' 'CH573-lib')
79 install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
80
81 unar -e GBK "${srcdir}/${pkgname}-${pkgver}.zip"
82 cp -r "${srcdir}"/BleUartLib/* "${pkgdir}/opt/wch/${pkgname}"
83
84 install -Dm0755 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname}.sh" <<EOF
85#!/bin/sh
86[ -d /opt/wch/${pkgname}/Linux/LIB ] && append_path '/opt/wch/${pkgname}/Linux/LIB'
87
88export PATH
89EOF
90}
91
92package_wch-bleuart-guide() {
93 pkgdesc="Introduction to CH9140 CH9141 CH9143."
94 install -dm0755 "${pkgdir}/opt/wch/${pkgname}"
95 provides=('CH914X-guide' 'CH9140-guide' 'CH9141-guide' 'CH9143-guide')
96 cp -r "${srcdir}"/*.pdf "${pkgdir}/opt/wch/${pkgname}"
97}
98# vim: ts=4 sw=4 et
99

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion