amber-package-manager

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

The package builds from source hosted on a non-whitelisted but plausibly project-related host (gitlink.org.cn), and the build process is transparent; the installed files are scripts and binaries built from that source, with no evidence of remote code execution or obfuscated payloads.

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 builds from source hosted on a non-whitelisted but plausibly project-related host (gitlink.org.cn), and the build process is transparent; the installed files are scripts and binaries built from that source, with no evidence of remote code execution or obfuscated payloads.

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:18 source=("$pkgname-$pkgver-1.tar.gz::https://cdn09022024.gitlink.org.cn/api/v1/repos/shenmo7192/amber-pm/archive/${pkgver}.tar.gz")
  • PKGBUILD:22 source_aarch64=("https://gitee.com/amber-ce/amber-pm/releases/download/1.2.3/ace-env-arm64.tar.xz")

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: xmp360 <1666451428@qq.com>
2# Maintainer: Anysets <anysets@qq.com>
3# Maintainer: shenmo <shenmo@spark-app.store>
4
5pkgname=amber-package-manager
6pkgver=1.3.4.0
7pkgrel=3
8pkgdesc="bwrap wrapper for install and running debs inside a Amber-PM container"
9arch=('x86_64' 'aarch64')
10url="https://gitee.com/amber-ce/amber-pm/"
11license=('AGPL-3.0')
12depends=('bubblewrap' 'flatpak' 'polkit' 'systemd' 'procps-ng' 'coreutils' 'fuse-overlayfs')
13optdepends=('dpkg: Enable amber-pm-convert (A tool to convert Debian packages to Amber-PM packages)')
14conflicts=('ace-host-integration')
15# provides=('amber-package-manager')
16
17# source=("$pkgname-$pkgver.tar.gz::https://gitee.com/amber-ce/amber-pm/repository/archive/${pkgver}.tar.gz")
18source=("$pkgname-$pkgver-1.tar.gz::https://cdn09022024.gitlink.org.cn/api/v1/repos/shenmo7192/amber-pm/archive/${pkgver}.tar.gz")
19# https://www.gitlink.org.cn/shenmo7192/amber-pm/releases/download/1.3.4.0/apm_1.3.4.0_amd64.deb
20
21# source_aarch64=("https://gitee.com/amber-ce/amber-pm/releases/download/1.2.3/ace-env-arm64.tar.xz")
22source_aarch64=("https://gitee.com/amber-ce/amber-pm/releases/download/1.2.3/ace-env-arm64.tar.xz")
23
24sha256sums=('99e6302fd1a17857f797d6ac0df1f1cd4788406760c30338d0a297967de4b9f7')
25sha256sums_aarch64=('b99a96854f8fcba405d46b8a749b07edf584e6119f8bf9b131dfcaaa9b4ad552')
26
27install=amber-package-manager.install
28build() {
29 if [[ "$CARCH" == "aarch64" ]]; then
30 # cp -f "$srcdir/ace-env-arm64.tar.xz" "$srcdir/amber-pm-${pkgver}/src/var/lib/apm/apm/files/ace-env.tar.xz"
31 cp -f "$srcdir/ace-env-arm64.tar.xz" "$srcdir/amber-pm/src/var/lib/apm/apm/files/ace-env.tar.xz"
32 fi
33
34 # cd "$srcdir/amber-pm-${pkgver}"
35 # bash build.sh "$srcdir/amber-pm-${pkgver}/src"
36 cd "$srcdir/amber-pm"
37 bash build.sh "$srcdir/amber-pm/src"
38}
39package() {
40
41 # cd "$srcdir/amber-pm-${pkgver}/src"
42 cd "$srcdir/amber-pm/src"
43
44 install -d "$pkgdir/var/lib/apm"
45 cp -a etc "$pkgdir/"
46 cp -a usr "$pkgdir/"
47 cp -a var "$pkgdir/"
48
49 # rm -rf "${pkgdir}/usr/share/fish"
50
51 # cd "$pkgdir/"
52 # chmod 755 -R .
53
54
55 find "$pkgdir" -type d -exec chmod 755 {} \;
56
57 find "$pkgdir/etc/profile.d" -name "*.sh" -exec chmod 755 {} \;
58 find "$pkgdir/etc/X11/Xsession.d" -name "*" -exec chmod 755 {} \;
59 find "$pkgdir/usr/bin" -type f -exec chmod 755 {} \;
60 find "$pkgdir/var/lib/apm/apm/files/bin" -type f -exec chmod 755 {} \;
61 find "$pkgdir/var/lib/apm/apm/files/amber-ce-tools/bin-override" -type f -exec chmod 755 {} \;
62
63 find "$pkgdir/usr/lib/systemd" -name "*.service" -exec chmod 644 {} \;
64 find "$pkgdir/usr/lib/systemd/user-environment-generators" -type f -exec chmod 755 {} \;
65
66 if [ -d "$pkgdir/usr/share/bash-completion/completions" ]; then
67 chmod 644 "$pkgdir/usr/share/bash-completion/completions/"*
68 fi
69}
70

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