kontur-diag-plugin
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-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 00:11:18 | MEDIUM | 2 |
| 2026-07-31 00:14:10 | MEDIUM | 2 |
| 2026-07-30 00:17:23 | MEDIUM | 2 |
| 2026-07-29 00:25:53 | MEDIUM | 2 |
| 2026-07-28 00:07:28 | MEDIUM | 2 |
| 2026-07-27 00:24:32 | MEDIUM | 2 |
| 2026-07-26 00:07:32 | MEDIUM | 2 |
| 2026-07-25 00:13:44 | MEDIUM | 2 |
| 2026-07-24 00:02:28 | MEDIUM | 2 |
| 2026-07-23 00:14:47 | MEDIUM | 2 |
| 2026-07-22 00:29:32 | MEDIUM | 2 |
| 2026-07-21 00:24:15 | MEDIUM | 2 |
| 2026-07-20 00:19:49 | MEDIUM | 2 |
| 2026-07-19 00:17:08 | MEDIUM | 2 |
| 2026-07-18 00:14:48 | MEDIUM | 2 |
| 2026-07-17 00:06:16 | MEDIUM | 2 |
| 2026-07-16 00:05:41 | MEDIUM | 2 |
| 2026-07-15 00:09:25 | MEDIUM | 2 |