yubihsm2-sdk
The package downloads prebuilt RPMs from Yubico's official developer domain, extracts and installs binaries and libraries; while the host is not a standard code forge, it is the official vendor site, and the installed components are legitimate SDK tools and libraries for YubiHSM2, with no evidence of malicious or obfuscated 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 prebuilt RPMs from Yubico's official developer domain, extracts and installs binaries and libraries; while the host is not a standard code forge, it is the official vendor site, and the installed components are legitimate SDK tools and libraries for YubiHSM2, with no evidence of malicious or obfuscated 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:15
"https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-2024-09-fedora40-amd64.tar.gz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
pkgname=yubihsm2-sdk
pkgver=2024.09
pkgrel=1
pkgdesc="YubiHSM2 SDK"
url="https://developers.yubico.com/YubiHSM2/Releases/"
arch=(x86_64)
license=(Apache "custom:https://www.yubico.com/support/terms-conditions/yubico-license-agreement/")
# bind contains pkcs11.h
# libusb contains libusb-1.0.so
# openssl contains libcrypto.so
depends=(bind curl libusb)
source=(
"https://developers.yubico.com/YubiHSM2/Releases/yubihsm2-sdk-2024-09-fedora40-amd64.tar.gz"
"70-yubihsm2.rules"
"yubihsm-connector.service"
"yubihsm-connector.yaml"
)
sha256sums=('aa0bf9dbca4e3b392a57b085ff2141246e4f7a30953d85a4f043e61fe8d4dd86'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd $srcdir
mkdir -p yubihsm-connector
bsdtar -xf yubihsm2-sdk/yubihsm-connector-3.0.5-1.fc40.x86_64.rpm -C yubihsm-connector
mkdir -p yubihsm-devel
bsdtar -xf yubihsm2-sdk/yubihsm-devel-2.6.0-1.fc40.x86_64.rpm -C yubihsm-devel
mkdir -p yubihsm-setup
bsdtar -xf yubihsm2-sdk/yubihsm-setup-2.3.2-1.fc40.x86_64.rpm -C yubihsm-setup
mkdir -p yubihsm-shell
bsdtar -xf yubihsm2-sdk/yubihsm-shell-2.6.0-1.fc40.x86_64.rpm -C yubihsm-shell
}
package() {
# yubihsm-connector
install -Dt "$pkgdir/usr/bin" yubihsm-connector/usr/bin/yubihsm-connector
install -Dt "$pkgdir/usr/share/licenses/$pkgname/yubihsm-connector" yubihsm-connector/usr/share/licenses/yubihsm-connector/LICENSE
# yubihsm-devel
install -Dt "$pkgdir/usr/include" yubihsm-devel/usr/include/yubihsm.h
# install -Dt "$pkgdir/usr/include/pkcs11" yubihsm-devel/usr/include/pkcs11/pkcs11.h
install -Dt "$pkgdir/usr/include/pkcs11" yubihsm-devel/usr/include/pkcs11/pkcs11y.h
mkdir "$pkgdir/usr/lib"
cp -d yubihsm-devel/usr/lib64/libyubihsm_http.so "$pkgdir/usr/lib"
cp -d yubihsm-devel/usr/lib64/libyubihsm.so "$pkgdir/usr/lib"
cp -d yubihsm-devel/usr/lib64/libyubihsm_usb.so "$pkgdir/usr/lib"
install -Dt "$pkgdir/usr/lib/pkgconfig" yubihsm-devel/usr/lib64/pkgconfig/yubihsm.pc
# yubihsm-setup
install -Dt "$pkgdir/usr/bin" yubihsm-setup/usr/bin/yubihsm-setup
# yubihsm-shell
shell_version=2.6.0
install -Dt "$pkgdir/usr/bin" yubihsm-shell/usr/bin/yubihsm-shell
install -Dt "$pkgdir/usr/bin" yubihsm-shell/usr/bin/yubihsm-wrap
cp -d yubihsm-shell/usr/lib64/libyubihsm_http.so.2 "$pkgdir/usr/lib"
install -Dt "$pkgdir/usr/lib" yubihsm-shell/usr/lib64/libyubihsm_http.so.${shell_version}
cp -d yubihsm-shell/usr/lib64/libyubihsm.so.2 "$pkgdir/usr/lib"
install -Dt "$pkgdir/usr/lib" yubihsm-shell/usr/lib64/libyubihsm.so.${shell_version}
cp -d yubihsm-shell/usr/lib64/libykhsmauth.so.2 "$pkgdir/usr/lib"
install -Dt "$pkgdir/usr/lib" yubihsm-shell/usr/lib64/libykhsmauth.so.${shell_version}
cp -d yubihsm-shell/usr/lib64/libyubihsm_usb.so.2 "$pkgdir/usr/lib"
install -Dt "$pkgdir/usr/lib" yubihsm-shell/usr/lib64/libyubihsm_usb.so.${shell_version}
install -Dt "$pkgdir/usr/lib/pkcs11" yubihsm-shell/usr/lib64/pkcs11/yubihsm_pkcs11.so
install -Dt "$pkgdir/usr/share/licenses/$pkgname/yubihsm-shell" yubihsm-shell/usr/share/licenses/yubihsm-shell/LICENSE
# udev rule
# NB: /usr/lib/udev/rules.d/30-systemd-udev-reload.hook a triggers on installation
# of this file, so we don't need additional post_{install,upgrade} scripts
install -m644 -Dt "$pkgdir/usr/lib/udev/rules.d" 70-yubihsm2.rules
# sample systemd service
install -Dm644 yubihsm-connector.service -t $pkgdir/usr/lib/systemd/system
install -Dm644 yubihsm-connector.yaml -t $pkgdir/etc
}
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 |