intel-sgx-sdk-bin

LOW
maintainer marmis 0 votes scanned 2026-09-17 00:27:14.276658
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

Changes since previous scan

--- PKGBUILD @ 2026-08-23 00:10
+++ PKGBUILD @ 2026-09-17 00:27
@@ -15,7 +15,7 @@
source=("https://download.01.org/intel-sgx/sgx-linux/${pkgver}/distro/Debian13/sgx_linux_x64_sdk_${_pkgver}.bin"
'intel-sgx-sdk-skip-tmp.patch')
b2sums=('40b0571fcf9dc4b689b673400aea0f680b4cbcb7b1fdae0aacd59ab7795d1c42319bc50f812713bf20ad604fecb8c090f629f3313c1aedbc89823313bc981ca1'
- '7da757aae6410d927b3697a66608b84d10a4902fc522ed4af4453cf8dcece1a2f46a762a55455710433dc516f9a68f662ab32cebe3c5fe28639c1d13f661606c')
+ '35971e6ee160143327a939c964a785349b07f3386a1cc15e42be573d9cc64808f1d199e1257a00212544e492b4aa8d1b961cd70d916230e9fd90c55873f2554e')
## Here you can change the installation directory.
_installdir=/opt/intel

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 05:44:47 Medium 1
2026-08-23 00:10:13 Clean 2
2026-08-22 03:16:42 Medium 1

Report a package

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

0 / 4000
Your suggestion