# NousResearch/hermes-agent · Security: dangerous command approval bypass reports and fixes

## Open now

- 1 issue, 1 PR open on GitHub.
- #55945: \[Security\] Kanban worker subprocesses silently auto-approve dangerous commands (no approval-context flag set)
- PR #55946: fix(security): close kanban worker auto-approve gap for dangerous commands

These issues and pull requests concern multiple reported bypass vulnerabilities where dangerous command approval guards are not enforced in certain execution contexts, including batch_runner.py, execute_code RPC threads, kanban workers, and sandbox terminal access. Proposed fixes involve restoring approval context, revoking terminal tool access in sandboxes, and enforcing guards across entry points.

## TL;DR

- 7 member(s): 1 open issue(s), 2 closed issue(s), 1 open PR(s), 0 merged PR(s), 3 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.22`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #55945: \[Security\] Kanban worker subprocesses silently auto-approve dangerous commands (no approval-context flag set)

## Closed / duplicate issues

- #29159: \[Security tracking\] Dangerous Command Approval Bypass in \`batch_runner.py\` via Insecure Default Fallback (GHSA-7gp4-gfvg-4mpj)
- #35164: \[Security\] Dangerous Command Approval Bypass in \`batch_runner.py\` via Insecure Default Fallback

## Prior & competing PRs

- **#35167: fix(batch): set HERMES_CRON_SESSION to enforce approval guards**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#29307: fix(security): close Dangerous Command Approval Bypass in batch_runner.py (#29159, GHSA-7gp4-gfvg-4mpj)**. closed without merge
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
- **#52963: fix(security): enforce dangerous-command approval guard in batch_runner**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#35167`
- **#55946: fix(security): close kanban worker auto-approve gap for dangerous commands**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#55946`
  - files: `agent/delegation_context.py`, `cli.py`, `contributors/emails/[redacted:email]`, `hermes_cli/config_defaults.py`, `hermes_cli/kanban_db.py`, `tests/conftest.py`, `tests/cron/test_cron_kanban_env_isolation.py`, `tests/hermes_cli/test_signal_handler_kanban_worker.py`, `tests/tools/test_approval.py`, `tests/tools/test_approved_command_clean_slate.py`, `tests/tools/test_execute_code_approval_cluster.py`, `tests/tools/test_kanban_approval_mode.py`, `tests/tools/test_kanban_worker_real_path.py`, `tools/approval.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
