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 →The tool never uses sudo and never asks for your password. It runs with your normal user permissions, and system caches are report-only.
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.
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.
A scan or preview never changes your files, and the default answer to every question is no. Automatic runs are off by default.
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.
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.
| Code | Meaning / Contract |
|---|---|
| 0 | Done |
| 1 | The run finished but something failed, or a restore or purge could not complete every entry |
| 2 | Wrong usage, refused option combination, invalid setting, refused plan, or --tui without a terminal |
| 3 | This macOS version is not supported |
| 130 | Interrupted |
Reporting a Vulnerability
⚠ Do not file public GitHub Issues for security vulnerabilities.
Please use one of the private reporting channels below.
- Email —
gaipro.mk@gmail.comwith 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
- You report privately
- We confirm receipt + work on a fix
- We coordinate with you on disclosure timeline (typically 30–90 days)
- Patch released, advisory published