kontur-diag-plugin

MEDIUM
maintainer komex 2 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

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

Medium source=() URL on a non-standard host 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")
Medium AI review 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
1# Maintainer: Lionel Miller <delonorm at gmail dot com>
2# Maintainer: Andrey Kolchenko <andrey@kolchenko.me>
3
4pkgname=kontur-diag-plugin
5pkgver=3.1.2.373
6pkgrel=1
7pkgdesc="Diag.Plugin is an extension for web browsers that allows users to install cryptographic programs for SKB Kontur services."
8arch=('x86_64')
9license=('proprietary')
10depends=('gtk3')
11makedepends=('findutils' 'grep' 'sed' 'coreutils')
12url='https://help.kontur.ru/'
13
14_patch='001814'
15source=("https://api.kontur.ru/drive/v1/public/diag/files/diag.plugin-${pkgver}-${pkgrel}.${arch}.${_patch}.rpm")
16sha256sums=('ed1ae3c20ae8dd8c1c52fe86b1d8dc132f0918fd061debe87dff057b26fdd849')
17
18package() {
19 find "${srcdir}" -type f | grep -v lib64 | sed -e "s#${srcdir}/##g" | xargs -I{} install -Dvm644 "${srcdir}/{}" "${pkgdir}/{}"
20 find "${pkgdir}/opt" -type f | xargs chmod 755
21}
22
23

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion