CVE-2021-30952 Elastic Security · Elastic

Detect CVE-2021-30952: Apple Multiple Products Integer Overflow Exploitation in Elastic Security

Detects exploitation attempts of CVE-2021-30952, an integer overflow vulnerability in Apple Multiple Products. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild. Integer overflow conditions in Apple platform components can lead to memory corruption, arbitrary code execution, or privilege escalation.

MITRE ATT&CK

Tactic
Execution Privilege Escalation Initial Access

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.name, user.name with maxspan=5m
  [process where host.os.type == "macos"
   and process.name in ("com.apple.WebKit.WebContent", "WebContent", "Safari", "MobileSafari")
   and event.type == "start"]
  [process where host.os.type == "macos"
   and process.parent.name in ("com.apple.WebKit.WebContent", "WebContent", "Safari")
   and process.name not in ("com.apple.WebKit.Networking", "com.apple.WebKit.GPU", "SafariCloudHistoryPushAgent")
   and not process.executable : "/Applications/*"
   and not process.executable : "/System/*"
   and not process.executable : "/usr/bin/*"]
high severity medium confidence

EQL sequence rule detecting WebKit process spawning unexpected child processes outside standard Apple application paths, a behavioral indicator of post-exploitation following CVE-2021-30952 integer overflow.

Data Sources

Elastic Endpoint SecurityElastic Agent macOS

Required Tables

logs-endpoint.events.process*

False Positives & Tuning

  • Custom enterprise applications that embed WebKit as a framework and spawn helpers
  • Third-party browsers based on WebKit launching legitimate companion processes
  • System integrity protection disabled on developer machines running non-standard builds

Other platforms for CVE-2021-30952


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate WebKit Process Spawning Shell from Non-Standard Path

    Expected signal: Process creation event showing /tmp/webkit-sim/WebContent spawning with process name matching WebContent but executing from /tmp path

  2. Test 2Create Persistence via LaunchAgent After Simulated WebKit Compromise

    Expected signal: File creation event for plist in ~/Library/LaunchAgents/ followed by launchctl process execution loading the new agent

  3. Test 3Simulate Integer Overflow Memory Pressure via Safari Crash Report Generation

    Expected signal: File creation event for .crash file in /tmp with WebContent prefix; potential file integrity monitoring alert

Unlock Pro Content

Get the full detection package for CVE-2021-30952 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections