rutoken-pkcs11
The PKGBUILD downloads a prebuilt .deb binary (a shared library librtpkcs11ecp.so) from download.rutoken.ru, which is the official vendor download server for Rutoken (a Russian hardware security token manufacturer). The library is installed directly into /usr/lib and will be loaded by applications at runtime, making it executed/trusted code. While the host appears to be the legitimate vendor's own distribution server and a sha256sum is provided, the binary is not signed by a distro-trusted key, comes from a vendor-controlled HTTP (not HTTPS) URL, and is a prebuilt native shared library — meaning any compromise of that server or URL would result in arbitrary code execution in any process loading PKCS#11 modules. The HTTP (non-TLS) URL is a notable concern as it allows MITM substitution despite the checksum (the checksum only protects against accidental corruption if the PKGBUILD itself isn't updated). This is a genuine medium-severity supply-chain concern: prebuilt binary from a vendor host over plain HTTP, not a false positive.
Triggered rules
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:13
source=("http://download.rutoken.ru/Rutoken/PKCS11Lib/${pkgver}/Linux/x64/librtpkcs11ecp_${pkgver}-1_amd64.deb")
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt .deb binary (a shared library librtpkcs11ecp.so) from download.rutoken.ru, which is the official vendor download server for Rutoken (a Russian hardware security token manufacturer). The library is installed directly into /usr/lib and will be loaded by applications at runtime, making it executed/trusted code. While the host appears to be the legitimate vendor's own distribution server and a sha256sum is provided, the binary is not signed by a distro-trusted key, comes from a vendor-controlled HTTP (not HTTPS) URL, and is a prebuilt native shared library — meaning any compromise of that server or URL would result in arbitrary code execution in any process loading PKCS#11 modules. The HTTP (non-TLS) URL is a notable concern as it allows MITM substitution despite the checksum (the checksum only protects against accidental corruption if the PKGBUILD itself isn't updated). This is a genuine medium-severity supply-chain concern: prebuilt binary from a vendor host over plain HTTP, not a false positive.
PKGBUILD
1 offending line(s) highlighted# Contributor: Andrey Kolchenko <andrey@kolchenko.me>
pkgname=rutoken-pkcs11
pkgver=2.19.0.0
pkgrel=1
pkgdesc='Интерфейс RSALabs PKCS#11'
arch=('x86_64')
url='https://www.rutoken.ru/support/download/pkcs/'
license=('custom:rutoken')
options=(!strip)
_file='librtpkcs11ecp.so'
source=("http://download.rutoken.ru/Rutoken/PKCS11Lib/${pkgver}/Linux/x64/librtpkcs11ecp_${pkgver}-1_amd64.deb")
sha256sums=('6cf9fe1209bc5bcddcc0765171cc6e261a2af43b08e1c3d44f6ff300204934a2')
package() {
bsdtar -xf "${srcdir}/data.tar.xz"
mkdir -p "${pkgdir}/usr/lib"
cp -L "${srcdir}/opt/aktivco/rutokenecp/amd64/librtpkcs11ecp.so" "${pkgdir}/usr/lib"
install -Dm644 "${srcdir}/usr/share/doc/rtpkcs11ecp/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |