amber-package-manager
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
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)
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# Maintainer: xmp360 <1666451428@qq.com>
# Maintainer: Anysets <anysets@qq.com>
# Maintainer: shenmo <shenmo@spark-app.store>
pkgname=amber-package-manager
pkgver=1.3.4.0
pkgrel=3
pkgdesc="bwrap wrapper for install and running debs inside a Amber-PM container"
arch=('x86_64' 'aarch64')
url="https://gitee.com/amber-ce/amber-pm/"
license=('AGPL-3.0')
depends=('bubblewrap' 'flatpak' 'polkit' 'systemd' 'procps-ng' 'coreutils' 'fuse-overlayfs')
optdepends=('dpkg: Enable amber-pm-convert (A tool to convert Debian packages to Amber-PM packages)')
conflicts=('ace-host-integration')
# provides=('amber-package-manager')
# source=("$pkgname-$pkgver.tar.gz::https://gitee.com/amber-ce/amber-pm/repository/archive/${pkgver}.tar.gz")
source=("$pkgname-$pkgver-1.tar.gz::https://cdn09022024.gitlink.org.cn/api/v1/repos/shenmo7192/amber-pm/archive/${pkgver}.tar.gz")
# https://www.gitlink.org.cn/shenmo7192/amber-pm/releases/download/1.3.4.0/apm_1.3.4.0_amd64.deb
# source_aarch64=("https://gitee.com/amber-ce/amber-pm/releases/download/1.2.3/ace-env-arm64.tar.xz")
source_aarch64=("https://gitee.com/amber-ce/amber-pm/releases/download/1.2.3/ace-env-arm64.tar.xz")
sha256sums=('99e6302fd1a17857f797d6ac0df1f1cd4788406760c30338d0a297967de4b9f7')
sha256sums_aarch64=('b99a96854f8fcba405d46b8a749b07edf584e6119f8bf9b131dfcaaa9b4ad552')
install=amber-package-manager.install
build() {
if [[ "$CARCH" == "aarch64" ]]; then
# cp -f "$srcdir/ace-env-arm64.tar.xz" "$srcdir/amber-pm-${pkgver}/src/var/lib/apm/apm/files/ace-env.tar.xz"
cp -f "$srcdir/ace-env-arm64.tar.xz" "$srcdir/amber-pm/src/var/lib/apm/apm/files/ace-env.tar.xz"
fi
# cd "$srcdir/amber-pm-${pkgver}"
# bash build.sh "$srcdir/amber-pm-${pkgver}/src"
cd "$srcdir/amber-pm"
bash build.sh "$srcdir/amber-pm/src"
}
package() {
# cd "$srcdir/amber-pm-${pkgver}/src"
cd "$srcdir/amber-pm/src"
install -d "$pkgdir/var/lib/apm"
cp -a etc "$pkgdir/"
cp -a usr "$pkgdir/"
cp -a var "$pkgdir/"
# rm -rf "${pkgdir}/usr/share/fish"
# cd "$pkgdir/"
# chmod 755 -R .
find "$pkgdir" -type d -exec chmod 755 {} \;
find "$pkgdir/etc/profile.d" -name "*.sh" -exec chmod 755 {} \;
find "$pkgdir/etc/X11/Xsession.d" -name "*" -exec chmod 755 {} \;
find "$pkgdir/usr/bin" -type f -exec chmod 755 {} \;
find "$pkgdir/var/lib/apm/apm/files/bin" -type f -exec chmod 755 {} \;
find "$pkgdir/var/lib/apm/apm/files/amber-ce-tools/bin-override" -type f -exec chmod 755 {} \;
find "$pkgdir/usr/lib/systemd" -name "*.service" -exec chmod 644 {} \;
find "$pkgdir/usr/lib/systemd/user-environment-generators" -type f -exec chmod 755 {} \;
if [ -d "$pkgdir/usr/share/bash-completion/completions" ]; then
chmod 644 "$pkgdir/usr/share/bash-completion/completions/"*
fi
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |