ccgraphitep11

maintainer vitaliikuzhdin · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged This PKGBUILD downloads a prebuilt binary shared library (libCCGraphiteP11.so) from download.cryptotech.com.pl with sha256sums_x86_64='SKIP', meaning no integrity verification is performed on the executed binary. The library is a PKCS#11 module that will be loaded into security-sensitive processes (e.g., browsers, SSH agents, smart card middleware). Additionally, the DLAGENTS override uses --insecure to disable TLS certificate verification, removing the only remaining transport-layer protection. While cryptotech.com.pl appears to be the legitimate vendor's own download server (matching the package URL), the combination of: (1) a prebuilt binary installed as a system library, (2) no checksum verification, and (3) TLS verification explicitly disabled constitutes a genuine supply-chain risk. If the download server is compromised or the DNS is hijacked, an arbitrary .so would be installed with no integrity check. This is a real medium-severity concern, not a false positive.

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:30 "${_Name}-${CARCH}.tar.gz::https://download.cryptotech.com.pl/?key=graphitep11x64linux&mode=2"
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 82%): This PKGBUILD downloads a prebuilt binary shared library (libCCGraphiteP11.so) from download.cryptotech.com.pl with sha256sums_x86_64='SKIP', meaning no integrity verification is performed on the executed binary. The library is a PKCS#11 module that will be loaded into security-sensitive processes (e.g., browsers, SSH agents, smart card middleware). Additionally, the DLAGENTS override uses --insecure to disable TLS certificate verification, removing the only remaining transport-layer protection. While cryptotech.com.pl appears to be the legitimate vendor's own download server (matching the package URL), the combination of: (1) a prebuilt binary installed as a system library, (2) no checksum verification, and (3) TLS verification explicitly disabled constitutes a genuine supply-chain risk. If the download server is compromised or the DNS is hijacked, an arbitrary .so would be installed with no integrity check. This is a real medium-severity concern, not a false positive.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
2
3_Name="CCGraphiteP11"
4pkgname="${_Name,,}"
5pkgver=2.0.5.6
6pkgrel=1
7pkgdesc="PKCS#11 CryptoCard Graphite library"
8arch=(
9 'x86_64'
10)
11url="https://www.cryptotech.com.pl/en/technical-support/smart-card-software/"
12license=(
13 'LicenseRef-CryptoTech'
14)
15depends=(
16 'glibc'
17 'libgcc'
18 'pcsclite'
19)
20makedepends=(
21 'curl'
22)
23provides=(
24 "lib${_Name}.so"
25)
26source=(
27 "${_Name}.module"
28)
29source_x86_64=(
30 "${_Name}-${CARCH}.tar.gz::https://download.cryptotech.com.pl/?key=graphitep11x64linux&mode=2"
31)
32noextract=(
33 "${_Name}-${CARCH}.tar.gz"
34)
35sha256sums=('5fbe54e8f660906803ef89052ec3e438cb00f495d8219a422e51a9da496a3e47')
36sha256sums_x86_64=('SKIP')
37DLAGENTS=(
38 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 --insecure -o %o %u'
39)
40
41prepare() {
42 cd "${srcdir}"
43 rm -rf "${_Name}-${CARCH}"
44 mkdir -p "${_Name}-${CARCH}"
45 bsdtar -xvzf "${_Name}-${CARCH}.tar.gz" -C "${_Name}-${CARCH}"
46}
47
48pkgver() {
49 cd "${srcdir}/${_Name}-${CARCH}"
50 find . -type f -name 'libCCGraphiteP11.so.*' \
51 | sort \
52 | head -n1 \
53 | sed 's#.*/libCCGraphiteP11\.so\.##'
54}
55
56package() {
57 cd "${srcdir}"
58 install -vd "${pkgdir}/usr/lib"
59 cp -vaT --no-preserve=ownership "${_Name}-${CARCH}" "${pkgdir}/usr/lib"
60
61 install -vDm644 "${_Name}.module" "${pkgdir}/usr/share/p11-kit/modules/${_Name}.module"
62
63 install -vd "${pkgdir}/usr/lib/pkcs11"
64 ln -vsf "/usr/lib/lib${_Name}.so" "${pkgdir}/usr/lib/pkcs11/lib${_Name}.so"
65}
66

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