clash-for-windows-bin

MEDIUM
maintainer Jat 28 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

This PKGBUILD installs a prebuilt Electron binary (Clash for Windows) sourced via web.archive.org, which acts as an intermediary/mirror for what were originally GitHub release assets. The upstream project (Fndroid/clash_for_windows_pkg) was taken down/abandoned, so the maintainer is using Wayback Machine snapshots of the original GitHub release asset URLs. The sha256sums are present and pinned, which mitigates the risk of the archive serving different content — if the checksum matches, the binary is the same one that was originally distributed. However, there are genuine concerns: (1) the binary is an Electron app with embedded Node.js and a Clash proxy core, executing with broad network access; (2) the source is a prebuilt binary from a defunct/removed upstream project routed through an archival service rather than a live official host; (3) web.archive.org could theoretically serve a different snapshot if the URL parameters are manipulated, though the sha256 pinning largely addresses this. The checksums provide meaningful integrity protection, but the combination of a prebuilt binary from a defunct project mirrored through an archival service rather than a canonical release host is a genuine supply-chain concern that warrants medium severity.

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:28 "${pkgname}-${pkgver}-x86_64-linux.tar.gz::https://web.archive.org/web/20231020093608if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/153697551/c6e9c14e-0049-4e02-8ea5-12d8fabf9f9d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231020%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231020T093608Z&X-Amz-Expires=300&X-Amz-Signature=f07dabe509fbcb04ed7d0491a41bce68417ce24f04792124b300344c623114b4&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=153697551&response-content-disposition=attachment%3B%20filename%3DClash.for.Windows-0.20.39-x64-linux.tar.gz&response-content-type=application%2Foctet-stream"
Medium AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): This PKGBUILD installs a prebuilt Electron binary (Clash for Windows) sourced via web.archive.org, which acts as an intermediary/mirror for what were originally GitHub release assets. The upstream project (Fndroid/clash_for_windows_pkg) was taken down/abandoned, so the maintainer is using Wayback Machine snapshots of the original GitHub release asset URLs. The sha256sums are present and pinned, which mitigates the risk of the archive serving different content — if the checksum matches, the binary is the same one that was originally distributed. However, there are genuine concerns: (1) the binary is an Electron app with embedded Node.js and a Clash proxy core, executing with broad network access; (2) the source is a prebuilt binary from a defunct/removed upstream project routed through an archival service rather than a live official host; (3) web.archive.org could theoretically serve a different snapshot if the URL parameters are manipulated, though the sha256 pinning largely addresses this. The checksums provide meaningful integrity protection, but the combination of a prebuilt binary from a defunct project mirrored through an archival service rather than a canonical release host is a genuine supply-chain concern that warrants medium severity.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Jat <chat@jat.email>
2
3pkgname=clash-for-windows-bin
4pkgver=0.20.39
5pkgrel=4
6pkgdesc="A Windows/macOS/Linux GUI based on Clash and Electron."
7arch=("x86_64" "aarch64")
8url='https://web.archive.org/web/20231030023332/https://github.com/Fndroid/clash_for_windows_pkg'
9install=clash-for-windows-bin.install
10
11options=(!strip !debug)
12
13depends=('libxss' 'gtk3')
14
15optdepends=(
16 'nftables: TUN mode required.'
17 'iproute2: TUN mode required.'
18)
19
20source=(
21 "clash.png"
22 "clash-for-windows.desktop"
23 "cfw"
24)
25
26# https://github.com/Fndroid/clash_for_windows_pkg/releases/download/0.20.39/Clash.for.Windows-0.20.39-x64-linux.tar.gz
27source_x86_64=(
28 "${pkgname}-${pkgver}-x86_64-linux.tar.gz::https://web.archive.org/web/20231020093608if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/153697551/c6e9c14e-0049-4e02-8ea5-12d8fabf9f9d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231020%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231020T093608Z&X-Amz-Expires=300&X-Amz-Signature=f07dabe509fbcb04ed7d0491a41bce68417ce24f04792124b300344c623114b4&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=153697551&response-content-disposition=attachment%3B%20filename%3DClash.for.Windows-0.20.39-x64-linux.tar.gz&response-content-type=application%2Foctet-stream"
29)
30
31# https://github.com/Fndroid/clash_for_windows_pkg/releases/download/0.20.39/Clash.for.Windows-0.20.39-arm64-linux.tar.gz
32source_aarch64=(
33 "${pkgname}-${pkgver}-aarch64-linux.tar.gz::https://web.archive.org/web/20231020093527if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/153697551/b1e7558e-9fa3-4ccc-b2f6-d0ff6cc5b34a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231020%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231020T093527Z&X-Amz-Expires=300&X-Amz-Signature=4942053a395a115dcea01b4ee9854fc57a01b0d5ebf8eab99b0933a29e155f12&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=153697551&response-content-disposition=attachment%3B%20filename%3DClash.for.Windows-0.20.39-arm64-linux.tar.gz&response-content-type=application%2Foctet-stream"
34)
35
36sha256sums=('0d48a2ea1ee05ad4579b6e6996889548fa8a61a5ff6c85a32f7622cddfcb5782'
37 '5fdaeb94bffe60e02c8d10d45bbc0701a5672ca9c61cb4bc3fe4d83c0c3feeb1'
38 'd2e4a78f2360b271f7c7e803e84707a71a8a386ccaf95c2bb0b5fa263b43d318')
39sha256sums_x86_64=('e07c5e358bce99511c103262ba0d6d0167c70242f2e68827b09f7a2918d43dc0')
40sha256sums_aarch64=('e328abfe68c122c396f7296bb610934f9ca407af97b0f50d99ff62d43aaf63e0')
41
42package() {
43 local parch=$(echo "${CARCH}" | sed "s/x86_64/x64/;s/aarch64/arm64/")
44 cd "Clash for Windows-${pkgver}-${parch}-linux" || exit
45 echo "Packaging application files. Please wait."
46 install -d "${pkgdir}/opt/${pkgname}"
47 cp -r ./* "${pkgdir}/opt/${pkgname}"
48 install -Dm 755 ../cfw "${pkgdir}"/usr/bin/cfw
49 install -Dm 644 ../clash.png "${pkgdir}"/usr/share/pixmaps/clash.png
50 install -Dm 644 ../clash-for-windows.desktop "${pkgdir}"/usr/share/applications/clash-for-windows.desktop
51}
52

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 00:19:57 Medium 2
2026-08-30 00:04:14 Medium 2
2026-08-29 00:29:17 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