kontur-diag-plugin
The PKGBUILD downloads a prebuilt RPM binary from api.kontur.ru (SKB Kontur's own API/CDN endpoint) and installs its contents, including executables under /opt set to mode 755. SKB Kontur is a legitimate Russian software company providing cryptographic/PKI services, and api.kontur.ru is their official distribution endpoint, not a personal or unofficial host. However, the package installs prebuilt binaries (browser extension native host / cryptographic library) without source, relying solely on a sha256 checksum for integrity. The checksum provides some protection against transit tampering but not against a compromised upstream host silently replacing the file. The install logic (find+grep+sed+xargs) is unusual but functional — it installs everything except lib64 paths and then chmod 755s everything under /opt, which is a reasonable way to unpack an RPM without rpmextract. This is a genuine medium-risk pattern: executed proprietary binaries from a vendor API endpoint with no source transparency, but not clearly malicious.
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:15
source=("https://api.kontur.ru/drive/v1/public/diag/files/diag.plugin-${pkgver}-${pkgrel}.${arch}.${_patch}.rpm")
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 RPM binary from api.kontur.ru (SKB Kontur's own API/CDN endpoint) and installs its contents, including executables under /opt set to mode 755. SKB Kontur is a legitimate Russian software company providing cryptographic/PKI services, and api.kontur.ru is their official distribution endpoint, not a personal or unofficial host. However, the package installs prebuilt binaries (browser extension native host / cryptographic library) without source, relying solely on a sha256 checksum for integrity. The checksum provides some protection against transit tampering but not against a compromised upstream host silently replacing the file. The install logic (find+grep+sed+xargs) is unusual but functional — it installs everything except lib64 paths and then chmod 755s everything under /opt, which is a reasonable way to unpack an RPM without rpmextract. This is a genuine medium-risk pattern: executed proprietary binaries from a vendor API endpoint with no source transparency, but not clearly malicious.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Lionel Miller <delonorm at gmail dot com>
# Maintainer: Andrey Kolchenko <andrey@kolchenko.me>
pkgname=kontur-diag-plugin
pkgver=3.1.2.373
pkgrel=1
pkgdesc="Diag.Plugin is an extension for web browsers that allows users to install cryptographic programs for SKB Kontur services."
arch=('x86_64')
license=('proprietary')
depends=('gtk3')
makedepends=('findutils' 'grep' 'sed' 'coreutils')
url='https://help.kontur.ru/'
_patch='001814'
source=("https://api.kontur.ru/drive/v1/public/diag/files/diag.plugin-${pkgver}-${pkgrel}.${arch}.${_patch}.rpm")
sha256sums=('ed1ae3c20ae8dd8c1c52fe86b1d8dc132f0918fd061debe87dff057b26fdd849')
package() {
find "${srcdir}" -type f | grep -v lib64 | sed -e "s#${srcdir}/##g" | xargs -I{} install -Dvm644 "${srcdir}/{}" "${pkgdir}/{}"
find "${pkgdir}/opt" -type f | xargs chmod 755
}
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 |