SystemCleanUpper is engineered for high-privilege Windows storage maintenance with strict defense-in-depth guardrails:
- Zero-Telemetry Offline Execution: The application makes zero outbound network requests. All fonts, icons, and system utilities are bundled locally.
- Hardened Electron Sandbox: Renderer windows run with
contextIsolation: true,nodeIntegration: false,sandbox: true, strict CSP headers, and an allowlisted typed IPC bridge (src/preload/index.ts). - Least-Privilege On-Demand Elevation: Launches as a standard user (
asInvoker). Privileged OS operations execute exclusively through an allowlisted JSON-job helper (resources/scripts/elevated-worker.ps1) with zero raw command-string interpolation. - Canonical Protected-Path Guardrail (
src/main/core/safetyGuard.ts):- Permanently blocks deletion of drive roots,
C:\Windows,System32,SysWOW64, directWinSxSfiles,Program Filesroots,%APPDATA%/%LOCALAPPDATA%roots,NTUSER.DAT,pagefile.sys,hiberfil.sys, UNC network paths, and..path traversal. - Never follows NTFS symlinks or directory junctions during recursive measurement or cleanup.
- Permanently blocks deletion of drive roots,
- Quarantine-First ("Scream Test") Recovery: Sensitive orphans (AppData leftovers,
C:\Windows\Installer.msi/.msppatches, duplicate files) default to instant same-volume Quarantine with 1-click restoration and restore-conflict protection. - Automatic Registry Backups: Removing any broken Uninstall registry key exports a
.regbackup to%LOCALAPPDATA%\SystemCleanUpper\RegistryBackups\prior to deletion.
If you discover a security issue or safety-guard bypass, please open a private security advisory on GitHub (lapisecek/SystemCleanUpper) with clear reproduction steps.