Skip to content
Submit incident
AII-1000-26161
Well documentedThree or more independent publishers report the core facts.Supporting sources are pending verification.

North Korea-linked macOS malware embeds prompt injection to evade AI analysis

Researchers discovered a North Korea-linked macOS malware called Gaslight that uses prompt injection techniques to trick AI-assisted malware analysis tools into stopping their investigation. The backdoor embeds 38 fabricated system messages designed to mislead AI agents and also steals browser data and credentials using encrypted Telegram channels.

24 June 2026 Β· North Korea Β· Security and cyberattacks
24 June 2026
AII-1000-26161
Quick facts
Category
Security and cyberattacks
Country
North Korea
Date
24 June 2026
Drafted by
Raidu Incident Detection

What happened

SentinelLabs discovered a North Korea-linked macOS backdoor called Gaslight that embeds prompt injection designed to mislead AI-assisted malware analysis tools. The malware contains 38 fabricated system messages formatted as Markdown to mimic the internal scaffolding of AI triage tools, including fake warnings about token expiry, memory errors, disk errors, and injection flaws.

Reported impact

The injected prompts are designed to cause AI agents to abort or refuse analysis of the malware. The underlying malware functions as an infostealer and backdoor, capable of stealing browser data from Chrome, Brave, Firefox and Safari, terminal histories, application lists, and the macOS login keychain, with command channels using Telegram's Bot API.

Index analysis

The prompt injection represents an adversarial attack on AI analysis pipelines rather than on sandbox environments. SentinelLabs noted earlier versions used a single injected block, while this sample stacks 38 into a cascade, suggesting evolving techniques since 2025.

Governance controls

SentinelLabs recommended that organizations building AI triage tools treat sample contents as adversarial input rather than instructions and isolate AI pipelines from potentially hostile content. Attribution to North Korean operators was supported partly through Apple's XProtect signature family.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
North Korea
Harm status
Actual harm
Intent
Intentional
Timing
Unknown
Harm types
Economic or property
Failure modes
Manipulation or dark pattern, Prompt injection
AI systems
macOS.Gaslight

Sources and evidence

Sources not yet published

This record was researched and written by the Index from original reporting. Its sources are still being verified by an editor, and they are listed here once that check is complete. Until then the record carries no reviewer.

How sources are verifiedSuggest a source for this incident