codex-native-bin

MEDIUM
maintainer redminote11tech 0 votes scanned 2026-08-23 11:22:25.164037
View on AUR
Why flagged

Installs a prebuilt binary from a low-reputation GitHub account (Redminote11tech/Codex-Native, few votes, recently uploaded) with no way to verify it is the legitimate project; additionally downloads a frontend zip from persistent.oaistatic.com and runs the prebuilt binary at build time (./codex-native extract-asar) — a swapped release asset could execute arbitrary code on the builder's machine.

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"
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Medium AI review llm_review

An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 72%): Installs a prebuilt binary from a low-reputation GitHub account (Redminote11tech/Codex-Native, few votes, recently uploaded) with no way to verify it is the legitimate project; additionally downloads a frontend zip from persistent.oaistatic.com and runs the prebuilt binary at build time (./codex-native extract-asar) — a swapped release asset could execute arbitrary code on the builder's machine.

PKGBUILD

1 offending line(s) highlighted
1pkgname=codex-native-bin
2pkgver=r1.2cad84f
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=r1.2cad84f
16_release_asset_sha256='fdca9e9ecf0149de5979d08a85782ac6761393adab8301552495ae9c297e316e'
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-08-23 11:22:25 Medium 3
2026-08-23 11:20:29 Medium 3

Report a package

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

0 / 4000
Your suggestion