kontur-diag-plugin

MEDIUM
maintainer komex 2 votes scanned 2026-09-17 00:27:14.276658
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-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

Report a package

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

0 / 4000
Your suggestion