Back to home

Security policy and safety model

Safety model

Version 4.0.5 keeps the cleanup rules and the protected list of the 3.x series and adds a terminal interface, signed plans, a separate folder layout and honest space accounting. The safeguards below are described in the project README, and each one is checked again just before the tool acts.

Read the safety model on GitHub →
Zero Root Privileges

The tool never uses sudo and never asks for your password. It runs with your normal user permissions, and system caches are report-only.

Zero telemetry, offline

It sends no paths, results or usage data anywhere. The tool uses the network only to install, and to check for or fetch an update when you run that command.

A protected list

Mail, Messages, Calendars, Contacts, Keychains, password managers, browser profiles, Documents, Desktop, Photos, cloud folders, SSH and GPG keys, credential files, ~/.config, source folders and Git working trees are never touched. Neither are the tool's own program, settings, state and quarantine folders.

Read-only until you agree

A scan or preview never changes your files, and the default answer to every question is no. Automatic runs are off by default.

Checked again before acting

Right before it removes an item, the tool checks that it still exists, is the item that was planned, lies inside its category's folders, is not in use and is not too recent.

Signed plans, one run at a time

apply accepts only a plan this tool wrote, on this Mac, for this user, less than 24 hours old; plans from 3.x are refused. Runs that change files exclude each other.

Install integrity

The installer checks the release package against its SHA256SUMS file before unpacking and installs nothing if they differ. Releases are checksum-verified, not cryptographically signed: a checksum fetched from the same place as the package protects against a damaged download, not against a compromised publisher.

Exit codes

macOS Cleanup returns deterministic exit codes for scripts, the automatic run and other tools that call it.

CodeMeaning / Contract
0Done
1The run finished but something failed, or a restore or purge could not complete every entry
2Wrong usage, refused option combination, invalid setting, refused plan, or --tui without a terminal
3This macOS version is not supported
130Interrupted

Reporting a Vulnerability

⚠ Do not file public GitHub Issues for security vulnerabilities.

Please use one of the private reporting channels below.

  1. Email — gaipro.mk@gmail.com with subject prefix [macos_cleanup-security]

Supported Versions

Security support is provided for the current stable release stream:

  • v4.0.5 (the 4.x release stream) — full support and security fixes
  • Older versions (3.x and earlier) — upgrading to 4.0.5 is recommended; macos-cleanup migrate brings your 3.x runs along

Coordinated Disclosure

  1. You report privately
  2. We confirm receipt + work on a fix
  3. We coordinate with you on disclosure timeline (typically 30–90 days)
  4. Patch released, advisory published
Visual era: 2026