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-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 |