apifox-bin

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

The package downloads a prebuilt AppImage from the official project's domain (apifox.com) over HTTPS, which is a legitimate source; the host is not on the analyzer's whitelist but is plausibly official, and the download is verified via sha256sum.

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 downloads a prebuilt AppImage from the official project's domain (apifox.com) over HTTPS, which is a legitimate source; the host is not on the analyzer's whitelist but is plausibly official, and the download is verified via sha256sum.

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

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.45
6_electronversion=37
7pkgrel=1
8pkgdesc="Apifox=Postman+Swagger+Mock+JMeter(Prebuilt version.Use system-wide electron).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=('92f62f768380ed85a8465814a2c8bf11b26981395a5c23dd9919315d56674d37')
35sha256sums_x86_64=('b519e0b7f9b0ac43ee371371fe95bd702d0b0dd982f47a927cab8fa7d9c0eb2f')
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" -exec dirname {} + | head -n 1
42}
43_check_electron_version() {
44 echo "Verifying Electron version..."
45 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
46 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
47 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
48 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
49 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
50 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
51 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
52}
53prepare() {
54 #sed -i -e "
55 # s/@electronversion@/${_electronversion}/g
56 # s/@appname@/${pkgname%-bin}/g
57 # s/@runname@/app.asar/g
58 # s/@cfgdirname@/${pkgname%-bin}/g
59 #" "${srcdir}/${pkgname%-bin}.sh"
60 if [ ! -x "${srcdir}/${_pkgname}"*.AppImage ];then
61 chmod +x "${srcdir}/${_pkgname}"*.AppImage
62 fi
63 if [ -d "${srcdir}/squashfs-root" ];then
64 rm -rf "${srcdir}/squashfs-root"
65 fi
66 "${srcdir}/${_pkgname}"*.AppImage --appimage-extract > /dev/null
67 _check_electron_version
68 sed -i "s/AppRun --no-sandbox/${pkgname%-bin}/g" "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
69 #find "${srcdir}/squashfs-root/resources/app.asar.unpacked/node_modules" -type d -name ".github" -exec rm -rf {} +
70 rm -rf "${srcdir}/squashfs-root/resources/app.asar.unpacked/node_modules/oracledb/build/Release/"{*darwin*,*win32*}
71 find "${srcdir}/squashfs-root" -type d -perm 700 -exec chmod 755 {} +
72 _file_list=(chrome_100_percent.pak chrome_200_percent.pak chrome-sandbox icudtl.dat libEGL.so libffmpeg.so \
73 libGLESv2.so libvk_swiftshader.so libvulkan.so.1 resources.pak vk_swiftshader_icd.json)
74 for _files in "${_file_list[@]}";do
75 ln -sf "/usr/lib/electron${_electronversion}/${_files}" "${srcdir}/squashfs-root/${_files}"
76 done
77}
78package() {
79 #install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
80 #install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
81 #cp -Pr --no-preserve=ownership "${srcdir}/squashfs-root/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname%-bin}"
82 install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${pkgname%-bin}"}
83 cp -a "${srcdir}/squashfs-root/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
84 ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
85 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
86 _extension="${_i##*.}"
87 _icon_path="${_i#*share/icons/}"
88 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
89 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
90 done
91 install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
92 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
93}
94

Changes since previous scan

--- PKGBUILD @ 2026-08-31 00:19
+++ PKGBUILD @ 2026-09-17 00:27
@@ -2,7 +2,7 @@
pkgname=apifox-bin
_pkgname=Apifox
# 从以下网址确定版本 https://docs.apifox.com/changelog
-pkgver=2.8.37
+pkgver=2.8.45
_electronversion=37
pkgrel=1
pkgdesc="Apifox=Postman+Swagger+Mock+JMeter(Prebuilt version.Use system-wide electron).API 文档、API 调试、API Mock、API 自动化测试"
@@ -18,10 +18,7 @@
depends=(
"electron${_electronversion}"
'java-runtime'
- 'libxcrypt-compat'
- 'python'
'nodejs'
- 'libxml2-legacy'
'dbus-glib'
)
options=(
@@ -34,8 +31,8 @@
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.zip::https://file-assets.apifox.com/download/${_pkgname}-linux-arm64-latest.zip")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.zip::https://file-assets.apifox.com/download/${_pkgname}-linux-latest.zip")
sha256sums=('3884df6451dd5aaadc867c2b6882a7feabccb10c7e1df98e48e9fe2414c9fe19')
-sha256sums_aarch64=('91332624a7f102bbe637c2d6d9d4d35abee2bddab4865540b1cf9300969d5154')
-sha256sums_x86_64=('6c5e9392c5669e2739d699f6c12955044d5c28a8f60f57c4d791d35f8546f60d')
+sha256sums_aarch64=('92f62f768380ed85a8465814a2c8bf11b26981395a5c23dd9919315d56674d37')
+sha256sums_x86_64=('b519e0b7f9b0ac43ee371371fe95bd702d0b0dd982f47a927cab8fa7d9c0eb2f')
pkgver() {
cd "${srcdir}/squashfs-root"
grep "X-AppImage-Version" "${pkgname%-bin}.desktop" | sed "s/X-AppImage-Version=//g"
@@ -85,11 +82,12 @@
install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${pkgname%-bin}"}
cp -a "${srcdir}/squashfs-root/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
- _icon_sizes=(16x16 32x32 48x48 64x64 128x128 256x256 512x512)
- for _icons in "${_icon_sizes[@]}";do
- install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \
- -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
- done
+ find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
+ _extension="${_i##*.}"
+ _icon_path="${_i#*share/icons/}"
+ _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
+ install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
+ done
install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

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 09:14:05 Medium 1
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 09:44:49 Medium 1
2026-08-31 00:19:57 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