wechat-devtools
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:32
source=("nwjs-v${_nwjs_ver}.tar.gz::https://npm.taobao.org/mirrors/nwjs/v${_nwjs_ver}/nwjs-sdk-v${_nwjs_ver}-linux-x64.tar.gz"
llm_review
The static rules flagged this HIGH, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it MEDIUM (confidence 72%): This PKGBUILD downloads and executes several categories of untrusted binaries: (1) A prebuilt NW.js SDK and Node.js runtime from npm.taobao.org (a Taobao/Alibaba mirror, not the official nodejs.org or nwjs.io distribution), (2) a WeChat DevTools Windows installer from servicewechat.com (official Tencent host, lower risk), (3) a 'compiler' tarball from a personal GitHub release (msojocs/wechat-web-devtools-linux), and (4) during build(), it runs 'npm install nw-gyp node-gyp -g' which fetches additional packages from npm at build time without pinned versions or checksums. The shell scripts (fix-cli.sh, fix-core.sh, rebuild-node-modules.sh, etc.) are executed during build and could run arbitrary code. The npm.taobao.org mirror is a third-party Chinese CDN mirror — while widely used in China, it is not the canonical upstream and has historically had availability/integrity concerns. The unpinned 'npm install' at build time (line 92) is a genuine supply-chain concern as it fetches live packages. All checksums for the local scripts are present and verified. The compiler tarball from a personal GitHub release is also a concern. Overall this is a legitimate supply-chain risk (executed binaries/code from non-canonical hosts plus live npm fetches) consistent with MEDIUM severity.
1 higher static finding superseded - not the current verdict (shown for transparency)
npm_install_external
Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time.
-
PKGBUILD:92
npm install nw-gyp node-gyp -g
PKGBUILD
2 offending line(s) highlighted# Maintainer: msojocs <jiyecafe@gmail.com>
# Contributor: ccat3z <c0ldcat3z@gmail.com>
# Contributor: bruceutut <zttt183525594@gmail.com>
# 方法参考
# https://github.com/msojocs/wechat-web-devtools-linux
# https://github.com/dragonation/wechat-devtools
# https://github.com/cytle/wechat_web_devtools
_wechat_devtools_ver="1.06.2308310"
# https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1052203030&version_type=1
_wechat_devtools_url="https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=${_wechat_devtools_ver//\./}&version_type=1"
# _wechat_devtools_url="https://dldir1.qq.com/WechatWebDev/release/p-ae42ee2cde4d42ee80ac60b35f183a99/wechat_devtools_1.05.2201240_x64.exe"
_wechat_devtools_md5="2e73b7fc2eb617b4a745c35e4fd63133"
_wechat_devtools_exe="wechat_devtools_${_wechat_devtools_ver}_x64.exe"
_nwjs_ver="0.55.0"
_install_dir="/opt/wechat-devtools"
_node_version="16.4.2"
pkgname=wechat-devtools
pkgver="${_wechat_devtools_ver}" # 主版本号
pkgrel=1 # 修订版本号release
epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用)
pkgdesc="WeChat Devtools For Linux. "
arch=("x86_64")
url="https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html"
license=('unknown')
depends=('gconf' 'libxkbfile')
makedepends=('p7zip' 'python2' 'openssl' 'gcc' 'make' 'libssh2' 'krb5')
# compiler 用于可视化,以及编译
source=("nwjs-v${_nwjs_ver}.tar.gz::https://npm.taobao.org/mirrors/nwjs/v${_nwjs_ver}/nwjs-sdk-v${_nwjs_ver}-linux-x64.tar.gz"
"${_wechat_devtools_exe}::${_wechat_devtools_url}"
"node-v${_node_version}.tar.gz::https://npm.taobao.org/mirrors/node/v${_node_version}/node-v${_node_version}-linux-x64.tar.gz"
"compiler-v${_wechat_devtools_ver}-${pkgrel}.tar.gz::https://github.com/msojocs/wechat-web-devtools-linux/releases/download/v${_wechat_devtools_ver}-${pkgrel}/compiler.tar.gz"
"wechat-devtools.desktop"
"logo.svg"
"wechat-devtools"
"wechat-devtools-cli"
"fix-cli.sh"
"fix-menu.sh"
"fix-core.sh"
"rebuild-node-modules.sh"
"fix-package-name.js"
"wxvpkg_pack.js"
"wxvpkg_unpack.js"
"fix-other.sh")
md5sums=('ac7680788544c457daee11aaf69798fe'
'2e73b7fc2eb617b4a745c35e4fd63133'
'4d14589085ebbf79ce504dc27330d33b'
'ffa370a96aca134ea7a2c2d5d658b561'
'4d3f5273be80a74741c841fcfa4185d3'
'0f4353664123320280ea4d6bb295dce2'
'ae685283b21becd9c097aca4571f7556'
'912b5948dc8a968e1b53390173c9d363'
'951538b31000bf541446502069dcd92f'
'b4cab718cc7a9181c776eab8bf932df4'
'ae62f9e78e4a3d0addb3c55c34333b87'
'd39251e3b81e7e48506d0a8211a2c5d3'
'd43f68ce696b5dad3ea4e7ff89b9d4ad'
'38f8ed65b632c50ee5cef1231984f224'
'005ce9329dfbd97106daab0f2ca4a90e'
'5b24e5f379987f008bacda92d77fb2c8')
options=('!strip')
prepare() {
7z x -owechat_devtools ${_wechat_devtools_exe} code/package.nw
mv wechat_devtools/code/package.nw package.nw
rm -rf wechat_devtools
ls | grep node-*linux* | xargs -I{} mv {} node
ls | grep nwjs-*linux* | xargs -I{} mv {} nwjs
mkdir -p tools
for file in *.js *.sh; do
mv $file tools;
done
}
_log() {
echo -e "\e[1;34m$@\e[0m"
}
build() {
# prepare node
_log "prepare node v${_node_version}"
export PATH="$srcdir/node/bin:$PATH"
# prepare nw-gyp
_log "prepare nw-gyp"
node --version
npm uninstall node-gyp -g
npm install nw-gyp node-gyp -g
# node bin
_log "copy node exectuable"
cp "$(which node)" "${srcdir}/node.${_node_version}"
# run fix scripts
export NW_PACKAGE_DIR="${srcdir}/package.nw"
export NW_VERSION=$_nwjs_ver
# fix-package-name.js使用
export srcdir=$srcdir
export WINE=false
for script in fix-package-name.js fix-cli.sh fix-other.sh fix-menu.sh fix-core.sh rebuild-node-modules.sh; do
_log "run ${script}"
"${srcdir}/tools/${script}"
done
# cleanup
_log "done"
}
package() {
mkdir -p "${pkgdir}${_install_dir}"
cd "${pkgdir}${_install_dir}"
cp -r "${srcdir}/nwjs" .
cp -r "${srcdir}/package.nw" .
find ./package.nw -type d | xargs -I {} chmod -R a+rx {}
cp ${srcdir}/node.${_node_version} nwjs/node
cd nwjs && ln -s node node.exe && ln -s ../package.nw package.nw
install -Dm755 "${srcdir}/wechat-devtools" "${pkgdir}${_install_dir}/bin/wechat-devtools"
install -Dm755 "${srcdir}/wechat-devtools-cli" "${pkgdir}${_install_dir}/bin/wechat-devtools-cli"
install -Dm644 "${srcdir}/wechat-devtools.desktop" "${pkgdir}/usr/share/applications/wechat-devtools.desktop"
install -Dm644 "${srcdir}/logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/wechat-devtools.svg"
mkdir -p "${pkgdir}/usr/bin"
ln -s "${_install_dir}/bin/wechat-devtools" "${pkgdir}/usr/bin/wechat-devtools"
ln -s "${_install_dir}/bin/wechat-devtools-cli" "${pkgdir}/usr/bin/wechat-devtools-cli"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 3 |
| 2026-08-02 00:16:08 | MEDIUM | 3 |
| 2026-08-01 00:11:18 | MEDIUM | 3 |
| 2026-07-31 00:14:10 | MEDIUM | 3 |
| 2026-07-30 00:17:23 | MEDIUM | 3 |
| 2026-07-29 00:25:53 | MEDIUM | 3 |
| 2026-07-28 00:07:28 | MEDIUM | 3 |
| 2026-07-27 00:24:32 | MEDIUM | 3 |
| 2026-07-26 00:07:32 | MEDIUM | 3 |
| 2026-07-25 00:13:44 | MEDIUM | 3 |
| 2026-07-24 00:02:28 | MEDIUM | 3 |
| 2026-07-23 00:14:47 | MEDIUM | 3 |
| 2026-07-22 00:29:32 | MEDIUM | 3 |
| 2026-07-21 00:24:15 | MEDIUM | 3 |
| 2026-07-20 00:19:49 | MEDIUM | 3 |
| 2026-07-19 00:17:08 | MEDIUM | 3 |
| 2026-07-18 00:14:48 | MEDIUM | 3 |
| 2026-07-17 00:06:16 | MEDIUM | 3 |
| 2026-07-16 00:05:41 | MEDIUM | 3 |
| 2026-07-15 00:09:25 | MEDIUM | 3 |