check_md_raid

LOW
maintainer eworm 2 votes scanned 2026-09-17 00:27:14.276658
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-09-17 00:27:14 Low 3
2026-09-16 00:03:17 Low 3
2026-09-15 00:25:31 Low 3
2026-09-14 00:27:57 Low 3
2026-09-13 00:19:54 Low 3
2026-09-12 00:25:17 Low 3
2026-09-11 00:19:22 Low 3
2026-09-10 00:22:44 Low 3
2026-09-09 00:04:09 Low 3
2026-09-08 00:18:08 Low 3
2026-09-07 00:30:15 Low 3
2026-09-06 00:17:06 Low 3
2026-09-05 00:16:27 Low 3
2026-09-04 00:03:13 Low 3
2026-09-03 00:15:47 Low 3
2026-09-02 00:02:31 Low 3
2026-09-01 00:11:19 Low 3
2026-08-31 00:19:57 Low 3
2026-08-30 00:04:14 Low 3
2026-08-29 00:29:17 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