Skip to main content
Vulnerability Database/CVE-2026-61732

CVE-2026-61732: Decepticon Agent RCE Vulnerability

CVE-2026-61732 is a remote code execution flaw in Decepticon autonomous hacking agent that allows attackers to execute arbitrary commands by planting malicious strings in target web pages. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-61732 Overview

CVE-2026-61732 affects Decepticon, an autonomous hacking agent built for red team operations. Versions prior to 1.1.17 inject web crawl results into Large Language Model (LLM) messages without neutralizing ChatML special-token literals. Under the Bring Your Own Key (BYOK) deployment model, operators point Decepticon at any OpenAI-compatible endpoint, including self-hosted backends such as vLLM, SGLang, Ollama, LM Studio, and text-generation-webui. Attacker-controlled strings planted in target web pages are tokenized as structural role-boundary IDs, forging an authoritative operator turn. The forged turn bypasses Decepticon's agent guardrails and executes arbitrary commands inside the Kali Linux sandbox. Version 1.1.17 patches the issue.

Critical Impact

A single malicious string on a reconnaissance target can seize control of the agent and run arbitrary commands inside the Kali Linux sandbox.

Affected Products

  • Decepticon versions prior to 1.1.17
  • Deployments using BYOK with OpenAI-compatible self-hosted LLM backends (vLLM, SGLang, Ollama, LM Studio, text-generation-webui)
  • Agent configurations relying on tokenizers that preserve ChatML, Llama-3, Gemma, or Mistral special-token IDs

Discovery Timeline

  • 2026-09-24 - CVE-2026-61732 published to the National Vulnerability Database
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-61732

Vulnerability Analysis

The flaw is a prompt injection class issue categorized under CWE-74: Improper Neutralization of Special Elements in Output. Decepticon's reconnaissance middleware wraps crawled page content inside a quarantine envelope before composing it into an LLM message. The envelope annotates risk but does not alter the bytes passed to the tokenizer. When the configured backend preserves special-token vocabulary entries, literal sequences such as <|im_start|> and <|im_end|> are parsed as role delimiters rather than text. The agent then treats attacker content as a trusted operator turn and executes the embedded instructions inside its Kali Linux sandbox.

Root Cause

The root cause is missing application-layer neutralization of chat-template control tokens in untrusted tool output. Hosted vendors such as OpenAI and Anthropic strip these literals server-side, but self-hosted OpenAI-compatible stacks do not by default. Any string matching a tokenizer's special-token vocabulary promotes attacker text into structural tokens, bypassing the quarantine envelope.

Attack Vector

An attacker plants a crafted string on any web page that Decepticon's reconnaissance agent will fetch during a red team engagement. When the crawl output is composed into an LLM message, the tokenizer resolves the literal into a role-delimiter token ID. The forged turn directs the agent to execute arbitrary shell commands inside the sandbox, achieving full compromise of the agent's execution context over the network with no authentication or user interaction.

python
# Patch excerpt from packages/decepticon/decepticon/middleware/_injection_detector.py
# Source: https://github.com/BitterSecurity/Decepticon/commit/79ee2aaf22f4c36a5b1968f6ca3f8086b6e35b67

# ── special-token literal neutralization (GHSA-g5f9-3xfg-p9mf) ────────────────
#
# Detection (above) annotates risk; it does NOT change the bytes. That is not
# enough for chat-template special tokens. Under BYOK with a self-hosted /
# OpenAI-compatible backend (vLLM, SGLang, TGI, Ollama, LM Studio, …) whose
# tokenizer preserves special-token IDs, a literal like ``<|im_start|>`` planted
# in attacker-controlled tool output is parsed into a *structural* role-delimiter
# token, forging an operator/system turn the model treats as authoritative and
# bypassing the quarantine envelope.
#
# The durable fix is application-layer: defang the literal before it is composed
# into an LLM message. We insert a zero-width space (U+200B) immediately after
# the opening bracket so the exact-match special-token vocab entry can no longer
# fire, while the text stays visually identical for the model and the operator
# audit trail.
_ZWSP = "\\u200b"

# Token families covered:
#   ChatML / Qwen / DeepSeek : <|im_start|> <|im_end|> <|endoftext|>
#   Llama-3.x                : <|begin_of_text|> <|end_of_text|>
#                              <|start_header_id|> <|end_header_id|> <|eot_id|>
#   Gemma 2/3                : <start_of_turn> <end_of_turn>
#   Mistral / Mixtral        : [INST] [/INST] <<SYS>> <</SYS>>
#   Unicode bypass           : <|…|> (U+FF5C fullwidth vertical bar, DeepSeek)

Source: GitHub commit 79ee2aa. The patch adds neutralize_special_tokens and wires it into prompt_injection_shield.py so every tool output is defanged before reaching the model.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-61732

Indicators of Compromise

  • Presence of ChatML or Llama-3 literals such as <|im_start|>, <|im_end|>, <|start_header_id|>, or <|eot_id|> in captured reconnaissance output.
  • Mistral and Gemma delimiter strings ([INST], <<SYS>>, <start_of_turn>) appearing in content fetched by the agent.
  • Fullwidth vertical bar variants (<|im_start|>, U+FF5C) in crawled HTML, indicating Unicode bypass attempts.
  • Agent command transcripts containing shell operations not initiated by the operator.

Detection Strategies

  • Scan LLM request payloads for the special-token families enumerated in GHSA-g5f9-3xfg-p9mf.
  • Diff tool-output messages against the operator audit trail to identify forged operator or system turns.
  • Alert on sandbox command execution that lacks a corresponding human-authored prompt.

Monitoring Recommendations

  • Log every tool output composed into an LLM message and retain the pre-neutralization bytes for review.
  • Monitor the Kali Linux sandbox for outbound connections, credential access, or persistence actions not tied to a sanctioned engagement.
  • Track Decepticon package versions across hosts and alert on any instance running below 1.1.17.

How to Mitigate CVE-2026-61732

Immediate Actions Required

  • Upgrade Decepticon to version 1.1.17 or later on every host that runs the agent.
  • Audit BYOK configurations and inventory which self-hosted backends preserve special-token IDs.
  • Review recent engagement logs for forged role-boundary tokens in crawled content.

Patch Information

The fix lands in commit 79ee2aa and introduces neutralize_special_tokens in packages/decepticon/decepticon/middleware/_injection_detector.py. The helper inserts a zero-width space (U+200B) after the opening bracket of any known special-token literal, breaking exact-match tokenizer vocabulary lookups while preserving visual fidelity for operators. The shield middleware in prompt_injection_shield.py invokes the helper before any tool output reaches the model. See the GitHub security advisory GHSA-g5f9-3xfg-p9mf for the full remediation guidance.

Workarounds

  • Switch BYOK configuration to a hosted provider (OpenAI, Anthropic) that strips chat-template special tokens server-side until the upgrade is complete.
  • Disable the web reconnaissance capability for any agent that cannot be patched immediately.
  • Pre-process tool output with an external filter that strips or defangs the token families listed in the advisory.
bash
# Upgrade Decepticon to the patched release
pip install --upgrade "decepticon>=1.1.17"

# Verify the installed version
python -c "import decepticon; print(decepticon.__version__)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.