A new family of macOS malware named Gaslight, written in Rust, has been discovered. It employs an innovative prompt injection technique, embedding dozens of fake system error messages into its binary to confuse AI-based automated analysis tools.

What Happened
Gaslight malware embeds fake error messages, such as memory leak or token expiration alerts, into its binary files. This tactic is aimed at deceiving AI agents that automate malicious code analysis, forcing them to terminate sessions or issue incorrect security verdicts. Researchers from SentinelOne link this malware's activity to North Korean hacking groups.
Context
Unlike traditional attacks aimed at bypassing sandboxes, Gaslight shifts the threat vector to the cognitive processes of AI analysts. The use of Rust allows attackers to create high-performance software capable of effectively manipulating the context processed by Large Language Models (LLMs) during threat research.
Why It Matters for the Industry
For the cybersecurity industry, this is a significant signal regarding the need for evolving defense tools. Developers of AI-based security systems must account for the risk of context manipulation via malicious code and implement methods such as context sanitization and Signal Validation.
Why It Matters for Users
Users who utilize AI tools to analyze software code or system logs should exercise caution. A malicious file may be specifically designed to trick your chatbot into ignoring real suspicious activity, creating a false sense of security.
Sources
Author
Look at AI, Editorial Staff
