libcorecrypto-git
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-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 |