IT2 мин. чтения

Gaslight Malware Targets macOS AI Security Tools with Prompt Injection

Security researchers uncovered Gaslight, a novel macOS malware written in Rust that uses prompt injection to trick AI analysis tools into aborting scans or producing false security assessments.

Gaslight Malware Targets macOS AI Security Tools with Prompt Injection
Programming code snippet related to malware

Cybersecurity researchers have identified a new macOS malware strain called Gaslight. Written in Rust, the code contains a unique mechanism that deceives AI analysis tools, forcing them to terminate scans or return false results. This marks the first known instance of malware specifically designed to undermine trust in automated security systems.

Gaslight malware operation diagram for macOS

How Gaslight Works

Gaslight employs prompt injection techniques—embedding special commands that AI tools interpret as instructions. The malware contains hidden prompts that force analysis systems to:

  • Terminate file scanning
  • Ignore suspicious code segments
  • Return false security assessments

Gaslight's use of Rust makes the code resistant to traditional static analysis. The malware also masquerades as legitimate applications, complicating detection.

At-Risk Groups

Primary targets include:

Group Risk Recommendations
macOS users Data leaks, espionage Verify software sources, update systems
Companies using AI security False positives/threat misses Implement additional verification methods
Security researchers Inaccurate sample analysis Manually inspect suspicious files

Why Gaslight Poses a Critical Threat

The attack reveals three concerning trends:

  1. Growing macOS malware sophistication—40% more attacks in 2026
  2. Exploitation of AI vulnerabilities—new attack vectors
  3. Automated analysis flaws—need for human oversight
Comparison of traditional vs AI malware analysis

Protection Against Gaslight

Security experts recommend:

  • Install latest macOS security updates
  • Use layered defenses (antivirus + AI + manual review)
  • Verify developer certificates before installation
  • Monitor application network activity

Questions & Answers

How does Gaslight deceive AI analysis tools?

The code contains hidden text prompts that AI interprets as commands to stop analysis or alter results—a form of prompt injection attack.

Which macOS versions are vulnerable?

Gaslight affects all macOS versions from Big Sur (11.0) onward. Unpatched systems are particularly at risk.

Are there effective defenses against Gaslight?

Yes: system updates, verified software sources, application activity monitoring, and combining multiple threat analysis methods.

How to detect Gaslight infections?

Warning signs: unusual network traffic, root permission requests, suspicious new processes. Expert analysis required for confirmation.

Which organizations have been targeted?

Specific victims unnamed, but attacks confirmed against tech startups and research groups using AI security analytics.