loadlibrary-git

maintainer fordprefect · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads mpam-fe.exe from Microsoft's go.microsoft.com fwlink redirect (a legitimate Microsoft URL used for Windows Defender definition updates), extracts it with cabextract, and installs mpengine.dll and .vdm files into the package. The source is genuinely Microsoft's Windows Defender engine/definitions package, so the host is not unofficial or personal. However, the checksum is explicitly skipped with the comment 'ever changing checksum', meaning there is no integrity verification of the downloaded binary. The extracted mpengine.dll is a Windows PE DLL that gets loaded and executed on Linux via the loadlibrary PE loader — this is the entire point of the project (taviso/loadlibrary is a well-known research project by Tavis Ormandy). The real concern is: (1) no checksum on a binary that gets executed, meaning a MITM or Microsoft-side substitution would go undetected, and (2) a Windows DLL is being loaded and run in a Linux process context. The fwlink URL is a legitimate Microsoft redirect, not a personal/unofficial host, so this is less concerning than a truly unknown host. The risk is real but inherent to the project's design rather than malicious packaging intent. Rating medium is appropriate due to the unchecksumed executable binary that gets loaded/executed.

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:13 "mpam-fe.exe::http://go.microsoft.com/fwlink/?LinkID=121721&arch=x86")
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads mpam-fe.exe from Microsoft's go.microsoft.com fwlink redirect (a legitimate Microsoft URL used for Windows Defender definition updates), extracts it with cabextract, and installs mpengine.dll and .vdm files into the package. The source is genuinely Microsoft's Windows Defender engine/definitions package, so the host is not unofficial or personal. However, the checksum is explicitly skipped with the comment 'ever changing checksum', meaning there is no integrity verification of the downloaded binary. The extracted mpengine.dll is a Windows PE DLL that gets loaded and executed on Linux via the loadlibrary PE loader — this is the entire point of the project (taviso/loadlibrary is a well-known research project by Tavis Ormandy). The real concern is: (1) no checksum on a binary that gets executed, meaning a MITM or Microsoft-side substitution would go undetected, and (2) a Windows DLL is being loaded and run in a Linux process context. The fwlink URL is a legitimate Microsoft redirect, not a personal/unofficial host, so this is less concerning than a truly unknown host. The risk is real but inherent to the project's design rather than malicious packaging intent. Rating medium is appropriate due to the unchecksumed executable binary that gets loaded/executed.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: fordprefect <fordprefect@dukun.de>
2pkgname=loadlibrary-git
3pkgver=r49.643a6a0
4pkgrel=2
5pkgdesc="Porting Windows Dynamic Link Libraries to Linux "
6url="https://github.com/taviso/loadlibrary"
7arch=('x86_64')
8license=('GPL2')
9depends=("lib32-glibc")
10makedepends=("cabextract" "lib32-gcc-libs")
11noextract=("mpam-fe.exe")
12source=("loadlibrary::git+https://github.com/taviso/loadlibrary.git"
13 "mpam-fe.exe::http://go.microsoft.com/fwlink/?LinkID=121721&arch=x86")
14md5sums=('SKIP'
15 'SKIP' # ever changing checksum
16 )
17
18pkgver(){
19 cd loadlibrary
20 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
21}
22
23prepare(){
24 cd "$srcdir"
25 cabextract mpam-fe.exe
26}
27
28build(){
29 cd loadlibrary
30 make
31}
32
33package() {
34 mkdir -p "$pkgdir/usr/lib/loadlibrary/engine" "$pkgdir/usr/include"
35 install -m755 "$srcdir/loadlibrary/mpclient" "$pkgdir/usr/lib/loadlibrary/mpclient"
36 install -m644 "$srcdir/mpengine.dll" "$pkgdir/usr/lib/loadlibrary/engine/mpengine.dll"
37 install -m644 "$srcdir"/*.vdm "$pkgdir/usr/lib/loadlibrary/engine/"
38 install -m644 "$srcdir/loadlibrary/peloader"/*.h "$pkgdir/usr/include/"
39 install -m644 "$srcdir/loadlibrary/peloader/libpeloader.a" "$pkgdir/usr/lib/"
40
41 mkdir -p "$pkgdir/usr/bin"
42 cat >> "$pkgdir/usr/bin/mpclient" << \EOF
43#!/usr/bin/sh
44cd /usr/lib/loadlibrary
45./mpclient "$@"
46EOF
47 chmod a+x "$pkgdir/usr/bin/mpclient"
48
49}
50

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion