Skip to content

Demystifying (and Bypassing) macOS's Background Task Management

Patrick Wardle

Patrick Wardle dissects macOS Ventura's Background Task Management architecture, releasing open-source tooling while demonstrating trivial evasion techniques.

Summary

Rearchitecting Persistence in macOS Ventura

Malware relies on persistence mechanisms to maintain execution across system reboots. In macOS Ventura, Apple introduced Background Task Management (BTM) to alert users to persistent items.

Reverse Engineering BTM Internals and SQLite Stores

Patrick Wardle explores the undocumented daemon architecture, private XPC endpoints, and internal databases that macOS uses to track LaunchDaemons, LaunchAgents, and login items.

Open-Source Enumeration Tooling for Forensics

Because Apple's proprietary framework broke existing heuristic detection pipelines, Wardle releases open-source tools to programmatically extract and inspect all registered persistent items.

Trivially Bypassing BTM Alerts

Analyzing subtle design oversights in user notification handling demonstrates how malicious binaries can silently install persistent launch components without triggering security alerts.

Related talks