Return to Threats

New Gaslight macOS Malware Uses Prompt Injection to Disrupt AI-Assisted Analysis

thehackernews.com 2026-06-25 indirect prompt injection High

What Happened

A previously undocumented Rust-based macOS implant and information stealer has been found to embed a prompt injection payload designed to trick a malware analyst's artificial intelligence (AI) tools and trick it into aborting or refusing an analysis of the artifact. The malware has been codenamed Gaslight owing to this deceptive behavior. It's been assessed with high confidence that the tool is

Why It Matters

The article describes macOS.Gaslight, a Rust-based macOS implant and infostealer linked with high confidence to North Korea–aligned actors that embeds a 3.5 KB prompt-injection payload of 38 fabricated "system" messages inside the malware sample itself.[2][6] These Markdown-fenced messages are crafted to mimic an LLM triage harness and claim token expiry, OOM kills, disk failures, bogus injection warnings, and static-analysis flags, with the explicit goal of steering LLM-assisted analysis tools into aborting, truncating, or misclassifying the analysis rather than attacking the model directly.[2][4][6] From a CyberSE.AI perspective, this is a clear indirect prompt injection pattern where adversarial content in an analyzed artifact targets downstream AI agents in the reverse-engineering pipeline, showing that any system which blindly feeds untrusted sample content into LLMs is at risk of evasion and mis-triage. Defenders should treat all artifact content as adversarial input, enforce strict prompt scaffolding and content isolation in AI tooling, and incorporate adversarial-prompt testing and hardening (via secure agent design, business-logic audits, and continuous AI red team

Healthcare Fintech SaaS SMB AI startups

CyberSE Analysis

This signal maps to indirect prompt injection. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.

Recommended Actions

  • Restrict AI agent tool permissions and production write paths.
  • Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
  • Add human approval workflows for high-impact or state-changing actions.
  • Run prompt injection and indirect prompt injection tests against affected workflows.
  • Document the owner, control gap, and remediation deadline for this risk class.

Source

https://thehackernews.com/2026/06/new-gaslight-macos-malware-uses-prompt.html

Talk to AI CISO