ld64

maintainer Dralanjhgi · 0 votes · scanned 2026-08-03 00:08:14.047287
HIGH
View on AUR ↗
Why flagged Multiple serious issues: (1) The package() function re-downloads the .deb at install time via wget from assets.checkra.in, completely bypassing the sha256sum integrity check that was performed on the source= download — the runtime wget fetch is entirely unverified. (2) It uses 'sudo cp -r usr/ /' inside the package() function, which is a severe packaging violation that directly writes files to the live root filesystem instead of into $pkgdir, bypassing pacman's package management entirely. (3) assets.checkra.in is the checkra1n jailbreak project's asset host — while not inherently malicious, it is an unofficial third-party host for a prebuilt binary (a linker, ld64) that gets executed as a system tool. The combination of: unverified runtime binary download + direct root filesystem modification via sudo makes this a genuine code-execution/supply-chain risk regardless of intent. The sha256sum on the source= entry is irrelevant since the actual installed binary comes from the second unverified wget call.

Triggered rules

MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:11 source=('http://assets.checkra.in/debian/ld64_530-2_amd64.deb')
HIGH AI review of an ambiguous pattern llm_review

The static rules found a suspicious pattern they could not resolve, so an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed it and judged it HIGH (confidence 92%): Multiple serious issues: (1) The package() function re-downloads the .deb at install time via wget from assets.checkra.in, completely bypassing the sha256sum integrity check that was performed on the source= download — the runtime wget fetch is entirely unverified. (2) It uses 'sudo cp -r usr/ /' inside the package() function, which is a severe packaging violation that directly writes files to the live root filesystem instead of into $pkgdir, bypassing pacman's package management entirely. (3) assets.checkra.in is the checkra1n jailbreak project's asset host — while not inherently malicious, it is an unofficial third-party host for a prebuilt binary (a linker, ld64) that gets executed as a system tool. The combination of: unverified runtime binary download + direct root filesystem modification via sudo makes this a genuine code-execution/supply-chain risk regardless of intent. The sha256sum on the source= entry is irrelevant since the actual installed binary comes from the second unverified wget call.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Alan Lutter (alan.lutter@outlook.sk)
2pkgrel=0
3pkgname=ld64
4pkgver=530_3
5pkgdesc="Apple LD64 for Arch Linux."
6arch=('x86_64')
7url="http://assets.checkra.in/debian"
8license=('unknown')
9depends=('base-devel')
10makedepends=('base-devel' 'wget')
11source=('http://assets.checkra.in/debian/ld64_530-2_amd64.deb')
12sha256sums=('a2c017ca05d33325d4a39ba906ee2a535327d136adea5fd029fdc9407a4b7d31')
13
14package(){
15 wget -q -O ld64_530-2_amd64.deb "$url/ld64_530-2_amd64.deb"
16 ar x ld64_530-2_amd64.deb
17 tar -xf data.tar.xz
18 sudo cp -r usr/ /
19}
20

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 HIGH 2
2026-08-02 00:16:08 HIGH 2
2026-08-01 00:11:18 HIGH 2
2026-07-31 00:14:10 HIGH 2
2026-07-30 00:17:23 HIGH 2
2026-07-29 00:25:53 HIGH 2
2026-07-28 00:07:28 HIGH 2
2026-07-27 00:24:32 HIGH 2
2026-07-26 00:07:32 HIGH 2
2026-07-25 00:13:44 HIGH 2
2026-07-24 00:02:28 HIGH 2
2026-07-23 00:14:47 HIGH 2
2026-07-22 00:29:32 HIGH 2
2026-07-21 00:24:15 HIGH 2
2026-07-20 00:19:49 HIGH 2
2026-07-19 00:17:08 HIGH 2
2026-07-18 00:14:48 HIGH 2
2026-07-17 00:06:16 HIGH 2
2026-07-16 00:05:41 HIGH 2
2026-07-15 00:09:25 HIGH 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion