at32-openocd-bin
The package downloads a prebuilt binary from the official vendor's domain (arterytek.com) for a legitimate tool; the non-whitelisted host is the project's own site, and the binary is installed as-is without obfuscation or remote code execution.
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 a prebuilt binary from the official vendor's domain (arterytek.com) for a legitimate tool; the non-whitelisted host is the project's own site, and the binary is installed as-is without obfuscation or remote code execution.
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:38
source=("${_pkg_file_name}.zip::https://www.arterytek.com/download/AT32%20IDE/${_pkg_file_name}.zip")
PKGBUILD
1 offending line(s) highlighted# Maintainer: taotieren <admin@taotieren.com>
pkgname=at32-openocd-bin
pkgver=2.1.0
pkgrel=3
# epoch=1
pkgdesc="AT32 OpenOCD 支持 AT32 MCU调试、编程及边界扫描"
arch=('x86_64')
url="https://www.arterytek.com/cn/support/tools.jsp"
license=('LicenseRef-scancode-commercial-license')
provides=(at32-openocd AT32OpenOCD)
conflicts=(at32-openocd AT32OpenOCD)
replaces=()
depends=(
sh
hidapi
libgcc_s.so
libstdc++.so
libusb
)
makedepends=(
libarchive
sed
)
optdepends=(
'artery-isp-console'
'at-link-console'
'at32-bootloader-doc'
'at32-ide-bin'
'at32-ide-project-generate'
'at32-new-clock-configuration'
'at32-work-bench'
'jlink-software-and-documentation: Segger JLink software & documentation pack for Linux')
backup=()
options=(!strip !emptydirs !staticlibs)
install=${pkgname}.install
_pkg_file_name=OpenOCD_Linux_${arch//_/-}_V${pkgver}
source=("${_pkg_file_name}.zip::https://www.arterytek.com/download/AT32%20IDE/${_pkg_file_name}.zip")
sha256sums=('3707a4e2610a04f65964eba91c1da2d014b867d296532f343760f48e5f5d5726')
noextract=(${_pkg_file_name}.zip)
package() {
install -dm0755 "${pkgdir}/opt/artery32/${pkgname%-bin}/"
bsdtar -xf ${srcdir}/${_pkg_file_name}.zip -C "${pkgdir}/opt/artery32/${pkgname%-bin}/"
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname%-bin}" <<EOF
#!/bin/bash
/opt/artery32/${pkgname%-bin}/openocd "\$@"
EOF
install -Dm0644 "${pkgdir}/opt/artery32/${pkgname%-bin}/contrib/60-openocd.rules" "${pkgdir}/etc/udev/rules.d/60-openocd-${pkgname%-bin}.rules"
sed -i 's|openocd_rules|openocd_at32_openocd_rules|g' "${pkgdir}/etc/udev/rules.d/60-openocd-${pkgname%-bin}.rules"
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/com.arterytek.at32openocd.metainfo.xml" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.arterytek.at32openocd</id>
<name>AT32OpenOCD</name>
<summary>AT32OpenOCD</summary>
<metadata_license>MIT</metadata_license>
<project_license>GPL-2.0-or-later</project_license>
<description>
<p>
AT32 OpenOCD 支持 AT32 MCU调试、编程及边界扫描
</p>
</description>
<launchable type="desktop-id">com.arterytek.at32openocd.desktop</launchable>
</component>
EOF
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/com.arterytek.at32openocd.desktop" <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=AT32OpenOCD
Comment=AT32OpenOCD
Categories=Development;Electronics;
Icon=${pkgname%-bin}
Exec=${pkgname%-bin}
Terminal=false
EOF
chown -R root:root "${pkgdir}/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |