apifox-bin

MEDIUM
maintainer zxp19821005 7 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt AppImage from a non-standard host (file-assets.apifox.com), which is not a common trusted CDN; while likely legitimate, the source is not verifiable and could pose a supply-chain risk if the host were compromised.

Triggered rules

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:31 source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.zip::https://file-assets.apifox.com/download/${_pkgname}-linux-arm64-latest.zip")
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The package downloads a prebuilt AppImage from a non-standard host (file-assets.apifox.com), which is not a common trusted CDN; while likely legitimate, the source is not verifiable and could pose a supply-chain risk if the host were compromised.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=apifox-bin
3_pkgname=Apifox
4# 从以下网址确定版本 https://docs.apifox.com/changelog
5pkgver=2.8.50
6_electronversion=37
7pkgrel=1
8pkgdesc="Apifox=Postman+Swagger+Mock+JMeter.API 文档、API 调试、API Mock、API 自动化测试"
9arch=(
10 'aarch64'
11 'x86_64'
12)
13url="https://apifox.com/"
14_ghurl="https://github.com/apifox/apifox"
15license=('LicenseRef-custom')
16conflicts=("${pkgname%-bin}")
17provides=("${pkgname%-bin}=${pkgver}")
18depends=(
19 "electron${_electronversion}"
20 'java-runtime'
21 'nodejs'
22 'dbus-glib'
23)
24options=(
25 '!strip'
26)
27source=(
28 #"${pkgname%-bin}.sh"
29 "LICENSE.html"
30)
31source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.zip::https://file-assets.apifox.com/download/${_pkgname}-linux-arm64-latest.zip")
32source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.zip::https://file-assets.apifox.com/download/${_pkgname}-linux-latest.zip")
33sha256sums=('3884df6451dd5aaadc867c2b6882a7feabccb10c7e1df98e48e9fe2414c9fe19')
34sha256sums_aarch64=('57338fe4bf1f6522161877635ec3c8b0204ef5edbe901e1f87e5dbd340415ce0')
35sha256sums_x86_64=('0e4f196f715d55cde363030e420e6531661fa1591b48ab5f515391f4475a1caa')
36pkgver() {
37 cd "${srcdir}/squashfs-root"
38 grep "X-AppImage-Version" "${pkgname%-bin}.desktop" | sed "s/X-AppImage-Version=//g"
39}
40_get_app_dir() {
41 find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -print 2>/dev/null | while read f; do [ -d "${f%/*}/resources" ] && echo "${f%/*}" && break; done
42}
43_check_electron_version() {
44 local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
45 -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
46 | grep -oP 'Electron/\K[0-9]+' | head -1)
47 [[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
48 (( _v == _electronversion )) && c=32 || c=31
49 echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
50}
51prepare() {
52 #sed -i -e "
53 # s/@electronversion@/${_electronversion}/g
54 # s/@appname@/${pkgname%-bin}/g
55 # s/@runname@/app.asar/g
56 # s/@cfgdirname@/${pkgname%-bin}/g
57 #" "${srcdir}/${pkgname%-bin}.sh"
58 if [ ! -x "${srcdir}/${_pkgname}"*.AppImage ];then
59 chmod +x "${srcdir}/${_pkgname}"*.AppImage
60 fi
61 if [ -d "${srcdir}/squashfs-root" ];then
62 rm -rf "${srcdir}/squashfs-root"
63 fi
64 "${srcdir}/${_pkgname}"*.AppImage --appimage-extract > /dev/null
65 _check_electron_version
66 sed -i "s/AppRun --no-sandbox/${pkgname%-bin}/g" "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
67 #find "${srcdir}/squashfs-root/resources/app.asar.unpacked/node_modules" -type d -name ".github" -exec rm -rf {} +
68 rm -rf "${srcdir}/squashfs-root/resources/app.asar.unpacked/node_modules/oracledb/build/Release/"{*darwin*,*win32*}
69 find "${srcdir}/squashfs-root" -type d -perm 700 -exec chmod 755 {} +
70 _file_list=(chrome_100_percent.pak chrome_200_percent.pak chrome-sandbox icudtl.dat libEGL.so libffmpeg.so \
71 libGLESv2.so libvk_swiftshader.so libvulkan.so.1 resources.pak vk_swiftshader_icd.json)
72 for _files in "${_file_list[@]}";do
73 ln -sf "/usr/lib/electron${_electronversion}/${_files}" "${srcdir}/squashfs-root/${_files}"
74 done
75}
76package() {
77 #install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
78 #install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
79 #cp -Pr --no-preserve=ownership "${srcdir}/squashfs-root/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname%-bin}"
80 install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${pkgname%-bin}"}
81 cp -a "${srcdir}/squashfs-root/." "${pkgdir}/usr/lib/${pkgname%-bin}"
82 ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
83 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
84 _extension="${_i##*.}"
85 _icon_path="${_i#*share/icons/}"
86 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
87 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
88 done
89 install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
90 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
91}
92

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 11:55:28 Medium 2
2026-10-30 00:29:30 Medium 2
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion