A new macOS threat is not just attacking systems - it is attempting to manipulate the AI tools used to analyze malware

Cybersecurity researchers discovered a new macOS malware called Gaslight. The malware introduces a new attack method by targeting AI-assisted security analysis workflows.

Most malware focuses on stealing data, damaging systems, or maintaining unauthorized access. However, Gaslight takes a different approach. It attempts to manipulate artificial intelligence tools used by security researchers during malware investigation.

Researchers believe the malware has links to North Korea-aligned threat actors. The campaign highlights a growing concern: attackers are now exploring ways to influence AI systems that support cybersecurity operations.

How Gaslight Malware Operates

Gaslight is a Rust-based macOS implant designed to provide attackers with remote access and data theft capabilities.

The malware connects with a Telegram bot API for command and control (C2). This allows attackers to communicate with infected devices and execute commands remotely.

The malware supports several commands, including:

  • Running remote shell commands
  • Uploading files from infected devices
  • Ending specific processes
  • Collecting system details
  • Stopping malware execution

Additionally, Gaslight creates persistence on macOS systems through a LaunchAgent. This allows the malware to start automatically after specific system events.

Gaslight Steals Sensitive Information

Along with remote access features, Gaslight includes an information-stealing component.

The malware uses an embedded Python script to collect valuable data from infected systems.

The collected information includes:

  • Terminal command history
  • Installed applications
  • Running processes
  • System hardware details
  • Software configuration data
  • macOS Keychain information
  • Browser data from Chrome, Safari, Firefox, and Brave

After collecting the information, Gaslight compresses the data into an archive and sends it to attackers through Telegram.

Malware That Attempts to Trick AI Analysis

The most unusual feature of Gaslight is its ability to target AI-based malware analysis.

The malware contains fake system messages inside a Markdown block. These messages are designed to look like warnings from an AI environment.

The fake alerts include:

  • Token expiration errors
  • Memory failure messages
  • Disk space warnings
  • Analysis failure notifications
  • False security warnings

The goal is not to break the AI model. Instead, Gaslight tries to influence the AI assistant’s understanding of the investigation.

This creates a new challenge for security teams using AI tools. Analysts may receive incorrect analysis results if they do not validate AI-generated findings.

What This Means for Cybersecurity Teams

AI is becoming an important part of modern security operations. Organizations use AI tools for threat detection, malware analysis, and incident response.

However, Gaslight shows that attackers may now target the AI workflows themselves.

Security teams should consider:

  • Reviewing AI-generated analysis before making decisions
  • Maintaining human oversight during investigations
  • Combining AI tools with traditional security controls
  • Monitoring unusual malware behavior patterns

As a result, future cybersecurity defenses must protect not only endpoints and networks but also the AI systems that help defend them.

Gaslight represents a new stage in cyber threats. Attackers are no longer only trying to compromise devices. They are also attempting to influence how defenders understand and respond to attacks.