trae-cn
The package downloads a prebuilt binary from a non-whitelisted, project-specific CDN (lf-cdn.trae.com.cn); while likely legitimate, the source is unverifiable and could be silently swapped, posing a supply-chain risk.
Triggered rules
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:20
source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.83560/linux/TraeCode_CN-linux-x64.tar.gz")
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt binary from a non-whitelisted, project-specific CDN (lf-cdn.trae.com.cn); while likely legitimate, the source is unverifiable and could be silently swapped, posing a supply-chain risk.
PKGBUILD
1 offending line(s) highlighted# Maintainer: logan_reed <liulingzhang.work@icloud.com>
# Contributor: springtwr <springtwr@outlook.com>
pkgname=trae-cn
pkgver=2.3.83560
pkgrel=1
pkgdesc="AI-powered IDE by ByteDance (Chinese Domestic Version)"
arch=('x86_64' 'aarch64')
url="https://www.trae.cn/"
license=('LicenseRef-Trae')
conflicts=('trae-cn-bin')
depends=('nss' 'alsa-lib' 'gtk3' 'at-spi2-core' 'libsecret' 'libxkbfile' 'zeromq')
optdepends=('libappindicator-gtk3: System tray support'
'xdg-utils: Open URLs and files with default applications'
'python: Python extension support'
'nodejs: Node.js extension scripts')
options=('!strip' '!debug')
install=${pkgname}.install
source=("trae-cn.sh" "trae-cn.desktop")
source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.83560/linux/TraeCode_CN-linux-x64.tar.gz")
source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.83560/linux/TraeCode_CN-linux-arm64.tar.gz")
b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45'
'02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')
b2sums_x86_64=('209f6dac1a21c73f6982cf8866d2aec20c8ba9cd6146b2cdff5890221d6f05da94edb8819d861261138a85f3014a33a09c24a44f5b9078cccbc4f872247df806')
b2sums_aarch64=('188d3539ce5977f813de050f9c92111545e96c98c0b22d5866044a432c8a8a01f74918ccaab7b69b4b49b0d4195b16d063a49eb82a3e7323f93588ad3bed5f8f')
package() {
install -d "${pkgdir}/opt/trae-cn"
for f in "${srcdir}"/*; do
case "${f##*/}" in
trae-cn.sh|trae-cn.desktop|*.tar.*) continue ;;
esac
cp -a "$f" "${pkgdir}/opt/trae-cn/"
done
# SUID sandbox
chmod 4755 "${pkgdir}/opt/trae-cn/chrome-sandbox"
# Launcher
install -Dm755 "${srcdir}/trae-cn.sh" "${pkgdir}/usr/bin/trae-cn"
# Desktop entry
install -Dm644 "${srcdir}/trae-cn.desktop" "${pkgdir}/usr/share/applications/trae-cn.desktop"
# Icon
install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/trae-cn.png"
# License
install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/ThirdPartyNotices.txt" "${pkgdir}/usr/share/licenses/${pkgname}/ThirdPartyNotices"
install -Dm644 "${pkgdir}/opt/trae-cn/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
# Shell completions
install -Dm644 "${pkgdir}/opt/trae-cn/resources/completions/bash/trae-cn" "${pkgdir}/usr/share/bash-completion/completions/trae-cn"
install -Dm644 "${pkgdir}/opt/trae-cn/resources/completions/zsh/_trae-cn" "${pkgdir}/usr/share/zsh/site-functions/_trae-cn"
# Remove unnecessary files
rm -rf "${pkgdir}/opt/trae-cn/node_modules"
find "${pkgdir}/opt/trae-cn" -name "*.asc" -delete
find "${pkgdir}/opt/trae-cn" -name "*.bat" -delete
find "${pkgdir}/opt/trae-cn" -type d -name "rush-logs" -exec rm -rf {} +
# Remove bundled GCC runtime libraries (conflict with system gcc-libs, breaks ckg indexing)
rm -fv "${pkgdir}/opt/trae-cn/resources/app/modules/ckg/binary/libstdc++.so.6"
rm -fv "${pkgdir}/opt/trae-cn/resources/app/modules/ckg/binary/libgcc_s.so.1"
}
Changes since previous scan
--- PKGBUILD @ 2026-09-16 00:03+++ PKGBUILD @ 2026-09-17 00:27@@ -2,7 +2,7 @@ # Contributor: springtwr <springtwr@outlook.com> pkgname=trae-cn-pkgver=2.3.82600+pkgver=2.3.83560 pkgrel=1 pkgdesc="AI-powered IDE by ByteDance (Chinese Domestic Version)" arch=('x86_64' 'aarch64')@@ -17,12 +17,12 @@ options=('!strip' '!debug') install=${pkgname}.install source=("trae-cn.sh" "trae-cn.desktop")-source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.82600/linux/TraeCode_CN-linux-x64.tar.gz")-source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.82600/linux/TraeCode_CN-linux-arm64.tar.gz")+source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.83560/linux/TraeCode_CN-linux-x64.tar.gz")+source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.83560/linux/TraeCode_CN-linux-arm64.tar.gz") b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45' '02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')-b2sums_x86_64=('440fcb87b5c2b2a384e6b7b7a07bc22042e764624594c2d5647ba0a804b9271dd39a0960cff551a819835b288c62135d41368c0dad7a36948ba368d4382db068')-b2sums_aarch64=('c356a77e304b6ae6d7342631b95107c12c9460b6ca0728436bf139c19320a8f56ebcfa0f6468a598c65cca9fb7139a0fa42b61d7e4a47496fe5eb87555825d15')+b2sums_x86_64=('209f6dac1a21c73f6982cf8866d2aec20c8ba9cd6146b2cdff5890221d6f05da94edb8819d861261138a85f3014a33a09c24a44f5b9078cccbc4f872247df806')+b2sums_aarch64=('188d3539ce5977f813de050f9c92111545e96c98c0b22d5866044a432c8a8a01f74918ccaab7b69b4b49b0d4195b16d063a49eb82a3e7323f93588ad3bed5f8f') package() { install -d "${pkgdir}/opt/trae-cn"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 21:23:45 | Medium | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 19:17:46 | Medium | 1 |
| 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 11:20:36 | Medium | 1 |
| 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 11:14:32 | Medium | 1 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 05:59:21 | Medium | 1 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |