Skip to content

Leveraging macOS Networking Frameworks to Heuristically Detect Malware

Patrick Wardle

Patrick Wardle leverages overlooked low-level macOS APIs and private frameworks to build open-source host network monitoring tools for generic malware detection.

Summary

Network Telemetry as a Malware Detection Heuristic

Because nearly all macOS malware strains communicate over the network for command-and-control or exfiltration, host-level network inspection provides a universal detection signal.

Overcoming the Lack of Native macOS Network Tooling

While Windows offers mature packet filtering and event tracing frameworks, macOS historically lacked accessible, programmatic APIs for comprehensive socket and process attribution.

Deep Dive into Low-Level macOS Networking APIs

Patrick Wardle explores private frameworks, NetworkExtension providers, and kernel socket filters to programmatically inspect live network states, DNS queries, and traffic statistics.

Generic Detection of Known and Zero-Day Threats

Demonstrating open-source implementations illustrates how behavioral network telemetry generically detects both known APT malware and novel zero-day macOS threats without brittle signatures.

Related talks