AI Security AI安全 7d ago Updated 7d ago 更新于 7天前 41

AmnesiaStealer macOS Malware Steals Data, Controls Browser Sessions AmnesiaStealer macOS恶意软件窃取数据并控制浏览器会话

AmnesiaStealer is a multi-stage Rust-based macOS information stealer distributed via ClickFix attacks using counterfeit GitHub download pages The malware employs a three-stage infection chain: shell script payload delivery, data harvesting, and on-demand interactive browser remote control It targets six Chromium-based browsers, harvests keychains, Apple Notes, documents, and attempts TCC framework bypasses including CVE-2020-9771 A unique builder-driven configuration and OS version-branched logi 基于Rust的多阶段macOS信息窃取软件AmnesiaStealer通过伪造GitHub下载页面和ClickFix攻击进行分发 三阶段感染链包括:shell脚本获取并执行载荷、信息窃取模块、按需运行的远程浏览器控制模块 恶意软件窃取登录钥匙串、Chromium浏览器数据、Apple Notes和文档,并覆盖Safe Storage密钥使已保存凭据不可恢复 使用CVE-2020-9771旧TCC绕过漏洞尝试获取Safari Cookie和完全磁盘访问权限,在macOS 26上需配合已有权限才能生效 攻击者通过Chrome DevTools Protocol (CDP)实现实时浏览器远程控制,提

62
Hot 热度
60
Quality 质量
52
Impact 影响力

Analysis 深度分析

TL;DR

  • AmnesiaStealer is a multi-stage Rust-based macOS information stealer distributed via ClickFix attacks using counterfeit GitHub download pages
  • The malware employs a three-stage infection chain: shell script payload delivery, data harvesting, and on-demand interactive browser remote control
  • It targets six Chromium-based browsers, harvests keychains, Apple Notes, documents, and attempts TCC framework bypasses including CVE-2020-9771
  • A unique builder-driven configuration and OS version-branched logic allow it to use patched macOS bypasses and swap Safe Storage keys with attacker-controlled values
  • The stream module uses Chrome DevTools Protocol (CDP) to launch headless browser sessions, giving attackers real-time interactive control at ~3fps

Why It Matters

This represents an escalation in macOS-targeted credential theft, combining automated data harvesting with live interactive browser hijacking — a capability previously more common in Windows malware. The use of ClickFix social engineering combined with a counterfeit GitHub page demonstrates increasingly sophisticated delivery mechanisms targeting macOS users, who may have lower security awareness than their Windows counterparts.

Technical Details

  • Infection chain: A shell script fetched via a fake GitHub page executes the initial payload, which then runs the main infostealer module and a third on-demand stream module for browser control
  • Data harvesting: Copies login and data-protection keychains, harvests Chromium-based browser databases (Chrome, Brave, Arc, Edge, and two others), Apple Notes, and user documents
  • TCC bypass: Uses CVE-2020-9771 to attempt Safari cookie and full disk access; on macOS 26, this only works if Terminal or the malware process already has Full Disk Access granted
  • Key manipulation: Overwrites per-browser Safe Storage keys in the login keychain with attacker-controlled values, accepting loss of previously saved data but enabling decryption of anything encrypted afterward
  • Remote browser control: The stream module clones the victim's browser profile, launches it headless via CDP, and relays a ~3fps screencast to the attacker who can control keyboard, mouse, scroll, navigation, and tab management in real time
  • Persistence: Installs a LaunchDaemon for long-term access; uses a builder-driven configuration system with OS version-branched logic

Industry Insight

  • macOS security tools and monitoring should be enhanced to detect TCC bypass attempts and unauthorized headless browser processes, as current detection coverage for Mac-specific stealers remains limited compared to Windows
  • The pattern of overwriting Safe Storage keys to maintain decryption capability suggests a shift toward persistent, long-term credential harvesting rather than one-time dumps — defenders should monitor for anomalous keychain modifications
  • The use of ClickFix with counterfeit GitHub pages indicates attackers are exploiting developer-centric distribution channels; organizations should reinforce security awareness around Terminal command execution prompts, especially those referencing GitHub

TL;DR

  • 基于Rust的多阶段macOS信息窃取软件AmnesiaStealer通过伪造GitHub下载页面和ClickFix攻击进行分发
  • 三阶段感染链包括:shell脚本获取并执行载荷、信息窃取模块、按需运行的远程浏览器控制模块
  • 恶意软件窃取登录钥匙串、Chromium浏览器数据、Apple Notes和文档,并覆盖Safe Storage密钥使已保存凭据不可恢复
  • 使用CVE-2020-9771旧TCC绕过漏洞尝试获取Safari Cookie和完全磁盘访问权限,在macOS 26上需配合已有权限才能生效
  • 攻击者通过Chrome DevTools Protocol (CDP)实现实时浏览器远程控制,提供约3fps屏幕流和完整输入控制能力

为什么值得看

本文揭示了针对macOS平台的高级信息窃取技术演进,展示了攻击者如何结合社会工程学、多阶段架构和系统漏洞绕过机制进行复杂攻击。对于macOS安全从业者和企业IT管理员而言,了解这些技术细节有助于完善检测规则和防护策略。

技术解析

  • 感染架构:三阶段感染链,第一阶段通过伪造GitHub页面诱骗用户在Terminal粘贴命令执行shell脚本;第二阶段为信息窃取核心载荷;第三阶段按需下载并执行远程浏览器控制模块
  • 数据窃取能力:目标包括登录和data-protection钥匙串、六个Chromium浏览器数据库(Chrome、Brave、Arc、Edge等)、Apple Notes和文档;恶意覆盖Safe Storage密钥使已保存密码和Cookie不可恢复,但攻击者可用已知密钥解密后续加密数据
  • TCC绕过技术:利用CVE-2020-9771旧漏洞尝试绕过Transparency, Consent, and Control框架;在macOS 26上该绕过仅在Terminal或恶意软件进程已具备完全磁盘访问权限时有效
  • 远程浏览器控制:通过CDP协议克隆受害者浏览器配置文件并以无头模式运行,攻击者获得约3fps实时屏幕流和完整输入控制(键盘、鼠标、滚动、导航、标签管理),实现" hands-on-keyboard"式隐藏浏览器会话
  • 持久化与配置:安装LaunchDaemon实现持久化;采用builder驱动配置和OS版本分支逻辑,针对已修补的macOS绕过机制进行适配

行业启示

  • macOS平台正成为高级威胁的新焦点,攻击者开始采用模块化、多阶段架构和系统级绕过技术,安全团队需加强对macOS环境的威胁检测和响应能力
  • ClickFix结合伪造技术平台(如GitHub)的社会工程学攻击趋势持续上升,企业需强化用户安全意识培训,特别是针对技术用户的Terminal命令执行风险教育
  • 恶意软件采用按需下载组件和密钥替换策略,增加了传统静态检测的难度,建议采用行为分析、零信任架构和持续监控来应对这类动态威胁

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全