oopsmate-git

maintainer Wizard0000000 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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

Report a package

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

0 / 4000
Your suggestion