{"id":60446,"date":"2026-06-25T09:00:28","date_gmt":"2026-06-25T13:00:28","guid":{"rendered":"https:\/\/overcentral.com\/en\/?p=60446"},"modified":"2026-06-25T09:00:28","modified_gmt":"2026-06-25T13:00:28","slug":"macos-gaslight-rust-backdoor","status":"publish","type":"post","link":"https:\/\/overcentral.com\/en\/macos-gaslight-rust-backdoor\/","title":{"rendered":"macOS Gaslight Rust Backdoor Steals Data via Telegram"},"content":{"rendered":"<p>A newly identified Rust-based macOS backdoor, tracked as macOS.Gaslight, is combining a hidden interactive shell with <a href=\"https:\/\/overcentral.com\/en\/india-blocks-telegram-exam-fraud\/\" title=\"India Blocks Telegram Until June 22 Over Exam Fraud\" data-iacss-internal=\"1\">Telegram<\/a>aaaa-based file uploads to quietly steal data from Apple users, marking a notable evolution in how threat actors engineer implants to defeat modern detection workflows. Discovered in early <a href=\"https:\/\/overcentral.com\/en\/peroxide-codes-june-2026-free-rewards\/\" title=\"Peroxide releases new codes for June 2026 with free rewards\" data-iacss-internal=\"1\">June 2026<\/a>, the threat surfaced when an <a href=\"https:\/\/support.apple.com\/en-us\/HT207874\" target=\"_blank\" rel=\"noopener noreferrer\" data-iacss-external=\"1\">Apple XProtect<\/a> update flagged a suspicious file uploaded to VirusTotal on May 22. Despite being caught by a hash-based rule, the sample remained undetected by most static scanning engines at the time of writing.<\/p>\n<h2>macOS Gaslight Rust Backdoor: A Full Data Theft Toolkit<\/h2>\n<p>The malware packs a comprehensive data theft toolkit into a single persistent Rust binary. It steals browser credentials from Chrome, Brave, Firefox, and Safari, captures terminal histories, lists installed applications, and copies the macOS login keychain file. Collected files are archived into a zip and delivered to the attacker through Telegram\u2019s file-upload feature, blending exfiltration into normal-looking traffic that is difficult for network monitors to flag.<\/p>\n<p>Researchers at <a href=\"https:\/\/www.sentinelone.com\" target=\"_blank\" rel=\"noopener noreferrer\" data-iacss-external=\"1\">SentinelOne<\/a> noted the implant belongs, with high confidence, to a cluster of North Korea-linked macOS activity. Apple\u2019s XProtect rule ties this sample to a malware family associated with DPRK threat operations, and a sibling sample is also caught by Apple\u2019s AIRPIPE rule, which SentinelOne ties to North Korean campaigns.<\/p>\n<h2>How the Rust Backdoor Uses an Interactive Shell and Telegram File Uploads<\/h2>\n<p>Once the malware validates its Telegram bot token, the attacker gains a live interactive shell on the infected machine. The shell supports six commands, including running shell code, killing processes by ID, uploading files, and stopping the implant entirely. All communication flows through the <a href=\"https:\/\/core.telegram.org\/bots\/api\" target=\"_blank\" rel=\"noopener noreferrer\" data-iacss-external=\"1\">Telegram Bot API<\/a> polling loop, which also acts as a built-in single-instance lock.<\/p>\n<p>To harden its communication channel, the implant encrypts all traffic using AES-GCM and applies certificate pinning, making it nearly impossible to intercept through standard network monitoring. It also reads the host\u2019s proxy settings and routes traffic accordingly, allowing the malware to operate on networks that force outbound connections through a proxy. This design makes the channel resilient in tightly managed enterprise environments.<\/p>\n<p>The backdoor deploys a Python data collection module on demand, fetching a standalone Python 3.10.18 interpreter from an open-source project at runtime. This keeps the core Rust binary lean while letting the attacker expand collection when needed. Stolen data, including browser cookies and system profiles, is zipped and uploaded to the operator via Telegram before any local cleanup occurs.<\/p>\n<h2>Prompt Injection Tactics and Persistence on Infected Hosts<\/h2>\n<p>Beyond data theft, macOS.Gaslight introduces a technique aimed at analysts using AI-assisted review tools. The implant embeds 38 fake system messages formatted to mimic an AI triage harness, using delimiters that resemble internal large language model prompt scaffolding. The aim is to push AI tools into treating hostile content as trusted instructions rather than suspicious data, causing automated analysis pipelines to abort or skip the sample entirely.<\/p>\n<p>Persistence is handled through a LaunchAgent disguised under the label <code>com.apple.system.services.activity<\/code>codecodecodecodecodecode, blending the implant into Apple\u2019s service namespace to avoid detection. The malware resolves its file path at runtime and writes it into the LaunchAgent config, ensuring it survives reboots and stays active across user sessions.<\/p>\n<p>The Telegram bot token is hidden from runtime logs through a built-in self-redaction routine. When building Telegram <a href=\"https:\/\/overcentral.com\/en\/fbi-disrupts-ai-phishing-service\/\" title=\"FBI disrupts massive AI-powered phishing service using a million URLs\" data-iacss-internal=\"1\">URLs<\/a>, the implant swaps the live token for a placeholder, blocking defenders from recovering it through logs or crash reports.<\/p>\n<h2>Indicators of Compromise (IoCs)<\/h2>\n<p>Security teams should monitor for the following indicators associated with this campaign:<\/p>\n<ul>\n<li><strong>SHA-256 Hash (Main Sample):<\/strong> <code>6328567511d88fdc2ae0939c5ef17b7a63d2a833881900de018a4f12f4982525<\/code>codecodecodecodecodecode<\/li>\n<li><strong>SHA-256 Hash (Sibling BONZAI Sample):<\/strong> <code>77b4fd46994992f0e57302cfe76ed23c0d90101381d2b89fc2ddf5c4536e77ca<\/code>codecodecodecodecodecode<\/li>\n<li><strong>File Identifier:<\/strong> <code>endpoint-macos-aarch64-5555494492fc075f441637fb9d894913dde3a2ea<\/code>codecodecodecodecodecode<\/li>\n<li><strong>LaunchAgent Label:<\/strong> <code>com.apple.system.services.activity<\/code>codecodecodecodecodecode<\/li>\n<li><strong>SHA-256 Hash (Python Stealer Script):<\/strong> <code>baabf249c77bc54c54ab0e66e15af798bd28aa5b4683554456a8b73ab8741239<\/code>codecodecodecodecodecode<\/li>\n<li><strong>SHA-256 Hash (Bash Installer Script):<\/strong> <code>b3c56d689414343589f38394d19ba2fe9a518133281200faa0556ba4e4136394<\/code>codecodecodecodecodecode<\/li>\n<\/ul>\n<h2>What Affected Users and Organizations Should Do Now<\/h2>\n<p>This threat underscores the importance of a multi-layered endpoint protection solution that combines signature-based detection with behavioral analysis. For individual users, ensure macOS Gatekeeper and XProtect are enabled and updated, and avoid running unsigned or ad-hoc signed binaries from untrusted sources. For enterprise security teams, treat any suspicious sample content as adversarial input and never expose unknown files to AI analysis pipelines without proper sandboxing controls first. Monitor outbound connections to Telegram\u2019s API endpoints and deploy network monitoring tools capable of detecting encrypted tunnels to messaging platforms. Finally, enforce application allowlisting and restrict the execution of ad-hoc signed binaries to prevent this class of persistent backdoor from establishing a foothold.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A newly identified Rust-based macOS backdoor, tracked as macOS.Gaslight, is combining a hidden interactive shell with Telegramaaaa-based file uploads to quietly steal data from Apple users, marking a notable evolution in how threat actors engineer implants to defeat modern detection workflows. Discovered in early June 2026, the threat surfaced when an Apple XProtect update flagged [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":94800,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/cards.overcentral.com\/cards\/en\/60446.png","fifu_image_alt":"macOS Gaslight Rust Backdoor Steals Data via Telegram","footnotes":""},"categories":[349],"tags":[],"class_list":["post-60446","post","type-post","status-publish","format-standard","has-post-thumbnail","category-articles"],"fifu_image_url":"https:\/\/cards.overcentral.com\/cards\/en\/60446.png","fifu_image_alt":"macOS Gaslight Rust Backdoor Steals Data via Telegram","_links":{"self":[{"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/posts\/60446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/comments?post=60446"}],"version-history":[{"count":0,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/posts\/60446\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/media\/94800"}],"wp:attachment":[{"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/media?parent=60446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/categories?post=60446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/overcentral.com\/en\/wp-json\/wp\/v2\/tags?post=60446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}