<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>PurpleAILAB - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/purpleailab/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 24 Sep 2026 20:04:18 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/purpleailab/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Decepticon Agent Framework Role-Boundary Forgery via ChatML Special-Token Literals</title><link>https://feed.craftedsignal.io/briefs/2026-09-decepticon-role-boundary-forgery/</link><pubDate>Thu, 24 Sep 2026 20:04:18 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-decepticon-role-boundary-forgery/</guid><description>The Decepticon agent framework fails to sanitize model-specific special-token literals in external reconnaissance data, allowing attackers to forge system-level instructions and execute arbitrary commands in the agent's Kali Linux sandbox.</description><content:encoded><![CDATA[<p>Decepticon (v1.1.16 and earlier) is vulnerable to a role-boundary forgery attack caused by the inclusion of unsanitized ChatML and other model-specific special-token literals in LLM message pipelines. The framework aggregates reconnaissance data from external tools - such as web crawlers, Nmap, and HTTP probes - into LLM context windows without neutralizing structural tokens.</p>
<p>When Decepticon is deployed using a BYOK model with OpenAI-compatible backends (e.g., vLLM, SGLang) that do not strip special-token literals server-side, an attacker can embed malicious literals like <code>&lt;|im_start|&gt;system</code> in a target web page. The model interprets these literals as structural boundaries, causing it to incorrectly transition from the &quot;tool&quot; role to a forged &quot;system&quot; turn. This bypasses agentic guardrails and allows the attacker to force the model to execute arbitrary shell commands within the underlying Kali Linux sandbox container used for exploit execution.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker hosts a malicious web page containing hidden ChatML literals (e.g., <code>&lt;|im_start|&gt;system</code>) and a command payload.</li>
<li>The Decepticon recon agent initiates a scan using a tool like <code>katana</code> against the attacker-controlled target.</li>
<li>The agent receives the HTTP response containing the malicious ChatML literals and stores the output as raw string data.</li>
<li>The Decepticon <code>llm/factory.py</code> logic composes an LLM message list, wrapping the raw tool output without performing sanitization.</li>
<li>The framework transmits the unsanitized messages to the LLM backend via the <code>ChatOpenAI</code> subclass <code>ainvoke()</code> method.</li>
<li>The backend tokenizer translates the embedded ChatML literals into structural role-boundary IDs, causing the model to treat the attacker payload as an authoritative system instruction.</li>
<li>The agent's model logic follows the forged instruction to call <code>backends/http_sandbox.py</code> with an arbitrary command.</li>
<li>The Kali Linux sandbox executes the injected shell command, resulting in complete container compromise.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary code execution (ACE) within the isolated Kali Linux sandbox container. While the sandbox provides a level of isolation, the agent's architecture gives it access to reconnaissance data and potentially other internal network resources reachable from the container environment. The vulnerability impacts all 16 specialist agents within the Decepticon framework and is confirmed against common model providers like vLLM and SGLang.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Patch immediately by upgrading <code>decepticon</code>, <code>decepticon-core</code>, and <code>decepticon-sdk</code> to a version that implements literal filtering.</li>
<li>Implement an application-layer sanitization step in the LLM message composition pipeline that strips or escapes known special-token literals (e.g., <code>&lt;|im_start|</code>, <code>&lt;|im_end|</code>, <code>&lt;|begin_of_text|&gt;</code>) before ingestion into the context window.</li>
<li>Reference the remediation logic provided in OpenClaw commit <code>2514746b3261</code> as a verified mitigation pattern.</li>
<li>Perform regression testing on the tokenizer's chat template output to ensure special-token literals are correctly neutralized by the application logic before reaching the LLM inference layer.</li>
</ol>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>agent-security</category><category>llm-security</category><category>prompt-injection</category><category>rce</category></item></channel></rss>