synwit-jlink-pack
The package downloads a non-executable data archive from the project's official website to install J-Link device support files; the source is from a plausibly legitimate project host, and the installed content is configuration data, not executable code.
Triggered rules
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 a non-executable data archive from the project's official website to install J-Link device support files; the source is from a plausibly legitimate project host, and the installed content is configuration data, not executable code.
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:23
source=("${pkgname}-${pkgver}.rar::https://www.synwit.cn/uploads/soft/20220721/1-220H1111129320.rar"
PKGBUILD
1 offending line(s) highlighted# Maintainer: taotieren <admin@taotieren.com>
pkgname=synwit-jlink-pack
pkgver=220311
pkgrel=1
epoch=
pkgdesc="JLINK Pack 支持包支持华芯微特 MCU 全系列芯片,在 SEGGER JLink 7.62 及以上版本下的安装。"
arch=('any')
url="https://www.synwit.cn/wendang455/"
license=('custom' 'Commercial')
groups=()
depends=("jlink-software-and-documentation>=7.62")
makedepends=('libarchive')
checkdepends=()
optdepends=()
provides=('SWM32_JLINK_pack')
conflicts=()
replaces=()
backup=()
options=('!strip')
install=${pkgname}.install
changelog=
source=("${pkgname}-${pkgver}.rar::https://www.synwit.cn/uploads/soft/20220721/1-220H1111129320.rar"
"${pkgname}.install")
noextract=(${pkgname}-${pkgver}.rar)
sha256sums=('08699993243e4809296339beaa1b2ac5a17140eb78ad0d8eb274d86e0cfed9a7'
'c817d29ac83eed7bf124ffe059a0c0a0e892630cafcd057d99c25d52e0b7cebd')
package() {
_name=synwit
_aname=swm32
_path=$_name/$_aname
install -dm0755 "${pkgdir}/opt/$_path/" \
"${pkgdir}/opt/$_path/Devices/"
bsdtar -xf "${srcdir}/${pkgname}-${pkgver}.rar" --strip-components=1 -C "${pkgdir}/opt/$_path/"
mv "${pkgdir}/opt/$_path/JFLASH.txt" "${pkgdir}/opt/$_path/$_aname.xml"
mv "${pkgdir}/opt/$_path/Synwit" "${pkgdir}/opt/$_path/Devices/"
sed "1i<DataBase>" -i "${pkgdir}/opt/$_path/$_aname.xml"
echo "</DataBase>" >> "${pkgdir}/opt/$_path/$_aname.xml"
find "${pkgdir}/opt/$_path/" -type f -exec chmod 644 "{}" \;
find "${pkgdir}/opt/$_path/" -type d -exec chmod 755 "{}" \;
install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" << EOF
#!/bin/bash
if [ ! -d "$HOME"/.config/SEGGER/JLinkDevices ] ; then
mkdir -p $HOME/.config/SEGGER/JLinkDevices || exit 1
fi
if [ -d "$HOME"/.config/SEGGER/JLinkDevices/$_aname ] ; then
rm -rf $HOME/.config/SEGGER/JLinkDevices/$_aname || exit 1
fi
if [ ! -d "$HOME"/.config/SEGGER/JLinkDevices/$_aname ] ; then
cp -r /opt/$_path $HOME/.config/SEGGER/JLinkDevices/ || exit 1
fi
EOF
}
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 |