intel-sgx-sdk-bin

LOW
maintainer marmis 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt SDK installer from Intel's official domain (download.01.org), which is plausibly Intel's own release infrastructure; despite the non-whitelisted host, the source is an official vendor release and the worst case of a swapped host would be supply-chain compromise, not active exploitation via obfuscated code or remote execution.

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 SDK installer from Intel's official domain (download.01.org), which is plausibly Intel's own release infrastructure; despite the non-whitelisted host, the source is an official vendor release and the worst case of a swapped host would be supply-chain compromise, not active exploitation via obfuscated code or remote execution.

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:15 source=("https://download.01.org/intel-sgx/sgx-linux/${pkgver}/distro/Debian13/sgx_linux_x64_sdk_${_pkgver}.bin"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: marmis <tiagodepalves@gmail.com>
2# Contributor: "marmis" Tiago de Paula <tiagodepalves@gmail.com>
3
4pkgname=intel-sgx-sdk-bin
5pkgdesc='Intel® Software Guard Extensions SDK for Linux* OS'
6pkgver=2.30.1
7_pkgver="${pkgver%.1}.101.1"
8pkgrel=1
9url='https://github.com/intel/confidential-computing.sgx.sdk'
10arch=(x86_64)
11license=('BSD-3-Clause AND LicenseRef-Intel-SGX-Third-Party') # https://github.com/intel/confidential-computing.sgx.sdk/blob/main/License.txt
12provides=("intel-sgx-sdk=${pkgver}")
13conflicts=('intel-sgx-sdk')
14options=(!strip !debug)
15source=("https://download.01.org/intel-sgx/sgx-linux/${pkgver}/distro/Debian13/sgx_linux_x64_sdk_${_pkgver}.bin"
16 'intel-sgx-sdk-skip-tmp.patch')
17b2sums=('40b0571fcf9dc4b689b673400aea0f680b4cbcb7b1fdae0aacd59ab7795d1c42319bc50f812713bf20ad604fecb8c090f629f3313c1aedbc89823313bc981ca1'
18 '35971e6ee160143327a939c964a785349b07f3386a1cc15e42be573d9cc64808f1d199e1257a00212544e492b4aa8d1b961cd70d916230e9fd90c55873f2554e')
19
20## Here you can change the installation directory.
21_installdir=/opt/intel
22
23prepare() {
24 cp "sgx_linux_x64_sdk_${_pkgver}.bin" sgx_linux_x64_sdk.bin
25 patch --binary --force -t -Ni intel-sgx-sdk-skip-tmp.patch
26 chmod -c +x sgx_linux_x64_sdk.bin
27}
28
29package() {
30 depends=('glibc' 'libstdc++' 'openssl' 'bash' 'python')
31 optdepends=(
32 'intel-sgx-psw: for hardware support'
33 'gdb: GDB plugin for SGX binaries'
34 )
35
36 local installdir
37 installdir=$(realpath -m "${pkgdir}/${_installdir}")
38
39 # The installer runs a Makefile which fails when run in parallel
40 export MAKEFLAGS='-j1'
41 ./sgx_linux_x64_sdk.bin --prefix "${installdir}"
42 cd "${installdir}"
43
44 # fix ${srcdir} references
45 sed -i -E "s|\b(SGX_SDK=).*|\1${_installdir}/sgxsdk|g" sgxsdk/environment
46 sed -i -E "s|\b(SGX_LIBRARY_PATH=).*|\1${_installdir}/sgxsdk/lib64|g" sgxsdk/bin/sgx-gdb
47 sed -i -E "s|^(prefix=).*|\1${_installdir}/sgxsdk|g" sgxsdk/pkgconfig/*.pc
48
49 # fix generated symlinks
50 ln -v -s libsgx_urts.so -fT sgxsdk/lib64/libsgx_urts.so.2
51 find sgxsdk/sdk_libs/ -name '*.so' -print -exec \
52 sh -euc 'ln -sr "sgxsdk/lib64/$(basename "$1")" -fT "$1"' -- '{}' \;
53
54 # The uninstall script shouldn't be used with this package
55 rm -v "${pkgdir}/opt/intel/sgxsdk/uninstall.sh"
56
57 # composed license
58 install -vD -t "${pkgdir}/usr/share/licenses/${pkgname}/" \
59 -m644 "${pkgdir}/opt/intel/sgxsdk/licenses/License.txt"
60}
61

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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