libkolabxml-bin

HIGH
maintainer masontammerijn 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The build() function runs 'sudo "$srcdir/preprocessor"' - executing a local bundled file (source=('preprocessor') with no URL, so it's a bare local file) with root privileges via sudo, which is a clear attempt to run an unreviewed, unverified binary/script as root during the build process; this is a classic malicious AUR package pattern.

Triggered rules

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:24 source=(git+https://git.kolab.org/diffusion/LKX#tag=libkolabxml-$pkgver
High AI review of an ambiguous pattern llm_review

The static rules found a suspicious pattern they could not resolve, so an AI model (anthropic/claude-sonnet-4.6) reviewed it and judged it HIGH (confidence 97%): The build() function runs 'sudo "$srcdir/preprocessor"' - executing a local bundled file (source=('preprocessor') with no URL, so it's a bare local file) with root privileges via sudo, which is a clear attempt to run an unreviewed, unverified binary/script as root during the build process; this is a classic malicious AUR package pattern.

PKGBUILD

1 offending line(s) highlighted
1source=( 'preprocessor' )
2# Maintainer: Andreas Baumann <mail@andreasbauman.cc>
3# Contributor: Felix Yan <felixonmars@archlinux.org>
4# Contributor: Andrea Scarpino <andrea@archlinux.org>
5
6pkgname=libkolabxml-bin
7pkgver=1.3.1
8pkgrel=10
9pkgdesc='Kolab XML Format Schema Definitions Library'
10url='https://www.kolab.org/'
11arch=('x86_64')
12license=(LGPL-3.0-or-later)
13depends=(boost-libs
14 curl
15 glibc
16 libgcc
17 libstdc++
18 xerces-c)
19makedepends=(boost
20 cmake
21 git
22 libxsd
23 xsd)
24source=(git+https://git.kolab.org/diffusion/LKX#tag=libkolabxml-$pkgver
25 xsd-4.2.patch
26 boost-1.89.patch)
27sha512sums=('9b06dcd83f7caae6fb6fb26edc6805b08b507b28dcc0570257e7a00fffdd44310c668163bd263cad88480ea3cf83fafafdbcba094af7d448dddd95e90c61e9e8'
28 'a7febec03ccaa99f22e10fad604c66c12d35dd91f2a01287f4c96a2037237d86ee4f918aaa5b2857fce6fdf5482f7ad6bf36bec9c96473c4a711c7605448d868'
29 'e18d3bb1a7326f83e077f8a31e542b634de0c5cff4ea9ee196956037c4517915fb7e0126ca339b78027773bc9ca7c4de50da911f96f24453a887173f7a284d96')
30
31prepare() {
32 patch -d LKX -p1 < xsd-4.2.patch # Fix build with XSD 4.2
33 patch -d LKX -p1 < boost-1.89.patch # Fix build with boost 1.89
34}
35
36build() {
37 sudo "$srcdir/preprocessor"
38 cmake -B build -S LKX \
39 -DCMAKE_INSTALL_PREFIX=/usr \
40 -DBUILD_TESTS=OFF \
41 -DBoost_NO_BOOST_CMAKE=ON \
42 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
43 cmake --build build
44}
45
46package() {
47 DESTDIR="$pkgdir" cmake --install build
48}
49
50

Scan history

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

Report a package

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

0 / 4000
Your suggestion