A background service that scans every directory OpenClaw opens for malicious .env files, poisoned configs, and environment variable injection payloads before the agent loads them
CVE-2026-41294 (CVSS 8.6) proved that a single .env file in the wrong directory can override OpenClaw security settings during startup. The attack surface is broad: any git clone, any downloaded project, any shared workspace could contain a weaponized .env. OpenClaw loads env vars from the current working directory before establishing its trusted configuration. This tool runs as a pre-flight scan before OpenClaw starts, checking every .env file in the workspace chain for suspicious overrides, known injection patterns, and variables that should never come from untrusted sources.
Social Proof 1 sources
Gap Assessment
3 tools exist (OpenClaw v2026.3.28 fix, dotenv-vault, ClawSec) but gaps remain: Only fixes the loading order for one specific attack vector. Does not scan for malicious .env files, does not protect against new injection patterns, does not alert on runtime env changes; General-purpose env management, not OpenClaw-aware. Does not scan for OpenClaw-specific injection patterns or integrate with the OpenClaw plugin system.
Features3 agent-ready prompts
Competitive LandscapeFREE
| Product | Does | Missing |
|---|---|---|
| OpenClaw v2026.3.28 fix | Changed .env loading order so trusted state-dir config takes precedence over CWD .env files | Only fixes the loading order for one specific attack vector. Does not scan for malicious .env files, does not protect against new injection patterns, does not alert on runtime env changes |
| dotenv-vault | Encrypted environment variable management and sync across environments | General-purpose env management, not OpenClaw-aware. Does not scan for OpenClaw-specific injection patterns or integrate with the OpenClaw plugin system |
| ClawSec | Open-source security skill suite for OpenClaw agents covering prompt injection and tool abuse | Focuses on prompt injection and runtime skill behavior, not on pre-start environment variable validation or .env file scanning |
Sign in to unlock full access.