latex-tuda-ci-logos-sanity
maintainer Rubos
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a PDF from the official university domain to extract a logo, which is a legitimate use case; the source host, while not a standard forge, is the official TU Darmstadt media server, making the risk low despite the non-whitelisted domain.
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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a PDF from the official university domain to extract a logo, which is a legitimate use case; the source host, while not a standard forge, is the official TU Darmstadt media server, making the risk low despite the non-whitelisted domain.
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:14
source=("das_bild_der_tu_darmstadt.pdf::https://www.tu-darmstadt.de/media/medien_stabsstelle_km/services/medien_cd/das_bild_der_tu_darmstadt.pdf")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Ruben Deisenroth (Discord: Rubosplay#0815) <ruben.deisenroth@stud.tu-darmstadt.de>
2
3
pkgname=latex-tuda-ci-logos-sanity
4
pkgver=1.2.0
5
pkgrel=1
6
pkgdesc="Logos for TUDa-CI from Technische Universität Darmstadt - Sane Version that automatically fetches the logo from the corporate design book instead of relying on the user to download them"
7
arch=("any")
8
url="https://www.ulb.tu-darmstadt.de/finden_nutzen/medien_nutzen/dokumente_erstellen/latex/index.en.jsp"
9
license=("CC-BY-4.0")
10
depends=()
11
conflicts=("latex-tuda-ci-logos")
12
provides=("latex-tuda-ci-logos")
13
makedepends=("librsvg" "inkscape>=1.3")
14
source=("das_bild_der_tu_darmstadt.pdf::https://www.tu-darmstadt.de/media/medien_stabsstelle_km/services/medien_cd/das_bild_der_tu_darmstadt.pdf")
15
sha256sums=('6dbfd0054e8a91565b97b2399f864a91f2fc49ed0449b2923bdeac3d6b633398')
16
17
# Build Package
18
package() {
19
cd "${srcdir}"
20
# the logo is present on page one of the PDF, so we extract it
21
inkscape das_bild_der_tu_darmstadt.pdf --export-filename=p1_i.svg --export-dpi=300 --pages=1
22
# now we have to remove all the ICC stuff, as it is not supported by rsvg-convert (and doesn't matter for a B/W logo)
23
sed -i 's/icc-color([^)]*)//g' p1_i.svg
24
# Also for some reason, the logo isn't quite black, so we fix that as well
25
sed -i 's/#000000/#1d1d1bff/g' p1_i.svg
26
# now we extract the logo from the SVG and export the logo as PDF
27
if ! rsvg-convert -f pdf -o tuda_logo.pdf p1_i.svg --export-id=g20; then
28
echo "Warning: PDF conversion failed."
29
echo "This may be due to ImageMagick's security policy settings."
30
echo "To fix this, modify /etc/ImageMagick-6/policy.xml as follows:"
31
echo " - Change rights=\"none\" to rights=\"read|write\" for the PDF, PS, and SVG patterns."
32
echo " - Example:"
33
echo " sed -i 's/rights=\"none\" pattern=\"PDF\"/rights=\"read|write\" pattern=\"PDF\"/' /etc/ImageMagick-6/policy.xml"
34
echo " sed -i 's/rights=\"none\" pattern=\"PS\"/rights=\"read|write\" pattern=\"PS\"/' /etc/ImageMagick-6/policy.xml"
35
echo " sed -i 's/rights=\"none\" pattern=\"SVG\"/rights=\"read|write\" pattern=\"SVG\"/' /etc/ImageMagick-6/policy.xml"
36
exit 1
37
fi
38
39
# Install
40
install -Dm644 tuda_logo.pdf "${pkgdir}/$(kpsewhich -var-value TEXMFDIST)/tex/latex/tuda-ci/tuda_logo.pdf"
41
}
42
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |