coze
Downloads an official macOS DMG from ByteDance/TikTok's CDN (lf3-cdn-tos.bytegoofy.com) with a proper sha256 checksum; the bundled helper scripts (coze.sh, coze.desktop, prepare-app.mjs) have SKIP'd checksums but are local files that only repack/patch the Electron app for Linux — no remote code execution, no exfiltration, just a legitimate unofficial Linux repackaging of a proprietary app from its official CDN.
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): Downloads an official macOS DMG from ByteDance/TikTok's CDN (lf3-cdn-tos.bytegoofy.com) with a proper sha256 checksum; the bundled helper scripts (coze.sh, coze.desktop, prepare-app.mjs) have SKIP'd checksums but are local files that only repack/patch the Electron app for Linux — no remote code execution, no exfiltration, just a legitimate unofficial Linux repackaging of a proprietary app from its official CDN.
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:30
"coze-${pkgver}-mac-x64.dmg::https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/7617773946401724698/${_buildid}/${pkgver}/darwin-x64/扣子-v${pkgver}-darwin-x64.dmg"
PKGBUILD
1 offending line(s) highlighted# Maintainer: duanluan <duanluan@outlook.com>
pkgname=coze
pkgver=1.1.48
pkgrel=1
pkgdesc='Coze desktop app repackaged from the official macOS release'
arch=('x86_64')
url='https://www.coze.cn'
license=('LicenseRef-Proprietary')
# Upstream publishes Windows and macOS desktop builds only (verified against
# its update service, which has no linux target). This repacks the official
# macOS dmg: the app is a plain Electron bundle whose JS and native modules
# (koffi, tree-sitter) ship linux-x64 prebuilds, so it runs on the distro
# electron after prepare-app.mjs patches the few mac-only bits.
depends=(
'electron39'
'hicolor-icon-theme'
'xdg-utils'
)
makedepends=(
'7zip'
'nodejs'
)
conflicts=('coze-bin')
options=('!strip' '!lto')
# buildId is a per-release CDN path segment maintained by upstream's update
# service; update.sh rewrites it together with pkgver.
_buildid=548159352
source=(
"coze-${pkgver}-mac-x64.dmg::https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/7617773946401724698/${_buildid}/${pkgver}/darwin-x64/扣子-v${pkgver}-darwin-x64.dmg"
'coze.sh'
'coze.desktop'
'prepare-app.mjs'
)
sha256sums=(
'dfa89116bd05d7c4c378ea708e657b363d4a75f7fd446f34af66f9250f326a9d'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "${srcdir}"
rm -rf dmg resources coze-icon-*.png
mkdir dmg resources
7z x -bd -y "coze-${pkgver}-mac-x64.dmg" -odmg >/dev/null
local appdir
appdir="$(find dmg -maxdepth 4 -type d -name '*.app' ! -path '*/__MACOSX/*' -print -quit)"
[[ -n "${appdir}" ]] || {
echo "Could not find the app bundle in upstream dmg"
return 1
}
local resdir="${appdir}/Contents/Resources"
# app.asar -> resources/app(提取 + Linux 运行修补)+ icns -> PNG 图标
node "${srcdir}/prepare-app.mjs" \
"${resdir}/app.asar" resources/app \
"${resdir}/icon.icns" "${srcdir}/coze-icon"
# 上游入口在打包布局下要读 resources/manifest.json(mac 版放在框架目录里)
install -Dm644 \
"${appdir}/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources/manifest.json" \
resources/manifest.json
# coze-daemon / coze-drive 是 Mach-O mac 二进制,Linux 上不打包;
# 应用运行时会按平台自行安装对应的小助手。
rm -rf "${resdir}/coze-daemon" "${resdir}/coze-drive"
}
package() {
cd "${srcdir}"
install -dm755 \
"${pkgdir}/usr/bin" \
"${pkgdir}/usr/lib/${pkgname}/resources" \
"${pkgdir}/usr/share/applications" \
"${pkgdir}/usr/share/doc/${pkgname}" \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps" \
"${pkgdir}/usr/share/icons/hicolor/512x512/apps" \
"${pkgdir}/usr/share/pixmaps"
install -Dm755 "${srcdir}/coze.sh" "${pkgdir}/usr/bin/coze"
cp -a resources/. "${pkgdir}/usr/lib/${pkgname}/resources/"
install -Dm644 resources/app/package.json \
"${pkgdir}/usr/share/doc/${pkgname}/package.json"
install -Dm644 "${srcdir}/coze.desktop" \
"${pkgdir}/usr/share/applications/coze.desktop"
install -Dm644 "${srcdir}/coze-icon-512.png" \
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
install -Dm644 "${srcdir}/coze-icon-256.png" \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
install -Dm644 "${srcdir}/coze-icon-512.png" \
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-06 16:15:00 | Low | 3 |
| 2026-11-06 16:12:45 | Medium | 3 |