AI Security AI安全 2d ago Updated 2d ago 更新于 2天前 48

Microsoft Links 30+ Rotating Domains to MacSync Stealer Infrastructure 微软将30多个轮换域名与MacSync窃取者基础设施关联

Microsoft Defender Experts linked over 30 rotating web domains to MacSync Stealer, a macOS-focused information stealer, by correlating endpoint and network behaviors across changing infrastructure The malware operates through a ClickFix social engineering vector, using zsh Terminal sessions, curl-based payload retrieval, and osascript for AppleScript-assisted execution to harvest credentials, SSH keys, AWS credentials, Kubernetes configs, and sensitive files Data exfiltration uses HTTP PUT reque Microsoft Defender Experts 将 30+ 个轮换域名与 MacSync Stealer 恶意软件基础设施关联,追踪其从载荷获取到数据外泄的完整攻击链 攻击者利用 ClickFix 社会工程学诱导用户在 zsh 终端执行 curl 命令,通过 Base64/gunzip 解码载荷并使用 osascript 执行 MacSync 窃取 macOS Keychain、浏览器凭据、SSH 密钥、AWS 凭证、Kubernetes 配置等敏感数据,通过 HTTP PUT 分块上传至 C2 服务器 微软通过进程谱系、命令行模式、请求路径、Headers 和上传参数等多维度行为关联识

72
Hot 热度
68
Quality 质量
62
Impact 影响力

Analysis 深度分析

TL;DR

  • Microsoft Defender Experts linked over 30 rotating web domains to MacSync Stealer, a macOS-focused information stealer, by correlating endpoint and network behaviors across changing infrastructure
  • The malware operates through a ClickFix social engineering vector, using zsh Terminal sessions, curl-based payload retrieval, and osascript for AppleScript-assisted execution to harvest credentials, SSH keys, AWS credentials, Kubernetes configs, and sensitive files
  • Data exfiltration uses HTTP PUT requests with chunked uploads (upload_id, chunk_index, total_chunks parameters) to C2 domains, with artifacts cleaned post-transfer
  • Microsoft's analysis builds on RST Cloud's prior May 8 research, with four overlapping domains confirmed between both indicator sets, though Microsoft did not publish the static API key value or attribute the campaign to a named threat actor
  • Apple has introduced Terminal paste protection, pasteboard command blocking, and AppleScript scanning in macOS 26.4+ as defensive countermeasures against this attack pattern

Why It Matters

This disclosure highlights the growing sophistication of macOS-targeted malware campaigns that leverage social engineering (ClickFix) combined with rotating domain infrastructure to evade detection, posing direct risks to enterprise Mac environments. The use of native macOS utilities (curl, osascript, zsh) for every stage of the kill chain demonstrates how attackers exploit trusted system tools to blend in with legitimate activity, making detection reliant on behavioral correlation rather than signature matching.

Technical Details

  • Attack chain: Execution begins with a ClickFix-style social engineering lure directing victims to paste commands into an interactive zsh Terminal session; curl retrieves attacker-controlled payloads over recurring /curl/ paths, with Base64 decoding and gunzip unpacking; osascript enables AppleScript-assisted execution alongside native macOS/Unix utilities
  • Data collection scope: The stealer harvests host/user information, macOS Keychain material, browser credentials and cookies, session data, Apple Notes, SSH keys, AWS credentials, Kubernetes configurations, browser history, and sensitive files from common user directories
  • Exfiltration mechanism: Collected data is staged under /tmp/sync*, compressed into /tmp/osalogging.zip, split into chunks, and uploaded via HTTP PUT requests using recurring parameters (upload_id, chunk_index, total_chunks); all temporary artifacts are removed post-exfiltration
  • Infrastructure correlation methodology: Microsoft required multiple aligned signals before linking a domain—process ancestry, command-line patterns, request paths (/curl/, /dynamic?txd=, /gate?buildtxd=), macOS User-Agent strings, API-key headers, and chunk-management parameters—enabling tracking across 30+ rotating domains
  • macOS 26.4+ defenses: Apple introduced Terminal paste protection (triggered after 24-hour grace period when Terminal hasn't been opened in 30+ days and paste originates from browsers/messaging apps), pasteboard command blocking, and AppleScript scanning; XProtect can trace process trees from pasted terminal commands and check network artifacts against Safe Browsing

Industry Insight

  • Security teams managing macOS fleets should prioritize monitoring for unusual Terminal/zsh sessions that retrieve and decode payloads, correlate AppleScript activity with credential-store access, and hunt for curl-based HTTP PUT uploads with chunk-management parameters—even after infrastructure rotates
  • The ClickFix social engineering vector combined with native tool abuse represents a low-noise, high-evasion attack pattern that will likely persist; organizations should implement Apple's macOS 26.4+ protections and educate users against pasting Terminal commands from untrusted sources
  • The overlap between Microsoft's and RST Cloud's indicator sets validates cross-researcher correlation approaches, suggesting that collaborative threat intelligence sharing around behavioral patterns (rather than just IOCs) is essential for tracking campaigns that frequently rotate infrastructure

TL;DR

  • Microsoft Defender Experts 将 30+ 个轮换域名与 MacSync Stealer 恶意软件基础设施关联,追踪其从载荷获取到数据外泄的完整攻击链
  • 攻击者利用 ClickFix 社会工程学诱导用户在 zsh 终端执行 curl 命令,通过 Base64/gunzip 解码载荷并使用 osascript 执行
  • MacSync 窃取 macOS Keychain、浏览器凭据、SSH 密钥、AWS 凭证、Kubernetes 配置等敏感数据,通过 HTTP PUT 分块上传至 C2 服务器
  • 微软通过进程谱系、命令行模式、请求路径、Headers 和上传参数等多维度行为关联识别轮换域名,而非仅依赖静态 API Key
  • Apple 在 macOS 26.4 引入终端粘贴保护、剪贴板命令拦截和 AppleScript 扫描三项防护机制应对此类攻击

为什么值得看

本文揭示了针对 macOS 平台的定向信息窃取攻击的技术细节和基础设施运营模式,为安全从业者提供了可操作的检测指标和防御建议。微软与 RST Cloud 的研究交叉验证展示了威胁情报协作的价值,同时 Apple 的新防护功能标志着 macOS 安全生态的持续演进。

技术解析

  • 攻击链分析:攻击始于 ClickFix 社会工程学诱导,用户在交互式 zsh 终端会话中粘贴恶意命令,通过 curl 从攻击者控制的域名获取载荷,使用 Base64 和 gunzip 解码/解压,最终通过 osascript 执行 AppleScript 辅助的恶意代码
  • 数据窃取范围:MacSync 窃取目标包括主机和用户信息、macOS Keychain 材料、浏览器凭据和 Cookie、会话数据、Apple Notes、SSH 密钥、AWS 凭证、Kubernetes 配置、浏览器历史及常见用户目录中的敏感文件
  • 基础设施运营模式:攻击者使用 30+ 个轮换域名作为 C2,采用并行操作而非严格顺序轮换,通过静态 API Key 和动态 hex build token 区分部署,URI 模式包括 /curl/、/dynamic?txd= 和 /gate?buildtxd=
  • 数据外泄机制:收集的数据在 /tmp/sync* 下暂存,压缩为 /tmp/osalogging.zip,分块后通过 curl HTTP PUT 请求上传,使用 upload_id、chunk_index、total_chunks 等参数管理分块,外泄后清理临时文件和日志
  • 检测与防护:微软建议监控异常终端会话、AppleScript 辅助的 shell 活动、curl 基于 HTTP PUT 的上传行为;Apple macOS 26.4+ 提供终端粘贴保护(30 天未使用 Terminal 且来自浏览器/消息应用的粘贴触发警告)、剪贴板命令拦截和 AppleScript 扫描

行业启示

  • macOS 威胁生态持续成熟:针对 macOS 的恶意软件正从简单的广告软件演变为具备完整攻击链的专业信息窃取工具,企业需将 macOS 安全纳入统一终端防护策略
  • 行为关联优于静态指标:在域名轮换基础设施面前,基于进程谱系、网络行为模式和请求特征的关联分析比依赖单一 IOCs 更有效,建议安全团队建立行为基线和异常检测机制
  • 用户教育与技术防护并重:ClickFix 等社会工程学攻击利用用户信任,需结合安全意识培训(如不粘贴运行来源不明的终端命令)与操作系统级防护(如 Apple 的粘贴保护功能)构建纵深防御

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

Security 安全 Research 科学研究