codex-native-bin

MEDIUM
maintainer redminote11tech 0 votes scanned 2026-10-07 00:21:34.957174
View on AUR
Why flagged

The package downloads a prebuilt frontend artifact from a non-standard host (persistent.oaistatic.com), which is not the project's primary repository, posing a supply-chain risk if the host is compromised or swappable.

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:19 "${_codex_frontend_artifact}-${_codex_frontend_version}.zip::https://persistent.oaistatic.com/codex-app-prod/${_codex_frontend_artifact}-${_codex_frontend_version}.zip"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt frontend artifact from a non-standard host (persistent.oaistatic.com), which is not the project's primary repository, posing a supply-chain risk if the host is compromised or swappable.

PKGBUILD

1 offending line(s) highlighted
1pkgname=codex-native-bin
2pkgver=r146.8f36d66
3pkgrel=1
4pkgdesc="Native Linux Codex desktop shell built with Rust, GTK, WebKitGTK, and Codex CLI (prebuilt binary)"
5arch=('x86_64')
6url="https://github.com/Redminote11tech/Codex-Native"
7license=('MIT')
8depends=('gtk3' 'webkit2gtk-4.1' 'libsoup3' 'openssl')
9optdepends=('codex: Codex CLI backend bridge for chat, auth, and runtime integration')
10provides=('codex-native')
11conflicts=('codex-native' 'codex-native-git')
12_codex_frontend_version=26.818.41705
13_codex_frontend_artifact=ChatGPT-darwin-arm64
14_codex_frontend_sha256='522536a3ee61f404c24d462443dd131f4b0ebb74b77a33ea50d8d2354b386eff'
15_release_tag=r146.8f36d66
16_release_asset_sha256='9478e7d69142ee984f277ee6bbd1d46409509b03ea9c16e7ea6a85a62b558fbf'
17source=(
18 "codex-native-${_release_tag}-linux-x86_64.tar.gz::https://github.com/Redminote11tech/Codex-Native/releases/download/${_release_tag}/codex-native-${_release_tag}-linux-x86_64.tar.gz"
19 "${_codex_frontend_artifact}-${_codex_frontend_version}.zip::https://persistent.oaistatic.com/codex-app-prod/${_codex_frontend_artifact}-${_codex_frontend_version}.zip"
20)
21sha256sums=(
22 "${_release_asset_sha256}"
23 "${_codex_frontend_sha256}"
24)
25
26package() {
27 local extracted_root="$srcdir/codex-frontend"
28 local asar_path
29 local icon_path
30
31 rm -rf "$extracted_root"
32 asar_path="$(find "$srcdir" -path '*/Contents/Resources/app.asar' -type f | sort | head -n 1)"
33 if [[ -z "$asar_path" ]]; then
34 echo "failed to locate app.asar in upstream frontend bundle" >&2
35 return 1
36 fi
37
38 ./codex-native extract-asar "$asar_path" "$extracted_root"
39
40 install -Dm755 "$srcdir/codex-native" "$pkgdir/usr/bin/codex-native"
41 install -Dm755 "$startdir/codex-native-launcher" "$pkgdir/usr/bin/codex-native-launcher"
42 install -Dm644 "$startdir/codex-native.desktop" \
43 "$pkgdir/usr/share/applications/codex-native.desktop"
44 install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
45
46 install -d "$pkgdir/usr/share/codex-native"
47 cp -a "$extracted_root/webview" "$pkgdir/usr/share/codex-native/"
48
49 icon_path="$(find "$extracted_root/webview/assets" -maxdepth 1 -type f -name 'app-*.png' | sort | head -n 1)"
50 if [[ -z "$icon_path" ]]; then
51 echo "failed to locate Codex icon asset in extracted webview" >&2
52 return 1
53 fi
54
55 install -Dm644 "$icon_path" "$pkgdir/usr/share/pixmaps/codex-native.png"
56}
57

Scan history

Scanned at (UTC)SeverityRules
2026-10-07 00:21:34 Medium 2
2026-10-06 00:13:36 Medium 2
2026-10-05 00:08:03 Medium 2
2026-10-04 00:18:08 Medium 2
2026-10-03 00:23:04 Medium 2
2026-10-02 00:00:32 Medium 2
2026-10-01 00:02:06 Medium 2
2026-09-30 00:20:07 Medium 2
2026-09-29 00:07:46 Medium 2
2026-09-28 00:28:32 Medium 2
2026-09-27 00:07:07 Medium 2
2026-09-26 00:12:15 Medium 2
2026-09-25 00:03:36 Medium 2
2026-09-24 00:24:14 Medium 2
2026-09-23 00:28:13 Medium 2
2026-09-22 00:15:14 Medium 2
2026-09-21 00:26:32 Medium 2
2026-09-20 00:25:31 Medium 2
2026-09-19 00:25:36 Medium 2
2026-09-18 00:17:11 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