libcorecrypto-git

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