bit4id-pki-manager
The package downloads a versioned zip from the project's official CDN containing a .deb, which is then extracted and repackaged; the source is not executed remotely, and the build process is transparent, making the risk low despite the non-whitelisted host.
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 versioned zip from the project's official CDN containing a .deb, which is then extracted and repackaged; the source is not executed remotely, and the build process is transparent, making the risk low despite the non-whitelisted host.
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:17
source=("Bit4id_Middleware-${pkgver}.zip::https://cdn.bit4id.com/es/soporte/downloads/middleware/Bit4id_Middleware.zip")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Slavi Pantaleev <slavi at devture.com>
pkgname=bit4id-pki-manager
pkgver=1.4.11.836
pkgrel=2
pkgdesc="Bit4ID PKI Manager application"
arch=('x86_64')
license=('unknown')
url="https://cdn.bit4id.com/es/middleware.htm"
options=('!strip')
# The app loads the system's /usr/lib/libpcsclite.so.1 and talks to pcscd.
# ccid provides the driver for most USB card readers.
depends=('pcsclite' 'ccid')
# Upstream (Bit4id) publishes an unversioned zip (containing a .deb and an .rpm),
# so we save it under a versioned name. The checksum will break when upstream replaces it with a newer release.
source=("Bit4id_Middleware-${pkgver}.zip::https://cdn.bit4id.com/es/soporte/downloads/middleware/Bit4id_Middleware.zip")
noextract=("Bit4id_Middleware-${pkgver}.zip")
sha256sums=('0f6d45d1f7d550f9188404feb23f977b8b19b4b7f5475eef8fc79647d9be9ff5')
prepare() {
bsdtar -xf "Bit4id_Middleware-${pkgver}.zip" Bit4id_Middleware.deb
}
package() {
bsdtar -xOf Bit4id_Middleware.deb data.tar.xz | bsdtar -xf - -C "$pkgdir"
# Remove drivers. They are packaged separately (as `bit4id-xpki`).
rm -rf "$pkgdir/usr/lib/bit4id"
rm -rf "$pkgdir/usr/share/bit4id/ccid"
# The app runs on its own bundled glibc, but loads the system's /usr/lib/libpcsclite.so.1 (hardcoded path).
# With pcsclite >= 2.x, that is a thin wrapper which loads `libpcsclite_real.so.1`, which requires a newer glibc than the bundled one,
# so the app finds no readers. The wrapper searches the app's LD_LIBRARY_PATH first,
# so we point it at the bundled (compatible) client library.
ln -s libpcsclite.so.1 "$pkgdir/usr/share/bit4id/x/pinmanager/lib/libpcsclite_real.so.1"
# Upstream's postinst copies this into place, but we don't run it.
# We also drop lines that `desktop-file-validate` complains about.
install -Dm644 "$pkgdir/usr/share/bit4id/x/bit4pin.desktop" "$pkgdir/usr/share/applications/bit4id-pki-manager.desktop"
sed -i '/^Encoding=/d; /^GenericName\[en_US\]=$/d' "$pkgdir/usr/share/applications/bit4id-pki-manager.desktop"
}
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 |