Skip to content

Security: lapisecek/SystemCleanUpper

Security

SECURITY.md

Security Policy

Architectural Safety Guarantees

SystemCleanUpper is engineered for high-privilege Windows storage maintenance with strict defense-in-depth guardrails:

  1. Zero-Telemetry Offline Execution: The application makes zero outbound network requests. All fonts, icons, and system utilities are bundled locally.
  2. 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).
  3. 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.
  4. Canonical Protected-Path Guardrail (src/main/core/safetyGuard.ts):
    • Permanently blocks deletion of drive roots, C:\Windows, System32, SysWOW64, direct WinSxS files, Program Files roots, %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.
  5. Quarantine-First ("Scream Test") Recovery: Sensitive orphans (AppData leftovers, C:\Windows\Installer .msi/.msp patches, duplicate files) default to instant same-volume Quarantine with 1-click restoration and restore-conflict protection.
  6. Automatic Registry Backups: Removing any broken Uninstall registry key exports a .reg backup to %LOCALAPPDATA%\SystemCleanUpper\RegistryBackups\ prior to deletion.

Reporting a Vulnerability

If you discover a security issue or safety-guard bypass, please open a private security advisory on GitHub (lapisecek/SystemCleanUpper) with clear reproduction steps.

There aren't any published security advisories