Gaslight the macOS malware that deceives the IA analysis and manipulates the triage process with prompts

Author: Published 4 min de lectura 252 reading

The images in this article were generated with artificial intelligence. How we publish

The emergence of a macOS implant written in Rust that incorporates an explicit mechanism to deceive analysis tools assisted by artificial intelligence confirms a disturbing trend: attackers are adapting their malware not only to evade sandboxing and signatures, but to manipulate the logic and confidence of LLM-based triage systems. The finding, baptized as Gaslight by its component of deception, a mix of traditional techniques - persistence through LaunchAgens, exfiltration of credentials and theft of command histories and browser data - with new tactics aimed at exploiting human and automatic flows that include analysis agents driven by language models.

From the technical point of view, what makes Gaslight relevant is not only that it takes advantage of a command and control channel through the Telegram API and a Python interpreter embedded for the "stealer," but that does not incorporate hard operator information; the token of the bot and the chat identifier are supplied in time of execution and the binary itself tries to hide the token in its exits, complicating the collection of forensic artifacts. Added to this is an interactive command structure - shell execution, file uploading, process completion - that gives persistent control over the compromised machine.

Gaslight the macOS malware that deceives the IA analysis and manipulates the triage process with prompts
Image generated with IA.

The most innovative and worrying part is the insertion of a block in Markdown format with dozens of "false system" messages (memory errors, token expiry, repeated failures) whose apparent objective is to induce a LLM agent to abort or reject file analysis by considering the session invalid or compromised. This is a practical variant of what the community knows as prompt injection, moved from the realm of text generation to the chain of malware analysis custody.

This case has several practical implications: first, it shows that the automation tools that incorporate LLM can become operating vectors if they are not designed with specific prompt injection and contextual handling defenses. Secondly, it highlights the need for incident response teams to maintain clear integrity and separation controls between the automated ingestion phase and the human analysis phase. Third, remember that sophisticated adversaries (in this case attributed with high confidence to actors aligned with North Korea according to research) combine modern software engineering - Rust, autonomous binaries, interpreter packaging - with OPSEC techniques to make it difficult to follow.

For safety teams and macOS administrators there are specific actions that need to be prioritized. First, review and audit LaunchAgens and LaunchDaemons in search of unusual labels and routes; MITRE documents the techniques of persistence of macOS that should be mapped to local telemetry ( https: / / attack.mitre.org / techniques / T1547 / 001 /). Secondly, implement the network to detect communication patterns with the Telegram API (api.telegam.org connections and abnormal use of HTTPCs protocol to endpoints associated with bots) and block or alert according to risk. Thirdly, strengthening control over interpreters brought by the attackers: Python binaries deployed in temporary locations or with unusual names deserve attention and confinement.

Gaslight the macOS malware that deceives the IA analysis and manipulates the triage process with prompts
Image generated with IA.

With regard to the specific threat of LLM handling, it is essential to introduce sanitation and contextual safety controls before feeding any model with unknown artifacts. This goes by normalizing and filtering the incoming text, running preliminary analyses in hermetic environments that do not share status with the LLM agent, and applying rules that disable automatic aborting or erasing actions without a verified human intervention. Telegram API documentation is a useful resource to understand how bots operate and what traffic to legitimately expect ( https: / / chore.telegam.org / bots / api).

In terms of detection and response, it is appropriate to look for performance indicators rather than hashes: patterns of creating compressed files in / tmp or time routes containing predictable names such as collected _ data.zip, processes that invoke Python interpreters integrated from atypical routes, and activity signatures such as recurring polling to external services that respond to "Conflict" when tokens are detected in simultaneous use. EDR and response teams should update behavioural rules to capture these sequences and prioritize manual research when there is evidence of analysis flow manipulation.

Finally, the strategic lesson is clear: the coexistence of IA-based defence tools with opponents who also use LLMs causes a race of offending and defenses in the communication layer. Defending itself requires incorporating adversarial models into internal testing, training analysts to identify artifacts designed to manipulate analysis agents and maintain a separation of responsibilities between automation and human decision-making. Organizations that adopt these practices will improve their resilience to threats such as Gaslight and minimize the risk of false negatives induced by social engineering attacks on their security pipelines.

Coverage

Related

More news on the same subject.