kontur-diag-plugin

maintainer komex · 2 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
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-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

Report a package

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

0 / 4000
Your suggestion