at32-openocd-bin

LOW
maintainer taotieren 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

Low AI review downgraded a static finding 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)
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:38 source=("${_pkg_file_name}.zip::https://www.arterytek.com/download/AT32%20IDE/${_pkg_file_name}.zip")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: taotieren <admin@taotieren.com>
2
3pkgname=at32-openocd-bin
4pkgver=2.1.0
5pkgrel=3
6# epoch=1
7pkgdesc="AT32 OpenOCD 支持 AT32 MCU调试、编程及边界扫描"
8arch=('x86_64')
9url="https://www.arterytek.com/cn/support/tools.jsp"
10license=('LicenseRef-scancode-commercial-license')
11provides=(at32-openocd AT32OpenOCD)
12conflicts=(at32-openocd AT32OpenOCD)
13replaces=()
14depends=(
15 sh
16 hidapi
17 libgcc_s.so
18 libstdc++.so
19 libusb
20)
21makedepends=(
22 libarchive
23 sed
24)
25optdepends=(
26 'artery-isp-console'
27 'at-link-console'
28 'at32-bootloader-doc'
29 'at32-ide-bin'
30 'at32-ide-project-generate'
31 'at32-new-clock-configuration'
32 'at32-work-bench'
33 'jlink-software-and-documentation: Segger JLink software & documentation pack for Linux')
34backup=()
35options=(!strip !emptydirs !staticlibs)
36install=${pkgname}.install
37_pkg_file_name=OpenOCD_Linux_${arch//_/-}_V${pkgver}
38source=("${_pkg_file_name}.zip::https://www.arterytek.com/download/AT32%20IDE/${_pkg_file_name}.zip")
39sha256sums=('3707a4e2610a04f65964eba91c1da2d014b867d296532f343760f48e5f5d5726')
40noextract=(${_pkg_file_name}.zip)
41
42package() {
43 install -dm0755 "${pkgdir}/opt/artery32/${pkgname%-bin}/"
44
45 bsdtar -xf ${srcdir}/${_pkg_file_name}.zip -C "${pkgdir}/opt/artery32/${pkgname%-bin}/"
46
47 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname%-bin}" <<EOF
48#!/bin/bash
49/opt/artery32/${pkgname%-bin}/openocd "\$@"
50EOF
51
52 install -Dm0644 "${pkgdir}/opt/artery32/${pkgname%-bin}/contrib/60-openocd.rules" "${pkgdir}/etc/udev/rules.d/60-openocd-${pkgname%-bin}.rules"
53 sed -i 's|openocd_rules|openocd_at32_openocd_rules|g' "${pkgdir}/etc/udev/rules.d/60-openocd-${pkgname%-bin}.rules"
54
55 install -Dm0644 /dev/stdin "${pkgdir}/usr/share/metainfo/com.arterytek.at32openocd.metainfo.xml" <<EOF
56<?xml version="1.0" encoding="UTF-8"?>
57<component type="desktop-application">
58 <id>com.arterytek.at32openocd</id>
59
60 <name>AT32OpenOCD</name>
61 <summary>AT32OpenOCD</summary>
62
63 <metadata_license>MIT</metadata_license>
64 <project_license>GPL-2.0-or-later</project_license>
65
66 <description>
67 <p>
68 AT32 OpenOCD 支持 AT32 MCU调试、编程及边界扫描
69 </p>
70 </description>
71
72 <launchable type="desktop-id">com.arterytek.at32openocd.desktop</launchable>
73</component>
74EOF
75
76 install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/com.arterytek.at32openocd.desktop" <<EOF
77[Desktop Entry]
78Version=1.0
79Type=Application
80
81Name=AT32OpenOCD
82Comment=AT32OpenOCD
83Categories=Development;Electronics;
84
85Icon=${pkgname%-bin}
86Exec=${pkgname%-bin}
87Terminal=false
88EOF
89 chown -R root:root "${pkgdir}/"
90}
91

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion