matlab-documentation
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-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 00:11:18 | MEDIUM | 2 |
| 2026-07-31 00:14:10 | MEDIUM | 2 |
| 2026-07-30 00:17:23 | MEDIUM | 2 |
| 2026-07-29 00:25:53 | MEDIUM | 2 |
| 2026-07-28 00:07:28 | MEDIUM | 2 |
| 2026-07-27 00:24:32 | MEDIUM | 2 |
| 2026-07-26 00:07:32 | MEDIUM | 2 |
| 2026-07-25 00:13:44 | MEDIUM | 2 |
| 2026-07-24 00:02:28 | MEDIUM | 2 |
| 2026-07-23 00:14:47 | MEDIUM | 2 |
| 2026-07-22 00:29:32 | MEDIUM | 2 |
| 2026-07-21 00:24:15 | MEDIUM | 2 |
| 2026-07-20 00:19:49 | MEDIUM | 2 |
| 2026-07-19 00:17:08 | MEDIUM | 2 |
| 2026-07-18 00:14:48 | MEDIUM | 2 |
| 2026-07-17 00:06:16 | MEDIUM | 2 |
| 2026-07-16 00:05:41 | MEDIUM | 2 |
| 2026-07-15 00:09:25 | MEDIUM | 2 |