libcorecrypto-git
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
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' \
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# Maintainer: Curve <curve.platin at gmail dot com>
pkgname="libcorecrypto-git"
pkgdesc="Library implementing Apple low-level cryptographic primitives"
pkgver=2021
pkgrel=1
url="https://developer.apple.com/security/"
license=("custom")
arch=("x86_64" "armv7h" "aarch64")
makedepends=("clang" "cmake" "curl" "unzip")
source=("LICENSE")
sha256sums=("ffaf28b090b70d896fad024204eb0a84d0fb4d2f32c9861b9ba7f78bc50120e7")
provides=("libcorecrypto")
conflicts=("libcorecrypto")
pkgver() {
curl -s https://developer.apple.com/security/ | grep 'rel="/file/?file=security&agree=Yes"' | cut -d "(" -f2 | cut -d ")" -f1 | grep -o '[0-9]\+'
}
build(){
curl -s 'https://developer.apple.com/file/?file=security&agree=Yes' \
-H 'Referer: https://developer.apple.com/security/' \
-H 'Accept-Encoding: gzip, deflate, br' \
-o "corecrypto.zip"
unzip -q -o "corecrypto.zip"
cd "corecrypto"
sed '/coverage/d' -i "CMakeLists.txt"
CC=clang CXX=clang++ cmake -B "build" -S . \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-Wno-dev
# https://github.com/NyaMisty/AltServer-Linux/
sed '/corecrypto_perf\|corecrypto_test/d' -i "build/CMakeFiles/Makefile2"
cmake --build "build" -j "$(nproc)"
}
package(){
cd "corecrypto"
make -C "build" DESTDIR="$pkgdir" install
install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/libcorecrypto/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |