coderec
LOW
maintainer vpao
0 votes
scanned 2026-11-01 00:21:48.120785
Why flagged
The non-standard host hosts a data corpus file, not executable code, used during build preparation; worst case is data tampering, not remote 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 non-standard host hosts a data corpus file, not executable code, used during build preparation; worst case is data tampering, not remote 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:24
"$pkgname-$pkgver-corpus.tar.gz::https://valentinobst.de/a13f15d91f0f8846d748e42e7a881f783eb8f922861a63d9dfb74824d21337039dd8216f0373c3e5820c5e32de8f0a1880ec55456ff0da39f17d32f567d62b84/cpu_rec_corpus.tar.gz")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Valentin Obst <aur@vpao.de>
2
pkgname=coderec
3
pkgver=0.1.2
4
pkgrel=1
5
pkgdesc="Identifies machine code in binary files."
6
arch=('x86_64')
7
url="https://github.com/vobst/coderec"
8
license=('Apache-2.0')
9
depends=('brotli'
10
'expat'
11
'fontconfig'
12
'freetype2'
13
'gcc-libs'
14
'glib2'
15
'glibc'
16
'graphite'
17
'harfbuzz'
18
'libpng'
19
'pcre2'
20
'zlib')
21
makedepends=('cargo'
22
'pkgconf')
23
source=("$pkgname-$pkgver.tar.gz::https://github.com/vobst/$pkgname/archive/$pkgver.tar.gz"
24
"$pkgname-$pkgver-corpus.tar.gz::https://valentinobst.de/a13f15d91f0f8846d748e42e7a881f783eb8f922861a63d9dfb74824d21337039dd8216f0373c3e5820c5e32de8f0a1880ec55456ff0da39f17d32f567d62b84/cpu_rec_corpus.tar.gz")
25
sha512sums=('7482922b8f92d6a7e4cdc9adca67bb09820d1aa702f5628c463334b8d3036da11250527a15c570ec8817520401240c5277cfaf88abe4886924dcc15b55a7ef15'
26
'a13f15d91f0f8846d748e42e7a881f783eb8f922861a63d9dfb74824d21337039dd8216f0373c3e5820c5e32de8f0a1880ec55456ff0da39f17d32f567d62b84')
27
noextract=("$pkgname-$pkgver-corpus.tar.gz")
28
29
prepare() {
30
cd "$srcdir/$pkgname-$pkgver"
31
32
export RUSTUP_TOOLCHAIN=stable
33
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
34
35
rm -rf cpu_rec_corpus
36
tar xf "$srcdir/$pkgname-$pkgver-corpus.tar.gz"
37
}
38
39
build() {
40
cd "$pkgname-$pkgver"
41
42
export RUSTUP_TOOLCHAIN=stable
43
export CARGO_TARGET_DIR=target
44
cargo build --frozen --release --all-features
45
}
46
47
package() {
48
cd "$pkgname-$pkgver"
49
50
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
51
52
install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
53
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
54
}
55
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |