GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Security: fail-closed shell classifier hardening (waves H-L of PR #48638 series) · Issue #49975 · anomalyco/opencode

Security: fail-closed shell classifier hardening (waves H-L of PR #48638 series) #49975

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Security: fail-closed shell classifier hardening (waves H-L of PR #48638 series)#49975
Copy link
Labels
triaging

Description

@AceRothstein71
AceRothstein71
opened on Sep 19, 2026
Issue body actions

Context

Part of the fork hardening series proposed in #48638 (branch session-diff-events). Tracker: #49565.

Problem

The shell/command classifier could be steered past the external_directory gate and absorb its own offered grants (fail-open classifications) across many shapes: brace lists, wrappers, absolute paths, redirects, dynamic names, env/eval, ANSI-C escapes, attached options, remote operands, substitutions, variable redirects, and more.

Change set (commit list)

  • 85fd685 tool/permission security
  • 77589d5 wave H-A shell
  • 3f69dad wave I-A shell
  • 4618e51 wave J-A shell
  • ae98cd2 wave K shell
  • 7b7e70a wave L remote/attached

Validation

  • Adversarial base-vs-head proofs for every closed class; official suites green; no new prompts on benign corpora.
  • Intended to land as a standalone stacked PR (see PR fix: harden session diffs, snapshots, and write paths; cut worker-thread stalls under parallel agents #48638 for the integration branch).

Linked: PR #48638 · tracker #49565 · sibling tracking issues listed in a follow-up comment.

Activity

  1. AceRothstein71 commented on Sep 19, 2026

    @AceRothstein71
    AceRothstein71
    on Sep 19, 2026
    Author
    More actions

    Cross-links: sibling tracking issues #49974 (perf/runtime), #49975 (shell classifier H-L), #49976 (shell classifier M-P), #49977 (instance lifecycle), #49978 (MCP/schema), #49979 (server/SSE + event/db), #49980 (updater tooling). Integration PR: #48638. Original tracker: #49565.

  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    opencodejrBot
    on Oct 28, 2026
    Contributor
    More actions

    Thanks for putting this together. As written, this is a list of fork commits rather than a report we can check, so we can't act on it yet.

    If you've seen OpenCode run a command without the external_directory permission prompt you expected, please describe it briefly in your own words:

    • Your OpenCode version (opencode --version)
    • Your relevant permission config, if you changed the defaults
    • One or two exact shell commands the agent ran that reached a path outside the project without asking
    • What you expected (a prompt or a denial) and what happened instead

    Please note that, as SECURITY.md explains, the permission system is a UX feature, not a sandbox, and AI-generated security reports are not accepted. A concrete misclassification is still useful as a normal bug report.

    You can reply here with the details or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.

    Related items, ordered by likelihood:

    • Security: shell classifier convergence waves M-P under v16-v20 adversarial audits (PR #48638 series) #49976: the other shell classifier tracking issue in this series (waves M-P)
    • fix: harden session diffs, snapshots, and write paths; cut worker-thread stalls under parallel agents #48638: the integration PR these commits came from (closed)
    • Worker-thread saturation under concurrent sessions: permission matching, turn-diff recomputation, event fanout, snapshot churn #49565: the earlier tracker for this series (closed)
  3. opencodejr
    added
    triaging
    on Oct 28, 2026
  4. opencodejr
    closed this as not plannedon Oct 31, 2026
  5. opencodejr commented on Oct 31, 2026

    @opencodejr
    opencodejrBot
    on Oct 31, 2026
    Contributor
    More actions

    Closing this as not planned: we asked for a concrete example and haven't heard back. Without one, we can't confirm that any of the listed command shapes actually get past the external_directory prompt in OpenCode.

    If you do see a specific case, please open a new issue using the Bug Report template. Include your opencode --version, any changes to your permission config, the exact command the agent ran, and what you expected compared with what happened. Please write it in your own words, and note the threat model in SECURITY.md: the permission system is a UX feature, not a sandbox. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.