oopsmate-git

LOW
maintainer Wizard0000000 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads prebuilt NNUE network data files from a non-whitelisted but official and plausibly secure stockfishchess.org subdomain; these are static data files, not executables, used by the engine and not executed directly, so the worst-case impact of a compromised source is limited to data tampering, not code execution.

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 NNUE network data files from a non-whitelisted but official and plausibly secure stockfishchess.org subdomain; these are static data files, not executables, used by the engine and not executed directly, so the worst-case impact of a compromised source is limited to data tampering, not code execution.

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:15 "nn-1c0000000000.nnue::https://data.stockfishchess.org/nn/nn-1c0000000000.nnue"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: PS-Wizard (packaged for AUR)
2
3pkgname=oopsmate-git
4pkgver=r0.0000000
5pkgrel=1
6pkgdesc='UCI chess engine in Rust (git)'
7arch=('x86_64')
8url='https://github.com/PS-Wizard/oopsmate'
9license=('GPL-3.0-only')
10makedepends=('git' 'rust')
11provides=('oopsmate')
12conflicts=('oopsmate')
13source=(
14 "git+${url}.git"
15 "nn-1c0000000000.nnue::https://data.stockfishchess.org/nn/nn-1c0000000000.nnue"
16 "nn-37f18f62d772.nnue::https://data.stockfishchess.org/nn/nn-37f18f62d772.nnue"
17)
18sha256sums=(
19 'SKIP'
20 'SKIP'
21 'SKIP'
22)
23
24prepare() {
25 cd "$srcdir/oopsmate"
26
27 # The engine embeds SF17 NNUE networks via include_bytes!, but the upstream git repo
28 # does not track the binary `.nnue` blobs. Ship them as AUR sources and place them
29 # into the expected in-tree path before compiling.
30 install -Dm644 "$srcdir/nn-1c0000000000.nnue" \
31 "$srcdir/oopsmate/crates/nnuebie/archive/nnue/networks/nn-1c0000000000.nnue"
32 install -Dm644 "$srcdir/nn-37f18f62d772.nnue" \
33 "$srcdir/oopsmate/crates/nnuebie/archive/nnue/networks/nn-37f18f62d772.nnue"
34}
35
36pkgver() {
37 cd "$srcdir/oopsmate"
38 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
39}
40
41build() {
42 cd "$srcdir/oopsmate"
43
44 # Match the engine's local build flags and satisfy strikes' BMI2 requirement.
45 # AUR builds from source on the user's machine; `native` is intentional.
46 export RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native -C target-feature=+avx2,+bmi2,-avx512f,-avx512vl,-avx512bw"
47
48 cargo build --release --locked --bins
49}
50
51check() {
52 cd "$srcdir/oopsmate"
53
54 export RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native -C target-feature=+avx2,+bmi2,-avx512f,-avx512vl,-avx512bw"
55
56 cargo test --release --locked
57}
58
59package() {
60 cd "$srcdir/oopsmate"
61
62 install -Dm755 target/release/oops_mate "$pkgdir/usr/bin/oops_mate"
63 install -Dm755 target/release/oopsmate-nnue "$pkgdir/usr/bin/oopsmate-nnue"
64 install -Dm755 target/release/oopsmate-pesto "$pkgdir/usr/bin/oopsmate-pesto"
65}
66

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