剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 病毒分析 MacSai - Mac Sai: the open-s…
MacSai - Mac Sai: the open-source Mac cleaner, optimizer, a 病毒分析 点击放大
作者:admin 发布:2026-10-05

MacSai - Mac Sai: the open-source Mac cleaner, optimizer, a

项目说明<p align="center"> <img src="assets/app_icon.png" width="150" alt="Mac Sai Icon" /></p>&…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
302浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

MacSai - Mac Sai: the open-source Mac cleaner, optimizer, a

MacSai - Mac Sai: the open-source Mac cleaner, optimizer, a

项目说明

<p align="center">
<img src="assets/app_icon.png" width="150" alt="Mac Sai Icon" />
</p>

<h1 align="center">Mac Sai</h1>

<p align="center">
<strong>The open-source Mac cleaner, optimizer, and malware scanner.</strong><br>
A free, Apple-notarized alternative to CleanMyMac, built with Swift 6 and SwiftUI.
</p>

<p align="center">
<strong>English</strong> | <a href="README.zh-CN.md">简体中文</a> | <a href="README.ru.md">Русский</a>
</p>

<p align="center">
<a href=" src=" alt="GitHub stars" /></a>
<a href=" src=" alt="Latest release" /></a>
<img src=" alt="macOS 14+" />
<img src=" alt="Swift 6" />
<img src=" alt="Tests" />
<img src=" alt="No telemetry" />
<img src=" alt="Notarized" />
<img src=" alt="License" />
<img src=" alt="PRs Welcome" />
</p>

<p align="center">
<img src="assets/demo.png" width="720" alt="Mac Sai Screenshot" />
</p>

<p align="center">
<strong>Install in one command:</strong>
</p>

<p align="center">
Or grab the <a href=" DMG</a>. It is notarized by Apple, so it just opens, no right-click, no warnings, no Terminal.
</p>

---

Why Mac Sai?

A full-featured Mac cleaner should not cost a yearly subscription or ask you to trust a black box with deep access to your files. Mac Sai gives you the whole toolkit, in the open.

  • Free, forever. No subscription, no in-app purchases, no "upgrade to Pro", no nag screens. BSD-3 licensed.

  • Zero telemetry. No analytics, no crash reporter, no trackers, no server to phone home to. And you do not have to take our word for it, it yourself in two commands.

  • Every major CleanMyMac tool, in one app. 17 modules across cleanup, protection, performance, applications, and disk insight, plus a menu-bar widget.

  • Safe by design. Trash-first deletion, a protected-paths blocklist, symlink and TOCTOU guards, and a SafetyGuard that every path. It is built to never lose your data.

  • Apple-notarized and fully open source. Your Mac the signature every launch, and every line is here to read.
  • ---

    Features at a glance

    <table>
    <tr>
    <td width="33%" ="top">

    🧹 Cleanup


  • Smart Scan (one click)

  • System Junk (16+ categories)

  • Mail Attachments

  • Trash Bins
  • </td>
    <td width="33%" ="top">

    🛡️ Protection


  • Malware Removal

  • Privacy (browsers)

  • Sa

  • Permissions O
  • </td>
    <td width="33%" ="top">

    ⚡ Performance


  • Optimization (login items)

  • Maintenance (system tasks)
  • </td>
    </tr>
    <tr>
    <td width="33%" ="top">

    📦 Applications


  • Uninstaller (+ Reset to Defaults)

  • Extensions (panes, plug-ins)

  • Updater
  • </td>
    <td width="33%" ="top">

    🗂️ Files


  • Space Lens (disk treemap)

  • Large & Old Files

  • Duplicates (+ Consolidate)

  • Shredder
  • </td>
    <td width="33%" ="top">

    📊 Menu Bar


  • Live CPU / memory / disk / battery

  • Network, uptime, swap

  • Actionable recommendations
  • </td>
    </tr>
    </table>

    ---

    Features in detail

    🧹 Cleanup


    | Module | What it does |
    |--------|------------|
    | Smart Scan | One click runs cleanup, protection, and performance modules together with li, then shows exactly what it freed per module |
    | System Junk | 16+ scan categories: user and system caches, logs, language files, broken preferences, broken login items, document , iOS backups, Xcode junk, package-manager / IDE / AI-tool caches, deleted-user leftovers, and Uni Binary thinning (finds fat Mach-O binaries carrying both arm64 and x86_64 and rewrites them to your native arch via lipo, honoring Cancel) |
    | Mail Attachments | Finds cached attachments from Apple Mail, Outlook, and Spark |
    | Trash Bins | Empties the Trash across every location, including external drives |

    🛡️ Protection


    | Module | What it does |
    |--------|------------|
    | Malware Removal | Signature-based scanning at 3 depths (Quick / Balanced / Deep): launch agents and daemons, browser extensions, and known adware/malware patterns (curated list, not an antivirus, and it says so) |
    | Privacy | Cleans Safari, Chrome, and Firefox history, cookies, and cache, with time filters. Safari bookmarks are ne |
    | Sa | Lists your preferred wireless networks and forgets the ones you pick |
    | Permissions O | A read-only, by-app view of which privacy (TCC) grants each app holds, the angle System Settings does not give you. Every action deep-links to System Settings, which owns the toggles |

    ⚡ Performance


    | Module | What it does |
    |--------|------------|
    | Optimization | Manage login items and launch agents with per-item enable/disable |
    | Maintenance | System tasks: free RAM, run maintenance scripts, the startup disk, rebuild Launch Services, reindex Spotlight, flush DNS, thin Time Machine snapshots. Tasks are tagged by se, "Run Safe Tasks" is sequential, and the admin password is asked once |

    📦 Applications


    | Module | What it does |
    |--------|------------|
    | Uninstaller | A pattern-matching engine that finds every associated file across 17+ Library subdirectories (including apps nested in subfolders). Complete removal, Reset to Defaults (wipe an app's caches and preferences while keeping the app), and unused-app detection |
    | Extensions | Review third-party preference panes, Internet Plug-Ins, and Safari extensions. User-installed panes and plug-ins can go to the Trash |
    | Updater | Checks installed apps for updates own Sparkle appcast feeds (reads info only, sends nothing about you) |

    🗂️ Files


    | Module | What it does |
    |--------|------------|
    | Space Lens | Squarified-treemap of disk usage with drill-down na |
    | Large & Old Files | Finds files over 50 MB, sorted by size and last access date |
    | Duplicates | Progressi (size grouping, partial SHA-256, full hash, inode ), plus a Consolidate mode that reclaims space with APFS copy-on-write clones without deleting a single copy |
    | Shredder | Secure file erasure with standard, permanent, and secure-o modes |

    📊 Menu Bar Widget

    <p align="center">
    <img src="assets/menu_bar.png" width="300" alt="Mac Sai menu bar widget" />
    </p>

    A glassmorphism menu-bar widget that puts your Mac's one click away. It is an independent process that launches at login and is toggled from the app's sidebar, so you never have to open the main window just to check in.

  • Live stat rings: CPU load, memory pressure, disk usage, and battery in a 2x2 ring grid (host_processor_info, , APFS capacity, IOKit power source), color-graded green to amber to red

  • Configurable readout: show free disk, GPU usage, memory usage, or battery temperature; the choice persists, and una sensors show --

  • Network, uptime, and swap: real-time up/down throughput, system uptime, swap usage

  • Recommendations: actionable, dismissible tips ("User caches grew to 2.52 GB, run System Junk"), one tap to act, suppressed for 30 days once dismissed

  • Protection status: last malware-scan time and threat count, color-coded by freshness

  • Connected devices: external (with free space) and displays at a glance

  • Health alerts: throttled, opt-in notifications when the disk runs critically low or memory pressure stays high
  • ⌨️ Keyboard shortcuts

    | Shortcut | Action |
    |----------|--------|
    | ⌘R | Start a scan in the current module |
    | ⌘K | Clean the current selection (when results are showing) |
    | ⌘1 to ⌘9 | Jump to the first nine sidebar modules |
    | ⌘, | Open Settings |

    ---

    How Mac Sai compares

    | | Mac Sai | CleanMyMac | Pearcleaner | PureMac | OnyX | Mole |
    |---|:---:|:---:|:---:|:---:|:---:|:---:|
    | Price | Free | $39.95/yr | Free | Free | Free | Free (CLI) |
    | Open source | ✅ BSD-3 | ❌ | ✅ Fair-code | ✅ MIT | ❌ | ✅ MIT |
    | Telemetry | ❌ None | ⚠️ Yes | ❌ None | ❌ None | ❌ None | ❌ None |
    | Native GUI app | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ CLI (paid GUI separate) |
    | Smart Scan (one-click) | ✅ | ✅ | ❌ | ➖ Partial | ❌ | ➖ Interactive CLI |
    | System Junk (16+ categories) | ✅ | ✅ | ➖ | ✅ | ➖ Limited | ✅ |
    | Uni Binary thinning | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
    | Malware scanner | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
    | Browser privacy cleaner | ✅ | ✅ | ❌ | ❌ | ➖ | ❌ |
    | Uninstaller with lefto | ✅ | ✅ | ✅ Focus | ❌ | ❌ | ✅ |
    | Duplicate finder (+ consolidation) | ✅ | ➖ | ❌ | ❌ | ❌ | ❌ |
    | Disk treemap | ✅ | ❌ | ❌ | ❌ | ❌ | ➖ Analyzer |
    | Menu bar system monitor | ✅ | ✅ Menu | ❌ | ❌ | ❌ | ❌ |
    | Maintenance scripts | ✅ | ✅ | ❌ | ❌ | ✅ Strong | ➖ |
    | Notarized by Apple | ✅ | ✅ | ✅ | ✅ | ✅ | N/A |
    | macOS | 14+ | 13+ | 13+ | 13+ | | |

    > CleanMyMac is a great product, and the people who want a polished, supported experience should happily pay for it. Mac Sai is for e who would rather ha source code and zero subscription.

    ---

    Interface languages

    Choose System, Deutsch, Русский, 简体中文, 繁體中文, or English in Settings → Interface Language. German and Traditional Chinese translate static interface strings; interpolated messages retain the English wording and plural rules for now (Traditional Chinese falls back to Simplified). The main window and menu-bar widget share the language preference.

    Installation

    Homebrew (recommended)

    Mac Sai is in the official Homebrew cask, so no tap is needed:

    It is notarized by Apple, so it launches from Spotlight or Applications with no warnings and no extra steps.

    <details>
    <summary><strong>Other ways to install</strong> (one-line script, DMG, build from source)</summary>

    <br>

    One-line installer

    Downloads the latest DMG and installs the app to /Applications.

    DMG download

    Grab the latest DMG from Releases and drag Mac Sai to your Applications folder.

    Build from source

    Requires the Swift 6 toolchain (Xcode 16+).

    Installed via the old tap?

    Mac Sai is in the official cask now, so you can drop the tap: brew untap iliyami/macsai (your installed app and future brew upgrade are unaffected).

    </details>

    Granting Full Disk Access

    A few modules (Mail Attachments, Privacy, Malware) need Full Disk Access to scan protected areas:

    1. Open System Settings, Privacy & Security, Full Disk Access
    2. Click + and add Mac Sai.app
    3. Restart Mac Sai

    Uninstalling

    Homebrew install:

    DMG or manual install (also handles a Homebrew install):

    Both remove Mac Sai plus its preferences, caches, logs, and database under ~/Library.

    ---

    Signed, notarized, and yours to trust

    Mac Sai is code-signed with an Apple De ID and notarized by Apple. That matters more for a cleaning app than for almost anything else you install, because you are about to give it deep access to your files, and you deserve to know that what runs on your Mac is genuinely ours and untampered with. All of this is enforced by your own Mac, not just promised by us:

  • Apple has scanned it. Every release is submitted to Apple and checked for malware before it ships.

  • It cannot be tampered with. The signature is a cryptographic seal o file; change a single byte and macOS refuses to open it.

  • It is provably from us. The signature is tied to our Apple De identity, so no one else can ship something your Mac accepts as Mac Sai.

  • It just works. No Gatekeeper warnings, no right-click-to-open, no Terminal.
  • Put together with a fully open source, this is a chain of trust you do not take on faith: the code is public, we sign every release, Apple it, and your Mac re-checks the seal every time you open the app.

    no telemetry yourself

    Do not take our word for it. Both the source and the running process are checkable.

    1. Search the source for networking APIs

    You should only ever see two network paths, both optional and both read-only:

  • Sources/MacCleanKit/UpdateChecker.swift: the optional Mac Sai update check (turn it off in Settings)

  • Sources/MacClean/Modules/Updater/UpdaterModule.swift: the user-dri of *other apps'* Sparkle feeds when you open the Updater
  • There is no analytics, crash reporter, or tracker SDK anywhere in the codebase.

    2. Watch the li

    Expected: no established connections while you are only cleaning locally. Little Snitch or LuLu make the same check .

    3. Inspect the binary you actually installed

    The source and the signed binary are different artifacts, so the strongest check runs against the app on your disk, not this repo. After brew install --cask mac-sai:

    Expected: the only networking class is _OBJC_CLASS_$_NSURLSession, and the only fetch endpoints are api.github.com/repos/iliyami/MacSai/releases/latest and formulae.brew.sh/api/cask/mac-sai.json. The other github.com/iliyami/MacSai links just open in your browser. No trackers, no analytics hosts, nothing else. Re-run it after any update; it always describes the exact build you are running.

    Note: on a non-sandboxed De ID app like this one, network access is not gated by an entitlement, so this symbol and string inspection, not codesign --entitlements, is the real check. The same guard runs in CI on every change (scripts/check-network-surface.sh).

    ---

    Architecture

    Tech stack

    | Layer | Technology |
    |-------|-----------|
    | Language | Swift 6 with strict concurrency |
    | UI | SwiftUI + AppKit hybrid |
    | Concurrency | Actors, TaskGroup, async/await, |
    | Database | GRDB.swift (SQLite) with WAL mode |
    | File scanning | URLResourceKey prefetching on APFS |
    | Incremental updates | FSEvents with historical replay |
    | Pri ops | SMAppService + NSXPCConnection |
    | System stats | Mach APIs (host_processor_info, , proc_pidinfo) |

    Safety model

    Mac Sai is designed to ne data loss:

  • Protected-paths blocklist: /System, /usr, /bin, /sbin, and Apple system apps are untouchable, with macOS firmlinks canonicalized so symlink-redirect detection does not false-positive on legitimate system paths

  • Pre-scan cleanability filter: items the current process could not trash (root-owned children of system caches, data- ~/Library/Caches/com.apple.* dirs) are dropped at scan time so they ne as cleanable

  • Trash-first deletion: every removal goes to the Trash by default, and a dry-run mode previews without touching anything

  • TOCTOU pre: symlinks are re-resol before deletion

  • Excluded Folders: pick folders in Settings that scans skip entirely, and SafetyGuard additionally refuses to delete anything under them

  • Chunked, cancellable cleanup: large selections split into 5k-item chunks honoring cancellation between chunks, and scans return to idle within about a second when you hit Cancel

  • In-app activity log: every error during a clean is logged with its full path, and copyable from the post-clean screen, auto-pruned after 30 days

  • Kernel-enforced XPC gate: the pri helper uses NSXPCListener.setCodeSigningRequirement so the kernel itself rejects any connection whose code signature does not match the app's identifier and team
  • ---

    Tests

    The XCTest suite has 862 tests and treats SafetyGuard and CleaningEngine (the death-and-life files) as must-be-perfect: ad co of symlinks, path tra, NULL bytes, SIP, protected apps, file-count caps, TOCTOU, and idempotence, plus integration co of dry-run / trash / permanent cleaning, the scan state machine, every System Junk category, the treemap math, the uninstaller matching engine, duplicate detection, appcast parsing, and full end-to-end fixture-to-clean cycles. Fixtures (withTempHome, withFakeApp, withFakePlist) keep every test off your real home directory.

    ---

    Contributing

    Contributions are very welcome. Read the Contributing Guidelines, then:

    1. Fork the repo and create a feature branch
    2. Make your change (one focused change per PR keeps review easy)
    3. Run swift test
    4. Open a Pull Request

    There is also an open feature vote: 👍 the tools you want built next.

    License

    BSD 3-Clause. See LICENSE. You may use, modify, and redistribute the code, provided you keep the copyright and license text and do not use the "Mac Sai" name or contributors' names to endorse deri without permission.

    Acknowledgments

    Inspired by the open-source Mac utility community:

  • Pearcleaner: app uninstaller patterns

  • Mole: cleanup categories

  • Tencent Lemon Cleaner: modular architecture

  • Squarified Treemap algorithm by Bruls, Huizing, and van Wijk (2000)
  • Star History

    <p align="center">
    <a href="
    <picture>
    <source media="(prefers-color-scheme: dark)" srcset=" />
    <source media="(prefers-color-scheme: light)" srcset=" />
    <img alt="Star History Chart" src=" />
    </picture>
    </a>
    </p>

    <p align="center">
    <strong>Mac Sai is free software built by the community, for the community.</strong><br>
    If it saved you from a subscription, a ⭐ helps others find it.
    </p>

    项目信息

    开发语言:Swift

    Star 数:1715

    技术要点

    该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Mac Sai: the open-source Mac cleaner, optimizer, and malware scanner. A free, Apple-notarized alternative to CleanMyMac, built with Swift 6 and SwiftUI.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题MacSai - Mac Sai: the open-source Mac cleaner, optimizer, a
    所属分类病毒分析
    发布作者admin
    发布时间2026-10-05 23:12:31
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数302
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册