libcorecrypto-git

maintainer orphaned · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a ZIP archive from developer.apple.com at build time via curl (not in source=()) with no checksum verification, then compiles and installs the resulting library. While developer.apple.com is Apple's official domain, the dynamic download pattern bypasses makepkg's integrity verification entirely — the downloaded binary/source content is never checksummed. The source is Apple's official corecrypto security library release page, which is a legitimate upstream, but the lack of a pinned checksum means any change to what Apple serves (or a MITM) would go undetected. This is a genuine supply-chain hygiene concern (executed compiled code from a dynamically fetched, unverified archive) that justifies MEDIUM. It is not HIGH because the host is Apple's official developer domain, not a personal/unofficial host, and there is no obfuscation or clearly malicious intent.

Triggered rules

MEDIUM External download from an untrusted host, not in source=() external_download_not_in_source

curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.

  • PKGBUILD:21 curl -s 'https://developer.apple.com/file/?file=security&agree=Yes' \
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 82%): The PKGBUILD downloads a ZIP archive from developer.apple.com at build time via curl (not in source=()) with no checksum verification, then compiles and installs the resulting library. While developer.apple.com is Apple's official domain, the dynamic download pattern bypasses makepkg's integrity verification entirely — the downloaded binary/source content is never checksummed. The source is Apple's official corecrypto security library release page, which is a legitimate upstream, but the lack of a pinned checksum means any change to what Apple serves (or a MITM) would go undetected. This is a genuine supply-chain hygiene concern (executed compiled code from a dynamically fetched, unverified archive) that justifies MEDIUM. It is not HIGH because the host is Apple's official developer domain, not a personal/unofficial host, and there is no obfuscation or clearly malicious intent.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Curve <curve.platin at gmail dot com>
2
3pkgname="libcorecrypto-git"
4pkgdesc="Library implementing Apple low-level cryptographic primitives"
5pkgver=2021
6pkgrel=1
7url="https://developer.apple.com/security/"
8license=("custom")
9arch=("x86_64" "armv7h" "aarch64")
10makedepends=("clang" "cmake" "curl" "unzip")
11source=("LICENSE")
12sha256sums=("ffaf28b090b70d896fad024204eb0a84d0fb4d2f32c9861b9ba7f78bc50120e7")
13provides=("libcorecrypto")
14conflicts=("libcorecrypto")
15
16pkgver() {
17 curl -s https://developer.apple.com/security/ | grep 'rel="/file/?file=security&agree=Yes"' | cut -d "(" -f2 | cut -d ")" -f1 | grep -o '[0-9]\+'
18}
19
20build(){
21 curl -s 'https://developer.apple.com/file/?file=security&agree=Yes' \
22 -H 'Referer: https://developer.apple.com/security/' \
23 -H 'Accept-Encoding: gzip, deflate, br' \
24 -o "corecrypto.zip"
25
26 unzip -q -o "corecrypto.zip"
27 cd "corecrypto"
28
29 sed '/coverage/d' -i "CMakeLists.txt"
30
31 CC=clang CXX=clang++ cmake -B "build" -S . \
32 -DCMAKE_BUILD_TYPE="Release" \
33 -DCMAKE_INSTALL_PREFIX="/usr" \
34 -DCMAKE_INSTALL_LIBDIR="lib" \
35 -Wno-dev
36
37 # https://github.com/NyaMisty/AltServer-Linux/
38 sed '/corecrypto_perf\|corecrypto_test/d' -i "build/CMakeFiles/Makefile2"
39
40 cmake --build "build" -j "$(nproc)"
41}
42
43package(){
44 cd "corecrypto"
45 make -C "build" DESTDIR="$pkgdir" install
46 install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/libcorecrypto/LICENSE"
47}
48
49

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