Skip to content

Security: Shadowjump/M-Helper

Security

SECURITY.md

Security Architecture & Policy

M-Helper interacts with hardware firmware interfaces (ACPI-WMI Embedded Controller, UEFI variables, and AMD Ryzen SMU registers), so it requires Administrator privileges (requireAdministrator) and enforces strict defense-in-depth safeguards.

Built-In Security & Hardware Guardrails

  1. HVCI / VBS Safe — Zero WinRing0 / RwDrv:
    • M-Helper never loads vulnerable generic physical-memory/MSR drivers.
    • Ryzen SMU access uses the WHQL-signed PawnIO driver (v2.2.0) with a cryptographically signed RyzenSMU.bin module verified in memory against its pinned SHA-256 (301D9CA397108E09F31BFBD5AC4C9BB4F352A5DE68532C32DB3BA7DDCDE93450) prior to IoctlLoadBinary.
  2. Zero-TOCTOU Driver Setup Verification:
    • The optional 1-click PawnIO installer stages PawnIO_setup.exe inside an Administrators + SYSTEM-only folder under %ProgramFiles%\M-Helper and holds an exclusive FileShare.Read handle across SHA-256 verification (1F519A22E47187F70A1379A48CA604981C4FCF694F4E65B734AAA74A9FBA3032), WinVerifyTrust Authenticode verification (hFile), signer certificate thumbprint pinning (F380DCC9F706E2756A5047B832FFE719E1BC35F5, CN=namazso.eu), and CreateProcess.
  3. Privilege-Escalation Prevention on Startup Tasks & Config:
    • M-Helper refuses to register an elevated (HighestAvailable) logon Scheduled Task pointing to any user-writable directory or NTFS reparse point / junction. Enabling Run on Startup installs a protected copy into C:\Program Files\M-Helper (strict Administrators + SYSTEM write ACL).
    • Persistent settings (m-helper.ini) live exclusively inside C:\Program Files\M-Helper\m-helper.ini (capped at 64 KB, never auto-migrated from untrusted user-writable folders) with reparse-point checks and strict parameter clamping so non-admin processes cannot inject SMU parameters, service names, or bypass the crash guard.
  4. Cross-Process Lock & DLL Load Hardening:
    • Named synchronization primitives (Global\M-Helper.SingleInstance, Global\M-Helper.Activate, Global\M-Helper.EcCall, and Global\Access_PCI) are created in the Global\ kernel namespace (SeCreateGlobalPrivilege) with Administrators + SYSTEM DACLs.
    • DefaultDllImportSearchPaths(DllImportSearchPath.System32) and SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32) lock native P/Invoke and indirect Win32/COM DLL resolution strictly to %SystemRoot%\System32.
    • Protected install/config files and folders under %ProgramFiles%\M-Helper verify both DACLs and explicit BUILTIN\Administrators / SYSTEM / TrustedInstaller NTFS ownership.
  5. Hardware Safety Gates & 60-Second SMU Crash Guard:
    • EC writes lock automatically unless MSI ACPI-WMI v2.x, a valid MSI EC firmware string, and sane register values (0xD7, 0xD2) are verified.
    • SMU commands lock automatically unless a supported AMD Socket AM5 processor (Family 26 Model 64–79 or Family 25 Model 96–111) is detected.
    • Startup/wake SMU auto-apply writes a durable RyzenApplyPending=True marker to disk (FileStream.Flush(true)) before touching SMU registers and clears it only after 60 s of stable uptime, preventing boot loops from aggressive undervolts.

Reporting a Security Issue

Please open a GitHub Security Advisory (or contact the repository owner privately before public disclosure) if you discover any privilege-escalation, driver-interface, or firmware-safety bug.

There aren't any published security advisories