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
3
pkgname=oopsmate-git
4
pkgver=r0.0000000
5
pkgrel=1
6
pkgdesc='UCI chess engine in Rust (git)'
7
arch=('x86_64')
8
url='https://github.com/PS-Wizard/oopsmate'
9
license=('GPL-3.0-only')
10
makedepends=('git' 'rust')
11
provides=('oopsmate')
12
conflicts=('oopsmate')
13
source=(
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
)
18
sha256sums=(
19
'SKIP'
20
'SKIP'
21
'SKIP'
22
)
23
24
prepare() {
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
36
pkgver() {
37
cd "$srcdir/oopsmate"
38
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
39
}
40
41
build() {
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
51
check() {
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
59
package() {
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) | 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 |