<?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>Env-Variable-Override - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/env-variable-override/</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>Fri, 03 Apr 2026 02:48:24 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/env-variable-override/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>OpenClaw Workspace .env Overrides Bundled Plugin Trust Root</title><link>https://feed.craftedsignal.io/briefs/2026-04-04-openclaw-env-override/</link><pubDate>Fri, 03 Apr 2026 02:48:24 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-04-openclaw-env-override/</guid><description>OpenClaw versions up to 2026.3.28 are vulnerable to a workspace-level .env file overriding the bundled plugin trust root, potentially allowing for the execution of malicious plugins when an attacker-controlled workspace is loaded.</description><content:encoded><![CDATA[<p>OpenClaw, a workspace application, is susceptible to a vulnerability where the <code>OPENCLAW_BUNDLED_PLUGINS_DIR</code> environment variable can be overridden by a <code>.env</code> file within a workspace. This allows a malicious actor to craft a workspace containing a <code>.env</code> file that points to a directory containing malicious plugins. If a user opens this attacker-controlled workspace in a vulnerable version of OpenClaw (&lt;= 2026.3.28), the application will load and execute these malicious plugins. This vulnerability was reported by @nexrin and patched in version 2026.3.31. The risk is elevated when OpenClaw is used to process workspaces from untrusted sources.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker crafts a malicious OpenClaw workspace.</li>
<li>Within the workspace, the attacker creates a <code>.env</code> file.</li>
<li>The <code>.env</code> file contains the line <code>OPENCLAW_BUNDLED_PLUGINS_DIR=/path/to/attacker/plugins</code>.</li>
<li>The attacker places malicious plugins in the directory specified by <code>/path/to/attacker/plugins</code>. These could be JavaScript or other executable formats depending on OpenClaw's plugin architecture.</li>
<li>The attacker distributes the malicious workspace to a victim. This could be via email, shared storage, or other means.</li>
<li>The victim opens the malicious workspace with a vulnerable version of OpenClaw (&lt;= 2026.3.28).</li>
<li>OpenClaw reads the <code>.env</code> file and sets the <code>OPENCLAW_BUNDLED_PLUGINS_DIR</code> environment variable accordingly.</li>
<li>OpenClaw loads and executes the attacker-controlled plugins from the specified directory, leading to arbitrary code execution within the context of the OpenClaw process.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to execute arbitrary code within the OpenClaw environment. The impact could include data theft, modification of workspace files, or further compromise of the victim's system. The severity is tied to user interaction as the victim must open the attacker-crafted workspace. While the number of affected users is not specified in the advisory, organizations using OpenClaw for sensitive projects are most at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade OpenClaw to version 2026.3.31 or later to remediate the vulnerability.</li>
<li>Deploy the Sigma rule <code>Detect OpenClaw Plugin Directory Override</code> to detect attempts to override the plugin directory via <code>.env</code> files.</li>
<li>Implement file integrity monitoring for OpenClaw workspaces to detect unauthorized modifications to <code>.env</code> files.</li>
<li>Educate users about the risks of opening workspaces from untrusted sources.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>openclaw</category><category>plugin-security</category><category>env-variable-override</category></item></channel></rss>