Lab Verified: 2026-11-14
DownTheDRAIN Hunt Query
Root cause vector: Social engineering using fake verification CAPTCHAs that trick users into pasting base64 terminal commands executing an evasive Mach-O stealer.
// Hunt for suspicious command execution spawned from Terminal on macOS
DeviceProcessEvents
| where OSPlatform == "macOS"
| where InitiatingProcessFileName in~ ("Terminal", "zsh", "bash", "iTerm2")
| where ProcessCommandLine has_any ("base64", "curl", "chmod +x", "DownTheDRAIN", "malware-traffic-analysis")
| where ProcessCommandLine has_any ("/tmp", "/private/tmp", "/dev/shm")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| order by Timestamp descNeed to defang indicators or test triage logs?
Use our zero-telemetry client-side parser to extract, defang & format indicators.
Target Log Sources & Tables
DeviceProcessEvents
Ensure telemetry connector is actively ingesting this table into your Sentinel workspace or Defender XDR.
False Positives & Tuning Guidance
Legitimate administrative software deployment scripts, authorized security testing, or system maintenance tasks.
Source Incident Analysis
DownTheDRAIN: How to Detect macOS ClickFix Infostealer
Disclosed: 2026-11-14
DETECTION_ENGINEERING_FEEDBACK
Submit Feedback →Have tuning recommendations, encounter false positives in your environment, or want to contribute rule improvements?