pegdbserver_power
The PKGBUILD fetches a prebuilt JAR (containing native Linux binaries under lin/) from pemicro.com at build time inside prepare(), outside the source=() array, meaning no checksum verification is performed. The downloaded JAR is then unpacked and its contents (pegdbserver_power_console and GDI libraries) are installed as executable binaries. While pemicro.com is the legitimate vendor site, the lack of integrity verification means any MITM or server-side substitution would silently deliver arbitrary code that gets installed and executed. This is a genuine supply-chain concern: executed native binaries from an external host with no checksum. The pattern of dynamic version discovery followed by an unverified binary download is a real medium-severity risk, not a false positive.
Triggered rules
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:20
wget -q -O- http://www.pemicro.com/eclipse/updates/com.pemicro.debug.gdbjtag.ppc.updatesite/artifacts.jar | \ -
PKGBUILD:22
wget -O source.jar http://www.pemicro.com/eclipse/updates/com.pemicro.debug.gdbjtag.ppc.updatesite/plugins/com.pemicro.debug.gdbjtag.ppc_$(cat version).jar
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 82%): The PKGBUILD fetches a prebuilt JAR (containing native Linux binaries under lin/) from pemicro.com at build time inside prepare(), outside the source=() array, meaning no checksum verification is performed. The downloaded JAR is then unpacked and its contents (pegdbserver_power_console and GDI libraries) are installed as executable binaries. While pemicro.com is the legitimate vendor site, the lack of integrity verification means any MITM or server-side substitution would silently deliver arbitrary code that gets installed and executed. This is a genuine supply-chain concern: executed native binaries from an external host with no checksum. The pattern of dynamic version discovery followed by an unverified binary download is a real medium-severity risk, not a false positive.
PKGBUILD
2 offending line(s) highlighted#
# Maintainer: Patrick Oppenlander <patrick.oppenlander at gmail.com>
#
pkgname=pegdbserver_power
pkgver=2.0.2.202005132054
pkgrel=1
pkgdesc="GDB server for Power devices using P&E JTAG hardware"
url="http://www.pemicro.com"
arch=(x86_64)
license=(custom)
depends=(libusb-compat)
makedepends=(wget unzip gzip)
install=pegdbserver_power.install
source=(license_gdb.pdf 55-pemicro.rules)
sha256sums=(6b135ddd5388f6a0dd1d1d9d6c6d7321423f391914312c4a4aafd9d851d10dbc
4b9812f801faedb8a39c7e95bd829efeeb2941b1f4fb3ca774cfbf1ef4fa4081)
options=('!strip')
prepare() {
wget -q -O- http://www.pemicro.com/eclipse/updates/com.pemicro.debug.gdbjtag.ppc.updatesite/artifacts.jar | \
zcat | grep "<artifact.*com.pemicro.debug.gdbjtag.ppc.feature" | cut -d\' -f6 > version
wget -O source.jar http://www.pemicro.com/eclipse/updates/com.pemicro.debug.gdbjtag.ppc.updatesite/plugins/com.pemicro.debug.gdbjtag.ppc_$(cat version).jar
unzip -q source.jar
}
pkgver() {
cat version
}
package() {
mkdir -p "$pkgdir/opt/$pkgname"
cp -r lin/* "$pkgdir/opt/$pkgname"
chmod +x "$pkgdir/opt/$pkgname/pegdbserver_power_console"
chmod 644 "$pkgdir/opt/$pkgname/gdi/P&E"/*
chmod 666 "$pkgdir/opt/$pkgname/gdi/P&E"/*.add
mkdir -p "$pkgdir/etc/udev/rules.d"
cp 55-pemicro.rules "$pkgdir/etc/udev/rules.d"
mkdir -p "$pkgdir/usr/bin"
ln -s /opt/$pkgname/pegdbserver_power_console "$pkgdir/usr/bin/pegdbserver_power_console"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp license_gdb.pdf "$pkgdir/usr/share/licenses/$pkgname"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |