โ† Back to canonical report

Remediation

macOS Gaslight Rust Backdoor Weaponizes Prompt Injection Against Analysts

Immediate Containment

! Unload and remove ~/Library/LaunchAgents/com.apple.system.services.activity.plist via launchctl bootout gui/<uid>/.

! Kill running Gaslight binary processes and any orphaned python-build-standalone interpreter instances.

! Isolate compromised macOS endpoints from corporate network to block Telegram C2 communication.

Exposure Reduction & Patching

๐Ÿ›ก๏ธ Block outbound access to api.telegram.org from non-sanctioned client binaries at perimeter proxies.

๐Ÿ›ก๏ธ Enforce strict Apple code-signing policies prohibiting execution of ad-hoc signed unsigned Mach-O binaries.

๐Ÿ“ฆ Ensure macOS endpoints are updated to latest macOS versions with Gatekeeper and XProtect signatures enabled.

Configuration & Credentials

โš™๏ธ Enable EDR tamper protection and alerts on user LaunchAgent creation.

โš™๏ธ Deploy MDM configuration profiles restricting accessibility and keychain database access permissions.

๐Ÿ”‘ Force complete password and session revocation for all accounts saved in victim user browser profiles.

๐Ÿ”‘ Rotate all personal and enterprise credentials stored in affected login.keychain-db.

Evidence Preservation

๐Ÿ“ Acquire forensic memory image and preserve disk image of ~/Library/LaunchAgents/ and user temp directories prior to remediation.

Verification & Rollback

โœ“ Verify that com.apple.system.services.activity is no longer listed in launchctl list.

โœ“ Confirm no residual standalone Python directories exist in /tmp.

โ†ฉ๏ธ Rollback: Retain configuration backups of LaunchAgents prior to mass removal scripts.