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-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |