Hunt
macOS Gaslight Rust Backdoor Weaponizes Prompt Injection Against Analysts
Detect execution of the macOS.Gaslight Rust backdoor, rogue LaunchAgents, and unauthorized Telegram C2 channels.
Hunt Hypothesis
Threat actors deployed macOS.Gaslight Mach-O binaries establishing persistence in LaunchAgents and staging Python runtime environments to exfiltrate user keychains.
Target Platforms & Environment
All enterprise macOS endpoints (x86_64 and arm64 architectures).
Required Telemetry & Data Sources
โ Operational Execution Phases
2 Structured Investigation PhasesPersistence & Configuration Review
๐ฏ Phase Goal: Identify masquerading LaunchAgent plists and runtime artifacts.
Procedural Actions
- 1.1 Scan user directories for com.apple.system.services.activity.plist.
- 1.2 Verify code signature of binaries referenced in ProgramArguments.
Phase Hunting Logic & Queries
index=endpoint file_path="*/Library/LaunchAgents/com.apple.system.services.activity.plist" | table _time, host, user
Anomaly Confirmation & Pivot Guidance
โช Extract the binary path from the plist and check its execution history.
C2 & Exfiltration Telemetry Correlation
๐ฏ Phase Goal: Detect exfiltration of collected credentials over Telegram C2.
Procedural Actions
- 2.1 Correlate endpoint process execution with outbound HTTPS sessions to Telegram Bot API.
- 2.2 Identify archiving of login.keychain-db and browser sqlite stores.
Phase Hunting Logic & Queries
index=proxy dest_host="api.telegram.org" method=POST bytes_out>50000 | table _time, src_ip, user, bytes_out
Anomaly Confirmation & Pivot Guidance
โช Isolate the originating macOS host and review keychain access logs.