check_md_raid

maintainer eworm · 2 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a Python script downloaded from a project-related but non-whitelisted host (nagios.org exchange); however, it is the project's own plugin, checksummed, and not obfuscated, with patches applied locally—realistic risk is low as it's a standard build of a known monitoring script.

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 source is a Python script downloaded from a project-related but non-whitelisted host (nagios.org exchange); however, it is the project's own plugin, checksummed, and not obfuscated, with patches applied locally—realistic risk is low as it's a standard build of a known monitoring script.

2 higher static findings 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:12 source=("${pkgname}-${pkgver}.py::http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=782&cf_id=24"
MEDIUM Privileged / out-of-pacman install (sudoers, setuid, or self-update) privileged_install

The package grants elevated privileges or installs an update path outside pacman: a /etc/sudoers.d rule (often passwordless), a setuid/setgid binary, or a self-update script/service that can fetch and run future code with no checksum verification. The initial install may be verified, but the ongoing privilege + update surface is a real supply-chain / privilege-escalation risk.

  • PKGBUILD:36 install -d -m 0750 ${pkgdir}/etc/sudoers.d
  • PKGBUILD:37 install -D -m 0440 ${srcdir}/sudo ${pkgdir}/etc/sudoers.d/check_md_raid

PKGBUILD

3 offending line(s) highlighted
1# Maintainer: Christian Hesse <mail@eworm.de>
2
3pkgname=check_md_raid
4pkgver=0.7.2
5pkgrel=9
6pkgdesc="Linux Software RAID Monitoring Plugin for Nagios"
7arch=('any')
8url="http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Linux-Software-Raid-Plugin-for-32-2Dbit-and-64-2Dbit-systems/details"
9license=('GPL')
10depends=('nagios' 'python2' 'mdadm')
11optdepends=('sudo: check with non-root user')
12source=("${pkgname}-${pkgver}.py::http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=782&cf_id=24"
13 '0001-use-python2.patch'
14 '0002-strip-whitespace-from-state.patch'
15 '0003-use-sudo-when-running-as-non-root-user.patch'
16 '0004-make-checking-a-clean-state.patch'
17 'sudo')
18sha256sums=('b85f0a77215870839cb18a74d9e38b594eaeda5c44ddc88aff8d2c2246f506f7'
19 '9721c32d4b8124f2db54f41574008018a605567e50a59eb9ffcd98e99ba8db98'
20 '527d98535f4cda98a468ea69f6a3cfb3a53e27ecbd2affc553985be70e29125a'
21 '6267ecf8aff1da308216675f94e9e91f91349ed3b1054b8c8c1dc4d08ef632ad'
22 '542d756357f4e8afd16962015428efccabb9f4410c873556a2b8d6e0cc37ca69'
23 '4882cf971684deb2afd6e1deb3883272dd41ed544576619f816498c6111c16cc')
24
25build() {
26 cp ${pkgname}-${pkgver}.py ${pkgname}
27 patch -Np1 < ${srcdir}/0001-use-python2.patch
28 patch -Np1 < ${srcdir}/0002-strip-whitespace-from-state.patch
29 patch -Np1 < ${srcdir}/0003-use-sudo-when-running-as-non-root-user.patch
30 patch -Np1 < ${srcdir}/0004-make-checking-a-clean-state.patch
31}
32
33package() {
34 install -D -m 0755 ${srcdir}/${pkgname} ${pkgdir}/usr/lib/monitoring-plugins/${pkgname}
35
36 install -d -m 0750 ${pkgdir}/etc/sudoers.d
37 install -D -m 0440 ${srcdir}/sudo ${pkgdir}/etc/sudoers.d/check_md_raid
38}
39
40

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 3
2026-08-02 00:16:08 LOW 3
2026-08-01 00:11:18 LOW 3
2026-07-31 00:14:10 LOW 3
2026-07-30 00:17:23 LOW 3
2026-07-29 00:25:53 LOW 3
2026-07-28 00:07:28 LOW 3
2026-07-27 00:24:32 LOW 3
2026-07-26 00:07:32 LOW 3
2026-07-25 00:13:44 LOW 3
2026-07-24 00:02:28 LOW 3
2026-07-23 00:14:47 LOW 3
2026-07-22 00:29:32 LOW 3
2026-07-21 00:24:15 LOW 3
2026-07-20 00:19:49 LOW 3
2026-07-19 00:17:08 LOW 3
2026-07-18 00:14:48 LOW 3
2026-07-17 00:06:16 LOW 3
2026-07-16 00:05:41 LOW 3
2026-07-15 00:09:25 LOW 3

Report a package

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

0 / 4000
Your suggestion