tidb-bin
maintainer AstroProfundis
· 3 votes
· scanned 2026-08-18 00:03:42.021799
LOW
View on AUR ↗
Why flagged
The package downloads prebuilt binaries from PingCAP's official mirror domain (tiup-mirrors.pingcap.com), which is plausibly controlled by the project; despite the static analyzer flag for a non-standard host, the source is verifiable via checksums and the worst case of a malicious swap would be code execution, but the context suggests legitimate use of official infrastructure.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads prebuilt binaries from PingCAP's official mirror domain (tiup-mirrors.pingcap.com), which is plausibly controlled by the project; despite the static analyzer flag for a non-standard host, the source is verifiable via checksums and the worst case of a malicious swap would be code execution, but the context suggests legitimate use of official infrastructure.
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:23
source_x86_64=("https://tiup-mirrors.pingcap.com/tidb-v$_basever-linux-amd64.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Allen Zhong <pdev@zhoal.pw>
2
# Maintainer: Liqueur Librazy <im@librazy.org>
3
# Contributor: Jian Zeng <anonymousknight96@gmail.com>
4
# Contributor: Xuanwo <xuanwo@archlinuxcn.org>
5
pkgbase=tidb-bin
6
_basever=8.5.7
7
#_relver=-prega
8
#pkgver=$_basever.$_relver
9
pkgver=$_basever
10
pkgrel=1
11
pkgname=("${pkgbase}")
12
pkgdesc="A distributed NewSQL database compatible with MySQL protocol"
13
arch=('x86_64' 'aarch64')
14
url="https://github.com/pingcap/tidb"
15
license=('Apache-2.0')
16
depends=('gcc-libs')
17
conflicts=('tidb-bin-nightly' 'tidb' 'tikv' 'tikv-pd')
18
options=('strip' 'debug')
19
backup=(etc/tidb/tidb.toml
20
etc/tikv/tikv.toml
21
etc/pd/pd.toml
22
)
23
source_x86_64=("https://tiup-mirrors.pingcap.com/tidb-v$_basever-linux-amd64.tar.gz"
24
"https://tiup-mirrors.pingcap.com/tikv-v$_basever-linux-amd64.tar.gz"
25
"https://tiup-mirrors.pingcap.com/pd-v$_basever-linux-amd64.tar.gz")
26
source_aarch64=("https://tiup-mirrors.pingcap.com/tidb-v$_basever-linux-arm64.tar.gz"
27
"https://tiup-mirrors.pingcap.com/tikv-v$_basever-linux-arm64.tar.gz"
28
"https://tiup-mirrors.pingcap.com/pd-v$_basever-linux-arm64.tar.gz")
29
source=(pd.service
30
tidb.service
31
tikv.service
32
pd-sysusers.conf
33
pd-tmpfiles.conf
34
tidb-sysusers.conf
35
tidb-tmpfiles.conf
36
tikv-sysusers.conf
37
tikv-tmpfiles.conf
38
pd.toml
39
tidb.toml
40
tikv.toml)
41
sha256sums=('b03d12f2f8d6eb2e9d654d6258ca39000225cdf1418840f7e35081631bc4d924'
42
'22318c19bb89ff5a0852df5186cc1496214cd49f2264192413a326d1e8c93dc9'
43
'870b8eaf83bc0d22b05b0f3a7890660e483cf77bb1d84bc50ad04fb23068cd8c'
44
'5edd250ba9e70a4f8d27581ed658f0fbfeca58ca62429dec12bb5fffc0919b67'
45
'15633aaa2d7726375112a1b5af88105878f09c176a542cde6d0e5f0c4eee4495'
46
'2b147d80985e714d5f861baf76591104c07058b9b6fa573bf0676d675cf8fc20'
47
'30ce83fbec8f102c30e438282bb5b18c026d08480f2386d68f1116c12481bf66'
48
'744b252e29099b0099dc41e30bc3badd33b3d661c7126af8044faa4fc2df8927'
49
'935291bac6a216c6f880df9bfaec8900266413bb202ac483e79f291e1f28e9f1'
50
'44de9aed72b8bc9156db354dcddfe0624f2fe4fc91e903fe64892913cae93e0f'
51
'f32709894c0d2c105a4398dcaf027f1cbdee359a2a6747f43cac819e9df25517'
52
'1c933198cd9b5611bd7d25f4f3501bd1b580bb35352f8d65bc1cef8588400d24')
53
sha256sums_x86_64=('2bff9bad29fe8142cdf556f839dd99a07f51f205ade7662eb9431b2f359b0460'
54
'87bb39d4ae3b0c966a1600f903525d4afe8dafca3ad179fc86610e1288a58591'
55
'23a3601aa49a48d62156df1895f0af7089c5d602f70f0b6d659cfc4c0f26b845')
56
sha256sums_aarch64=('0d14c986226bab1defba4d916b8a5c0e8842fe166a7faa3db2864f956ac85b3c'
57
'4379cf3607ae2f4b163f4710b23f6e00f74e835e35d48c3a8afd7d1a80ab9e60'
58
'2fa000801144cd65c91641fe3676fc45a6273a8deea8f776fc215c069748e589')
59
60
_package() {
61
provides=("tidb-server=$_basever" "tikv-server=$_basever" "pd-server=$_basever")
62
install='tidb.install'
63
64
cd "$srcdir"
65
66
install -Dm644 pd-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/pd.conf
67
install -Dm644 pd-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/pd.conf
68
install -Dm644 tidb-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/tidb.conf
69
install -Dm644 tidb-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/tidb.conf
70
install -Dm644 tikv-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/tikv.conf
71
install -Dm644 tikv-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/tikv.conf
72
73
install -Dm644 pd.service "$pkgdir/usr/lib/systemd/system/pd.service"
74
install -Dm644 tidb.service "$pkgdir/usr/lib/systemd/system/tidb.service"
75
install -Dm644 tikv.service "$pkgdir/usr/lib/systemd/system/tikv.service"
76
77
install -Dm644 pd.toml "$pkgdir/etc/pd/pd.toml"
78
install -Dm644 tidb.toml "$pkgdir/etc/tidb/tidb.toml"
79
install -Dm644 tikv.toml "$pkgdir/etc/tikv/tikv.toml"
80
81
install -dm755 "$pkgdir"/etc/{pd,tidb,tikv}
82
install -dm755 "$pkgdir"/usr/bin
83
install -Dm755 {pd,tidb,tikv}-server "$pkgdir"/usr/bin
84
}
85
86
for _p in ${pkgname[@]}; do
87
eval "package_${_p}() {
88
$(declare -f "_package${_p#${pkgbase}}")
89
_package${_p#${pkgbase}}
90
}"
91
done
92
93
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-08-18 00:03@@ -3,7 +3,7 @@ # Contributor: Jian Zeng <anonymousknight96@gmail.com> # Contributor: Xuanwo <xuanwo@archlinuxcn.org> pkgbase=tidb-bin-_basever=8.5.6+_basever=8.5.7 #_relver=-prega #pkgver=$_basever.$_relver pkgver=$_basever@@ -50,12 +50,12 @@ '44de9aed72b8bc9156db354dcddfe0624f2fe4fc91e903fe64892913cae93e0f' 'f32709894c0d2c105a4398dcaf027f1cbdee359a2a6747f43cac819e9df25517' '1c933198cd9b5611bd7d25f4f3501bd1b580bb35352f8d65bc1cef8588400d24')-sha256sums_x86_64=('676768548416d4c36311a857f1f08abb18c4ee91b46d4160d4abdd52b3dc2344'- 'ae6c6374ba8d82731a2ac67ca88a3fbebd762c8502477599479c52fc4b604206'- '024efbd6efc64ae811a8e25aeb27ac611664b685f93425d061846944d2654a9e')-sha256sums_aarch64=('5ed24beac23af81b1e605468cd748288d5f19555adf5f61cdc2c33552f049737'- '323b18912e82a9c1b6d054b46880632efd1d4ac5463d5da122fac810fe723de1'- '65a6e027f78696101b9d62a4bb8613cc2611ea8e5662c839d3174a0b88690385')+sha256sums_x86_64=('2bff9bad29fe8142cdf556f839dd99a07f51f205ade7662eb9431b2f359b0460'+ '87bb39d4ae3b0c966a1600f903525d4afe8dafca3ad179fc86610e1288a58591'+ '23a3601aa49a48d62156df1895f0af7089c5d602f70f0b6d659cfc4c0f26b845')+sha256sums_aarch64=('0d14c986226bab1defba4d916b8a5c0e8842fe166a7faa3db2864f956ac85b3c'+ '4379cf3607ae2f4b163f4710b23f6e00f74e835e35d48c3a8afd7d1a80ab9e60'+ '2fa000801144cd65c91641fe3676fc45a6273a8deea8f776fc215c069748e589') _package() { provides=("tidb-server=$_basever" "tikv-server=$_basever" "pd-server=$_basever")Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 00:03:42 | LOW | 2 |
| 2026-08-17 00:18:29 | LOW | 2 |
| 2026-08-16 00:03:42 | LOW | 2 |
| 2026-08-15 00:26:13 | LOW | 2 |
| 2026-08-14 00:03:41 | LOW | 2 |
| 2026-08-13 00:17:07 | LOW | 2 |
| 2026-08-12 13:23:33 | MEDIUM | 1 |
| 2026-06-19 19:07:35 | CLEAN | 2 |
| 2026-06-19 18:54:17 | CLEAN | 2 |
| 2026-06-18 16:11:54 | MEDIUM | 1 |