matlab-documentation
The PKGBUILD downloads a prebuilt ISO from mathworks.com (the official MathWorks vendor domain), so the host itself is legitimate. However, sha256sums=('SKIP') means there is no integrity verification of the downloaded ISO. More importantly, the package then executes a binary from inside that ISO (./mpm install-doc) during the build phase. Running an unverified binary from a downloaded image is a genuine supply-chain concern: if the ISO were tampered with in transit or the URL were redirected, arbitrary code would execute. The URL path (/doc-iso-${_release,,}-linux) is an unusual non-standard endpoint rather than a versioned release artifact, making it harder to independently verify. The combination of no checksum and execution of a downloaded binary justifies MEDIUM severity. The host being mathworks.com reduces but does not eliminate the risk since HTTPS without pinning and SKIP checksums still allows MITM or server-side substitution.
Triggered rules
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=("${_pkgsrc}.iso::https://www.mathworks.com/doc-iso-${_release,,}-linux")
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt ISO from mathworks.com (the official MathWorks vendor domain), so the host itself is legitimate. However, sha256sums=('SKIP') means there is no integrity verification of the downloaded ISO. More importantly, the package then executes a binary from inside that ISO (./mpm install-doc) during the build phase. Running an unverified binary from a downloaded image is a genuine supply-chain concern: if the ISO were tampered with in transit or the URL were redirected, arbitrary code would execute. The URL path (/doc-iso-${_release,,}-linux) is an unusual non-standard endpoint rather than a versioned release artifact, making it harder to independently verify. The combination of no checksum and execution of a downloaded binary justifies MEDIUM severity. The host being mathworks.com reduces but does not eliminate the risk since HTTPS without pinning and SKIP checksums still allows MITM or server-side substitution.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
pkgname="matlab-documentation"
pkgver=R2025a+25.1.0.2934551
_release="${pkgver%%+*}"
_version="${pkgver##*+}"
pkgrel=1
epoch=1
pkgdesc="A high-level language for numerical computation and visualization (documentation)"
arch=('any')
url="https://www.mathworks.com/help/install/ug/install-documentation-on-offline-machines.html"
license=('custom:MATLAB EULA')
depends=("matlab-release=${_release}")
_pkgsrc="${pkgname}-${_release}"
source=("${_pkgsrc}.iso::https://www.mathworks.com/doc-iso-${_release,,}-linux")
sha256sums=('SKIP')
prepare() {
chmod -R ug+Xwr "${srcdir}"
}
pkgver() {
cd "${srcdir}"
local rel ver
rel="$(sed -n 's:.*<release>\(.*\)</release>.*:\1:p' VersionInfo.xml)"
ver="$(sed -n 's:.*<version>\(.*\)</version>.*:\1:p' VersionInfo.xml)"
echo "$rel+$ver"
}
package() {
cd "${srcdir}/bin/glnxa64"
./mpm install-doc --matlabroot="/opt/MATLAB/${_release}" --destination="${pkgdir}/opt/MATLAB/${_release}"
# cd "${pkgdir}"
# find . -type f | while read -r filepath; do
# if [[ -e "${filepath#.}" ]]; then
# mv -v "$filepath" "$filepath.append"
# fi
# done
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |