Sunday, October 18, 2026

Lies-in-the-Loop: How AI Safety Dialogs Can Be Exploited for Remote Code Execution

Security researchers at Checkmarx have exposed a critical vulnerability in AI agent safety mechanisms that transforms Human-in-the-Loop (HITL) dialogs designed as security safeguards into vectors for remote code execution.

The attack, dubbed “Lies-in-the-Loop” (LITL), exploits user trust in approval dialogs by forging their content, effectively turning the last line of defense into a weapon.

The vulnerability affects popular AI code assistants, including Claude Code and Microsoft Copilot Chat, both of which implement HITL dialogs to protect against prompt-injection attacks.

LITL attack workflow.
LITL attack workflow.

These dialogs are recommended explicitly by OWASP as mitigation for LLM01 (Prompt Injection) and LLM06 (Excessive Agency) vulnerabilities from the OWASP LLM Top 10 list.

Exploiting Trust Dialog Manipulation

The LITL attack manipulates what users see in approval dialogs through indirect prompt injection. By injecting malicious content into external data sources that AI agents process, attackers can forge HITL dialogs that appear benign while concealing dangerous commands.

When the LITL attack is not involved, this is how Claude Code’s HITL dialog looks when it runs in VS Code terminal.

Regular behavior: git init command displayed and HITL dialog asks permission.
Regular behavior: git init command displayed and HITL dialog asks permission.

The attack employs multiple sophisticated techniques including padding manipulation, where lengthy benign-looking text pushes malicious payloads above the visible terminal area, and metadata tampering that alters the one-line descriptions summarizing agent actions.

Checkmarx researchers demonstrated the attack against Claude Code, showing how attackers can execute arbitrary commands while users review what appears to be safe operations like bug fixes or repository initialization.

The vulnerability is particularly dangerous for privileged agents like code assistants, which can execute OS commands and typically lack additional safeguards beyond HITL dialogs.

Researchers discovered that Microsoft Copilot Chat fails to properly sanitize Markdown in HITL dialogs, enabling attackers to inject formatted content that can break out of code blocks and present entirely fabricated user interfaces.

This allows attackers to close the code block containing malicious commands prematurely, insert explanatory text to push threats out of view, and open new blocks displaying benign commands.

When Markdown injection is combined with indirect prompt injection, the attack becomes nearly undetectable users review only safe-looking commands while unknowingly authorizing malicious code execution.

The researchers note that terminals with basic ASCII rendering make deception easier compared to feature-rich UI environments that offer stronger visual distinctions.

Mitigations

Checkmarx disclosed the vulnerability to Anthropic in August 2025, which classified both the command injection and HITL dialog forging as “Informative” and outside their current threat model.

 In Claude Code (which runs in the VS Code terminal in my setup), the HITL dialog is distinguished only by a thin 1-pixel border.

Claude Code HITL dialog edited to highlight the thin border around dialog content.
Claude Code HITL dialog edited to highlight the thin border around dialog content.

Microsoft acknowledged a report in October 2025 but marked it as completed without implementing fixes by November.

Recommended mitigations include implementing stricter input validation, using safe OS APIs that separate commands from arguments, restricting HITL dialog length, and applying Markdown sanitization.

However, researchers emphasize that no silver bullet exists the fundamental issue is that humans can only respond to what agents present, and that presentation can be manipulated through context poisoning.

The discovery underscores growing concerns about AI agent security as these tools gain privileged access to development environments and sensitive systems, requiring defense-in-depth strategies rather than reliance on single safeguard mechanisms.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir
Mayura Kathirhttps://gbhackers.com/
Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access...

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how...

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a...

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign...

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting...

New GhostBat Android Malware Targets 60 Banking and UPI Apps to Steal PINs

A new GhostBat RAT variant targets 60 Android financial...

New ROMULUS Malware Platform Uses Six Servers to Deliver Multiple Malicious Payloads

ROMULUS, a shared ClickFix delivery platform operating across six...

Related Articles

Recent News