<?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-Override - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/env-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>Thu, 02 Apr 2026 21:00:16 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/env-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 Hook Override Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-04-02-openclaw-env-override/</link><pubDate>Thu, 02 Apr 2026 21:00:16 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-02-openclaw-env-override/</guid><description>The openclaw package is vulnerable to a high severity issue where a workspace's `.env` file can override the `OPENCLAW_BUNDLED_HOOKS_DIR`, allowing attackers to replace trusted hooks with malicious code.</description><content:encoded><![CDATA[<p>The <code>openclaw</code> package, a yet-to-be-defined tool, is vulnerable to a critical flaw affecting versions 2026.3.28 and earlier. This vulnerability stems from the application's susceptibility to having its default hook directory, designated by the <code>OPENCLAW_BUNDLED_HOOKS_DIR</code> environment variable, overridden by settings defined within a workspace's <code>.env</code> file. An attacker could leverage this vulnerability within an untrusted workspace to replace trusted, default-on bundled hooks with malicious code. Version 2026.3.31 resolves this issue. This vulnerability was reported by @nexrin.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains access to or creates a workspace where OpenClaw is used.</li>
<li>The attacker crafts a malicious <code>.env</code> file within the workspace.</li>
<li>The malicious <code>.env</code> file defines <code>OPENCLAW_BUNDLED_HOOKS_DIR</code> and sets it to a directory controlled by the attacker.</li>
<li>The attacker places malicious hook scripts (e.g., JavaScript, Python, or shell scripts) within the attacker-controlled directory. These scripts are designed to execute arbitrary code.</li>
<li>When OpenClaw initializes within the workspace, it reads the <code>.env</code> file and uses the attacker-controlled directory as the location for bundled hooks, instead of the intended secure location.</li>
<li>OpenClaw executes the malicious hook scripts as part of its normal operation.</li>
<li>The attacker achieves code execution within the context of the OpenClaw process.</li>
<li>The attacker leverages the code execution to establish persistence or escalate privileges on the affected system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to execute arbitrary code within the context of the OpenClaw application. Depending on how OpenClaw is implemented and the privileges it operates with, this could lead to complete system compromise. This could impact any environment where OpenClaw is used to manage or automate tasks within workspaces.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the <code>openclaw</code> package to version 2026.3.31 or later to patch the vulnerability.</li>
<li>Monitor for modifications to <code>.env</code> files within OpenClaw workspaces, looking for changes to the <code>OPENCLAW_BUNDLED_HOOKS_DIR</code> environment variable. Deploy the &quot;Detect OpenClaw Bundled Hooks Override via .env&quot; Sigma rule to detect this.</li>
<li>Implement strict access controls on OpenClaw workspaces to prevent unauthorized users from modifying <code>.env</code> files.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>openclaw</category><category>env-override</category><category>hook-injection</category></item></channel></rss>