Low Hanging Apples: Red Teaming MacOS
Waleed Barakat (Red Team Operator · TikTok USDS JV), Paul Montgomery (Red Team Lead · TikTok USDS JV)
Insomni'hack 2026 · Day 1 · Main Track
Overview
In this technical deep dive presented at Insomni'hack, Paul Montgomery and Waleed Barakat walk through advanced red teaming tradecraft targeting modern macOS environments. Despite Apple's aggressive hardening efforts—including the Endpoint Security Framework (ESF), Transparency, Consent, and Control (TCC), and browser-level controls like app-bound encryption—red teams can still achieve significant footholds by leveraging overlooked attack surfaces. The speakers demonstrate that while low-level kernel exploits are increasingly difficult to operationalize, administrative components, application-layer integrations, and misconfigured IPC mechanisms offer ample opportunity for initial access, credential theft, and privilege escalation.

Key moments
- 0:00 Introduction and agenda overview
- 4:28 Initial access via bot breaching
- 10:30 Execution payloads and Apple Shortcuts
- 18:41 Credential access and Electron applications
- 34:36 Electron Puppet demo and cookie stealing
- 41:35 MCP persistence and exfiltration techniques
- 46:42 Zero-day case study and full disk access
- 51:30 Privilege escalation to root on macOS
Low Hanging Apples: Red Teaming MacOS
Speakers: Waleed Barakat (Red Team Operator, TikTok USDS JV); Paul Montgomery (Red Team Lead, TikTok USDS JV)
Conference: Insomni'hack
YouTube: https://www.youtube.com/watch?v=hTvbQw4Ab3U
Overview
In this technical deep dive presented at Insomni'hack, Paul Montgomery and Waleed Barakat walk through advanced red teaming tradecraft targeting modern macOS environments. Despite Apple's aggressive hardening efforts—including the Endpoint Security Framework (ESF), Transparency, Consent, and Control (TCC), and browser-level controls like app-bound encryption—red teams can still achieve significant footholds by leveraging overlooked attack surfaces. The speakers demonstrate that while low-level kernel exploits are increasingly difficult to operationalize, administrative components, application-layer integrations, and misconfigured IPC mechanisms offer ample opportunity for initial access, credential theft, and privilege escalation.
The talk introduces four open-source tool drops designed to operationalize these techniques: Japetto for bot-based phishing, Plug and Play for Visual Studio Code (VS Code) extension C2, Electron Puppet for Chromium/Electron debugging and session hijacking, and BadMCP for Model Context Protocol persistence. By shifting the focus from traditional malware delivery to abusing legitimate enterprise tools and developer frameworks, the presenters illustrate a modern, evasive methodology for navigating fortified macOS environments.
Background
▶ Watch: Introduction and agenda overview (0:00)
Operating on macOS has changed drastically over the past few years. Security vendors and Apple have expanded continuous telemetry via ESF, allowing EDR solutions to monitor process execution and file mounts with granular precision. Simultaneously, TCC has evolved to protect sensitive user data—such cameras, microphones, and local directories—by enforcing strict consent prompts. Furthermore, browser security measures have clamped down on unpacked extensions following 2024’s "click-fix" campaigns, and Chrome’s app-bound encryption has fortified SQLite cookie databases against simple plaintext scraping.
Historically, attackers relied on phishing users to execute unsigned binaries or sideload malicious payloads, but Gatekeeper and updated quarantine attributes (com.apple.quarantine) catch many of these attempts out of the box. However, enterprise environments increasingly rely on cloud-integrated developer tools, internal chat bots, and complex desktop applications built on frameworks like Electron. These software layers inherit high-level system permissions, bypass traditional endpoint defenses, and create a fertile ground for red team operators who know where to look.
Key Findings
▶ Watch: Execution payloads and Apple Shortcuts (10:30)
Barakat and Montgomery highlight several key discoveries across the macOS attack lifecycle, demonstrating that modern productivity and development tools frequently bypass traditional security telemetry:
- Bot-Based Phishing: Instant messaging bots (Slack, Microsoft Teams, Lark, Google Chat) serve as code-controlled endpoints with API tokens that can be harvested from public repositories, mobile apps, or CI/CD pipelines. Phishing via official chat bots leverages interactive card builders and UI components, yielding significantly higher success rates than traditional email lures.
- Developer IDE Extension Abuse: Extensions for IDEs like VS Code, Cursor, and Windsurf run in the extension host process, inheriting the IDE's broad TCC permissions (such as access to Desktop and Downloads directories) and bypassing typical endpoint detection rules.
- Chromium Remote Debugging in Electron Apps: While Electron fuses (such as
runAsNodeorenableNodeCliInspect) can be hardened by developers, the underlying Chromium rendering engine can still be exposed via the remote debugging port (--remote-debugging-port), permitting unauthenticated WebSocket connections to execute arbitrary Chrome DevTools Protocol (CDP) commands. - Model Context Protocol (MCP) Bundles: Anthropic’s MCP specification introduces zip-based bundles (
.mcpbfiles) that install via a simple double-click, enabling malicious local MCP servers to act as silent shims between LLM clients and legitimate services for data exfiltration and persistence.
Technical Deep Dive
▶ Watch: Electron Puppet demo and cookie stealing (34:36)
The speakers dive deep into the technical mechanics of exploiting high-privilege application components.
Chromium Remote Debugging via CDP
When Electron fuses are disabled, attackers target the Chromium component using the remote debugging port flag. By curling the HTTP endpoints (/json/version, /json, /json/protocol), operators identify active WebSocket targets. Connecting to these WebSockets permits the execution of CDP methods such as:
page.navigatewith a file schema URL (file:///) to render TCC-protected files into a local window, subsequently scraping the contents via JavaScript expressions.page.captureScreenshotto capture base64-encoded screenshots of specific application windows.network.getAllCookiesto bypassHttpOnlyflags and dump session tokens directly from memory.
Keylogging and Session Proxying via CDP
Using the Runtime.evaluate and Runtime.addBinding CDP methods, operators can establish persistent script bindings that log keystrokes within an application's boundary. Furthermore, by injecting malicious JavaScript payloads (derived from tools like Cursed Chrome) into authenticated Electron apps, operators can stand up a local proxy server. This routes attacker-controlled browser traffic through the victim’s authenticated session, achieving full account takeover without installing a persistent browser extension.
SQLite Overwrites and Authorization Right Tampering
In a CVE case study targeting an enterprise security forwarder, the speakers analyzed an XPC (Cross-Process Communication) service (event report service) that failed to properly validate connecting clients. By abusing the submitQuery function, they discovered they could attach arbitrary SQLite databases (ATTACH DATABASE). Leveraging SQLCipher export strings with a blank decryption key allowed them to read and write to sensitive system databases, such as the iMessage database.
Taking this a step further to achieve root privilege escalation, they targeted the macOS authorization database (authdb). By modifying the system.privilege.admin authorization right from requiring an admin prompt to allow everyone, they could invoke the deprecated AuthorizationExecuteWithPrivileges API to execute arbitrary binaries as root.
Demo / Proof of Concept
▶ Watch: MCP persistence and exfiltration techniques (41:35)
The presentation features four major tool drops demonstrated live:
- Japetto: A Go-based tool with a rich terminal user interface (TUI) that connects to Slack, Google Chat, and Lark APIs using harvested bot tokens, sending bulk phishing cards and interactive modals.
- Plug and Play: A VS Code extension C2 framework utilizing a 3-tier architecture (victim websocket $\rightarrow$ Nginx TLS proxy $\rightarrow$ Operator CLI) that executes shell commands under the extension host process and spreads laterally to Codium-based IDEs like Cursor.
- Electron Puppet: A tool that connects to exposed Chromium remote debugging ports in apps like Slack and Lark to override TCC, take screenshots, dump session cookies, and perform partial keylogging.
- BadMCP: A tool that generates trojanized
.mcpbbundles for double-click initial access and acts as a transparent man-in-the-middle proxy between LLM clients (like Claude Desktop) and legitimate MCP servers to exfiltrate interactions.
Defensive Implications
▶ Watch: Privilege escalation to root on macOS (51:30)
Defenders must look beyond traditional binary execution monitoring and audit the auxiliary components that modern desktop software relies upon:
- Harden Electron Fuses: Ensure that build-time flags disabling
runAsNode,enableNodeCliInspect, and ensuring embedded ASAR integrity validation are strictly enforced. Ensure remote debugging flags are disabled in production builds. - Audit IPC and XPC Services: Review privileged helper tools and XPC interfaces for proper client code-signing and entitlement validation to prevent unauthorized method invocation and SQLite database manipulation.
- Monitor API Token Hygiene: Treat bot tokens (Slack, Teams, Lark) with the same rigor as administrative credentials. Implement automated scanning for hard-coded tokens in source code repositories and cached build artifacts.
- Restrict IDE and LLM Integrations: Restrict the installation of unverified VSIX extensions and MCP bundles via Mobile Device Management (MDM) policies and Endpoint Security controls.
Key Takeaways
- Instant messaging bots provide high-trust, interactive initial access vectors that bypass traditional email filters.
- VS Code and Electron extensions inherit broad user permissions and provide ideal avenues for persistent C2 and lateral movement.
- Exposing Chromium remote debugging ports enables unauthenticated CDP exploitation, bypassing
HttpOnlycookie restrictions and TCC boundaries. - Vulnerabilities in privileged XPC services and SQLite-backed agents can be chained to achieve full disk access and root privilege escalation.
- Four new open-source tools (Japetto, Plug and Play, Electron Puppet, and BadMCP) were released to demonstrate these attack primitives.
About the Speaker(s)
- Waleed Barakat (Red Team Operator, TikTok USDS JV): Waleed is a macOS security specialist who focuses on macOS exploit development and zero-day research. He utilizes custom malware engineering to drive advanced adversary simulations, specializing in mimicking sophisticated threats to harden organizational defenses and validate detection capabilities.
- Paul Montgomery (Red Team Lead, TikTok USDS JV): Paul is the Red Team Lead at TikTok USDS JV, presenting at this talk as an independent researcher. He has a keen interest in macOS, social engineering, and attack path mapping.