castle-bin

LOW
maintainer bytejoy 0 votes scanned 2026-09-17 00:27:14.276658
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>
2pkgname=castle-bin
3pkgver=0.1.6
4pkgrel=1
5pkgdesc="CLI for Castle project management"
6arch=('x86_64' 'aarch64')
7url="https://castlehq.com"
8license=('custom')
9provides=('castle')
10conflicts=('castle')
11
12source_x86_64=("castle-linux-x86_64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-x86_64")
13source_aarch64=("castle-linux-aarch64-${pkgver}::https://a.castlehq.com/dl/cli/${pkgver}/castle-linux-aarch64")
14
15# Update checksums after each release with: updpkgsums
16sha256sums_x86_64=('1dec29253c67d7604a39a2c742cbf75534e2be559e915976eb5642ea9eebbc6e')
17sha256sums_aarch64=('1c9004faafed6faccbd8b820746af79a5ffcd0d8aa00e0e8a6c199e383df9b85')
18
19package() {
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)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion