OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)
Detects CVE-2026-55743 (CRITICAL): the shell tool command allowlist in OpenHuman desktop agent <= 0.54.0 (default Supervised SecurityPolicy) is bypassed because is_command_allowed() strips leading inline KEY=value environment-variable assignments (skip_env_assignments) before validation, and is_args_safe() blocks find -exec/-ok but not the functionally identical -execdir/-okdir. An attacker prefixes an allowlisted command with a dangerous env var (GIT_EXTERNAL_DIFF, GIT_SSH_COMMAND, GIT_PAGER, LD_PRELOAD, BASH_ENV, PYTHONSTARTUP) pointing at a payload, e.g. "GIT_PAGER=/tmp/payload.sh git log", so the allowlisted git binary executes the attacker-controlled subprocess. This rule keys on a dangerous env-var assignment (= path/command) immediately preceding an allowlisted binary, and on find with -execdir/-okdir.
Response Actions
References
Detection Conditions
Combinator: any- 01Dangerous environment-variable assignment to a path/command immediately preceding an allowlisted binary - the CVE-2026-55743 env-prefix allowlist bypass (e.g. GIT_PAGER=/tmp/payload.sh git log, LD_PRELOAD=/tmp/x.so git status). The assignment must sit at the START of a command (string start, newline, or after ; & | ( : , or an opening quote - the last three cover the command embedded in YAML/JSON tool arguments). That is what "prefix" means in skip_env_assignments: the function strips assignments that LEAD the command string, so `WRAPPER KEY=val allowlisted-cmd` is a different shape - the validated first token is then WRAPPER, which the Supervised policy allowlist rejects on its own. Without the anchor this condition also matched sudo/env-wrapped GTFOBins privilege-escalation one-liners, which are not this CVE. See evasion_tests for the shapes the anchor gives up.field: contentop: regex
- 02find invoked with -execdir/-okdir - the flags is_args_safe() failed to block, executing an arbitrary command per matched filefield: contentop: regex
- 03explicit CVE framing combined with the bypass mechanism keywordsfield: contentop: regex
Attack Examples (Rule Triggers)
GIT_PAGER=/tmp/payload.sh git log
LD_PRELOAD=/tmp/x.so git status
PYTHONSTARTUP=/tmp/x.py python3 -V
GIT_EXTERNAL_DIFF=/tmp/evil.sh git diff HEAD~1
find . -name '*.txt' -execdir /tmp/run.sh {} ;{"tool": "shell", "command": "LD_PRELOAD=/tmp/x.so git status"}## Setup ```bash GIT_SSH_COMMAND=/tmp/hook.sh git clone git@host:repo ```
Real-world attack payloads, sanitized and versioned alongside the rule as regression tests — so a future revision can't silently stop catching them.
Benign Examples (Rule Doesn't Trigger)
- Benign env var TZ does not spawn a subprocess - explicitly accepted by the patch
TZ=UTC git log
- Common benign inline env var assignment with no executable-path payload
NODE_ENV=production npm test
- Standard find -exec usage (already covered by allowlist), no -execdir/-okdir
find . -name '*.log' -exec rm {} ; - Mitigation advisory text - no env assignment to an executable path preceding an allowlisted command
Upgrade OpenHuman past 0.54.0 to fix the GIT_PAGER allowlist issue described in CVE-2026-55743.
Known False Positive Contexts
- ▸Benign inline env vars that do not spawn subprocesses (e.g. TZ=UTC git log, LANG=C ls, NODE_ENV=production npm test).
- ▸Legitimate use of find with -exec/-ok flags that are already covered by the allowlist, without -execdir/-okdir.
- ▸Documentation or advisory text that mentions GIT_PAGER or LD_PRELOAD without an assignment to an executable path preceding an allowlisted command.
Documented Evasion Techniques
- Technique: wrapper prefixed env assignment
sudo LD_PRELOAD=/tmp/shell.so find
A wrapper token (sudo, env, nohup, timeout, docker run -e) placed before the assignment moves it out of the leading position, so the command-start anchor in condition 1 does not fire. This is deliberate and NOT free: the shape is the classic GTFOBins sudo/LD_PRELOAD privilege escalation, which the Supervised SecurityPolicy already refuses because the validated first token is `sudo`, not an allowlisted binary. Detecting it belongs in a separate wrapper-abuse rule with its own FP budget; folding it in here made this rule match every offensive-security runbook in the corpus. - Technique: env wrapper to assignment
env GIT_PAGER=/tmp/x.sh git log
Same class as the sudo wrapper, via /usr/bin/env. Mirrors the documented env-wrapper evasion in ATR-2026-00538 and ATR-2026-00540. A v2 of this rule should add an explicit `(?:sudo|env|nohup|timeout)\s+KEY=` clause and measure it against the benign corpora on its own.
Publicly documented bypasses. A standard earns trust by publishing its worst figures, not hiding them — so known limitations ship inside the rule, not in a footnote.
Full YAML Definition
Edit on GitHub →title: "OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)"
id: ATR-2026-01959
rule_version: 2
status: experimental
description: >
Detects CVE-2026-55743 (CRITICAL): the shell tool command allowlist in
OpenHuman desktop agent <= 0.54.0 (default Supervised SecurityPolicy) is
bypassed because is_command_allowed() strips leading inline KEY=value
environment-variable assignments (skip_env_assignments) before validation,
and is_args_safe() blocks find -exec/-ok but not the functionally identical
-execdir/-okdir. An attacker prefixes an allowlisted command with a dangerous
env var (GIT_EXTERNAL_DIFF, GIT_SSH_COMMAND, GIT_PAGER, LD_PRELOAD, BASH_ENV,
PYTHONSTARTUP) pointing at a payload, e.g. "GIT_PAGER=/tmp/payload.sh git log",
so the allowlisted git binary executes the attacker-controlled subprocess. This
rule keys on a dangerous env-var assignment (= path/command) immediately
preceding an allowlisted binary, and on find with -execdir/-okdir.
author: "ATR Community"
date: "2026/06/29"
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: critical
references:
owasp_llm:
- "LLM06:2025"
owasp_agentic:
- "ASI06:2026"
mitre_atlas:
- "AML.T0049 - Exploit Public-Facing Application"
mitre_attack:
- "T1190 - Exploit Public-Facing Application"
cve:
- "CVE-2026-55743"
metadata_provenance:
mitre_atlas: human-reviewed
owasp_llm: human-reviewed
owasp_agentic: human-reviewed
compliance:
eu_ai_act:
- article: "15"
context: "Article 15 (accuracy, robustness, cybersecurity) — runtime detection of this technique is a cybersecurity control for high-risk AI systems. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: primary
- article: "9"
context: "Article 9 (risk management system) requires identified risks to be addressed by appropriate measures; this rule is a runtime risk-treatment control. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: secondary
nist_ai_rmf:
- subcategory: "MP.5.1"
context: "NIST AI RMF MAP 5.1 — likelihood and impact of the identified attack are characterised; this rule detects the adversarial input at runtime. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: primary
- subcategory: "MG.3.2"
context: "NIST AI RMF MANAGE 3.2 — runtime monitoring/maintenance control that surfaces this attack class. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: secondary
iso_42001:
- clause: "8.1"
context: "ISO/IEC 42001 Clause 8.1 (operational planning and control) — detection of this payload is an operational control. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: primary
- clause: "8.3"
context: "ISO/IEC 42001 Clause 8.3 (AI risk treatment) — this rule implements runtime detection as a treatment control. Technique: OpenHuman Shell Tool Allowlist Bypass via Env-Prefix / find -execdir (CVE-2026-55743)."
strength: secondary
tags:
category: tool-poisoning
subcategory: shell-allowlist-env-prefix-bypass
scan_target: both
confidence: high
source: cve-disclosure
vendor_sources: openhuman-cve-2026-55743
agent_source:
type: llm_io
framework:
- any
provider:
- any
detection:
condition: any
false_positives:
- "Benign inline env vars that do not spawn subprocesses (e.g. TZ=UTC git log, LANG=C ls, NODE_ENV=production npm test)."
- "Legitimate use of find with -exec/-ok flags that are already covered by the allowlist, without -execdir/-okdir."
- "Documentation or advisory text that mentions GIT_PAGER or LD_PRELOAD without an assignment to an executable path preceding an allowlisted command."
conditions:
- field: content
operator: regex
value: '(?i)(?:^|[\n;&|(`"\x27:,])[ \t]*(?:GIT_EXTERNAL_DIFF|GIT_SSH_COMMAND|GIT_PAGER|GIT_EDITOR|LD_PRELOAD|LD_AUDIT|LD_LIBRARY_PATH|BASH_ENV|ENV|PYTHONSTARTUP|PERL5OPT|PROMPT_COMMAND)=\S*\s*(?:/|\.{1,2}/|~/|\$\{?\w|[\w./-]+\.(?:sh|so|py|pl|bat))[^\n]{0,80}?\b(?:git|ls|cat|grep|find|python3?|node|npm|cp|mv|head|tail)\b'
description: >
Dangerous environment-variable assignment to a path/command immediately
preceding an allowlisted binary - the CVE-2026-55743 env-prefix allowlist
bypass (e.g. GIT_PAGER=/tmp/payload.sh git log, LD_PRELOAD=/tmp/x.so git status).
The assignment must sit at the START of a command (string start, newline,
or after ; & | ( : , or an opening quote - the last three cover the
command embedded in YAML/JSON tool arguments). That is what "prefix" means in
skip_env_assignments: the function strips assignments that LEAD the
command string, so `WRAPPER KEY=val allowlisted-cmd` is a different shape -
the validated first token is then WRAPPER, which the Supervised policy
allowlist rejects on its own. Without the anchor this condition also
matched sudo/env-wrapped GTFOBins privilege-escalation one-liners, which
are not this CVE. See evasion_tests for the shapes the anchor gives up.
- field: content
operator: regex
value: '(?i)\bfind\b[^\n]{0,200}?-(?:execdir|okdir)\b\s+\S'
description: >
find invoked with -execdir/-okdir - the flags is_args_safe() failed to
block, executing an arbitrary command per matched file
- field: content
operator: regex
value: '(?i)CVE-2026-55743[\s\S]{0,200}(?:allowlist|env(?:ironment)?[\s-]?(?:var|prefix)|execdir|skip_env|GIT_PAGER|LD_PRELOAD)'
description: "explicit CVE framing combined with the bypass mechanism keywords"
response:
actions:
- alert
- block_input
message_template: >
[ATR-2026-01959] CRITICAL: OpenHuman shell allowlist bypass (CVE-2026-55743) -
an inline dangerous env-var prefix or find -execdir/-okdir turns an allowlisted
command into arbitrary OS command execution. Block and patch to > 0.54.0.
confidence: 85
test_cases:
true_positives:
- input: "GIT_PAGER=/tmp/payload.sh git log"
expected: triggered
description: "Exact CVE PoC: GIT_PAGER prefix points git's pager at attacker payload, git log is allowlisted"
- input: "LD_PRELOAD=/tmp/x.so git status"
expected: triggered
description: "LD_PRELOAD injects a shared object into the allowlisted git process"
- input: "PYTHONSTARTUP=/tmp/x.py python3 -V"
expected: triggered
description: "PYTHONSTARTUP runs attacker code before the allowlisted python3 -V"
- input: "GIT_EXTERNAL_DIFF=/tmp/evil.sh git diff HEAD~1"
expected: triggered
description: "GIT_EXTERNAL_DIFF hook executes the payload during an allowlisted git diff"
- input: "find . -name '*.txt' -execdir /tmp/run.sh {} ;"
expected: triggered
description: "find -execdir bypasses the -exec/-ok allowlist check, running an arbitrary command per file"
- input: '{"tool": "shell", "command": "LD_PRELOAD=/tmp/x.so git status"}'
expected: triggered
description: "Same payload carried as a JSON tool argument - regression guard for the command-start anchor (opening quote counts as a command start)"
- input: |-
## Setup
```bash
GIT_SSH_COMMAND=/tmp/hook.sh git clone git@host:repo
```
expected: triggered
description: "Payload on its own line inside a skill's fenced block - regression guard for the command-start anchor (newline counts as a command start)"
true_negatives:
- input: "TZ=UTC git log"
expected: not_triggered
description: "Benign env var TZ does not spawn a subprocess - explicitly accepted by the patch"
- input: "NODE_ENV=production npm test"
expected: not_triggered
description: "Common benign inline env var assignment with no executable-path payload"
- input: "find . -name '*.log' -exec rm {} ;"
expected: not_triggered
description: "Standard find -exec usage (already covered by allowlist), no -execdir/-okdir"
- input: "Upgrade OpenHuman past 0.54.0 to fix the GIT_PAGER allowlist issue described in CVE-2026-55743."
expected: not_triggered
description: "Mitigation advisory text - no env assignment to an executable path preceding an allowlisted command"
evasion_tests:
- input: "sudo LD_PRELOAD=/tmp/shell.so find"
expected: not_triggered
bypass_technique: wrapper_prefixed_env_assignment
notes: >
A wrapper token (sudo, env, nohup, timeout, docker run -e) placed before
the assignment moves it out of the leading position, so the command-start
anchor in condition 1 does not fire. This is deliberate and NOT free: the
shape is the classic GTFOBins sudo/LD_PRELOAD privilege escalation, which
the Supervised SecurityPolicy already refuses because the validated first
token is `sudo`, not an allowlisted binary. Detecting it belongs in a
separate wrapper-abuse rule with its own FP budget; folding it in here
made this rule match every offensive-security runbook in the corpus.
- input: "env GIT_PAGER=/tmp/x.sh git log"
expected: not_triggered
bypass_technique: env_wrapper_to_assignment
notes: >
Same class as the sudo wrapper, via /usr/bin/env. Mirrors the documented
env-wrapper evasion in ATR-2026-00538 and ATR-2026-00540. A v2 of this
rule should add an explicit `(?:sudo|env|nohup|timeout)\s+KEY=` clause and
measure it against the benign corpora on its own.