Skip to content

AUTO mode should strip additional dangerous interpreter allow rules #4370

@qqqys

Description

@qqqys

AUTO mode currently strips broad Bash/Monitor allow rules for many shells, scripting runtimes, and package runners. The dangerous interpreter list should also cover several security-relevant entries that can execute arbitrary code or move execution outside the local classifier boundary.

Missing entries to cover:

  • tsx for TypeScript execution (tsx -e, tsx script.ts)
  • ssh for remote shell execution (ssh host -- ...)
  • bunx as the Bun package runner equivalent of npx
  • Windows shell variants: cmd, cmd.exe, bash.exe, powershell.exe, pwsh.exe

Without these entries, a broad allow rule such as Bash(ssh prod-host -- *) or Bash(tsx -e *) can bypass the AUTO classifier path.

Expected behavior: these broad wildcard allow rules are treated as dangerous and stripped at AUTO-mode runtime, without modifying user settings.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions