castle-bin
The package downloads prebuilt binaries from a subdomain of the project's official domain (a.castlehq.com), which is plausibly controlled by the project maintainers; the binaries are verified with fixed checksums, and the worst case of a swapped source would be code execution, but the source is not from an unrelated or clearly swappable host like a file-sharing service.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads prebuilt binaries from a subdomain of the project's official domain (a.castlehq.com), which is plausibly controlled by the project maintainers; the binaries are verified with fixed checksums, and the worst case of a swapped source would be code execution, but the source is not from an unrelated or clearly swappable host like a file-sharing service.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:12
source_x86_64=("castle-linux-x86_64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-x86_64")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Castle <support@castlehq.com>
pkgname=castle-bin
pkgver=0.1.6
pkgrel=1
pkgdesc="CLI for Castle project management"
arch=('x86_64' 'aarch64')
url="https://castlehq.com"
license=('custom')
provides=('castle')
conflicts=('castle')
source_x86_64=("castle-linux-x86_64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-x86_64")
source_aarch64=("castle-linux-aarch64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-aarch64")
# Update checksums after each release with: updpkgsums
sha256sums_x86_64=('1dec29253c67d7604a39a2c742cbf75534e2be559e915976eb5642ea9eebbc6e')
sha256sums_aarch64=('1c9004faafed6faccbd8b820746af79a5ffcd0d8aa00e0e8a6c199e383df9b85')
package() {
if [[ "$CARCH" == "x86_64" ]]; then
install -Dm755 "castle-linux-x86_64-${pkgver}" "${pkgdir}/usr/bin/castle"
else
install -Dm755 "castle-linux-aarch64-${pkgver}" "${pkgdir}/usr/bin/castle"
fi
# Generate shell completions
"${pkgdir}/usr/bin/castle" completions bash > castle.bash 2>/dev/null || true
"${pkgdir}/usr/bin/castle" completions zsh > _castle 2>/dev/null || true
"${pkgdir}/usr/bin/castle" completions fish > castle.fish 2>/dev/null || true
if [[ -s castle.bash ]]; then
install -Dm644 castle.bash "${pkgdir}/usr/share/bash-completion/completions/castle"
fi
if [[ -s _castle ]]; then
install -Dm644 _castle "${pkgdir}/usr/share/zsh/site-functions/_castle"
fi
if [[ -s castle.fish ]]; then
install -Dm644 castle.fish "${pkgdir}/usr/share/fish/vendor_completions.d/castle.fish"
fi
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |