castle-bin
maintainer bytejoy
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
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: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
1
# Maintainer: Castle <support@castlehq.com>
2
pkgname=castle-bin
3
pkgver=0.1.6
4
pkgrel=1
5
pkgdesc="CLI for Castle project management"
6
arch=('x86_64' 'aarch64')
7
url="https://castlehq.com"
8
license=('custom')
9
provides=('castle')
10
conflicts=('castle')
11
12
source_x86_64=("castle-linux-x86_64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-x86_64")
13
source_aarch64=("castle-linux-aarch64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-aarch64")
14
15
# Update checksums after each release with: updpkgsums
16
sha256sums_x86_64=('1dec29253c67d7604a39a2c742cbf75534e2be559e915976eb5642ea9eebbc6e')
17
sha256sums_aarch64=('1c9004faafed6faccbd8b820746af79a5ffcd0d8aa00e0e8a6c199e383df9b85')
18
19
package() {
20
if [[ "$CARCH" == "x86_64" ]]; then
21
install -Dm755 "castle-linux-x86_64-${pkgver}" "${pkgdir}/usr/bin/castle"
22
else
23
install -Dm755 "castle-linux-aarch64-${pkgver}" "${pkgdir}/usr/bin/castle"
24
fi
25
26
# Generate shell completions
27
"${pkgdir}/usr/bin/castle" completions bash > castle.bash 2>/dev/null || true
28
"${pkgdir}/usr/bin/castle" completions zsh > _castle 2>/dev/null || true
29
"${pkgdir}/usr/bin/castle" completions fish > castle.fish 2>/dev/null || true
30
31
if [[ -s castle.bash ]]; then
32
install -Dm644 castle.bash "${pkgdir}/usr/share/bash-completion/completions/castle"
33
fi
34
if [[ -s _castle ]]; then
35
install -Dm644 _castle "${pkgdir}/usr/share/zsh/site-functions/_castle"
36
fi
37
if [[ -s castle.fish ]]; then
38
install -Dm644 castle.fish "${pkgdir}/usr/share/fish/vendor_completions.d/castle.fish"
39
fi
40
}
41
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |