GenAI CLI Started with Unsafe Permission Bypass
Identifies GenAI agent CLIs started with permission-bypass or auto-approval flags that disable human-in-the-loop guardrails. These modes are intended for isolated sandboxes but are frequently misused on…
Description
Identifies GenAI agent CLIs started with permission-bypass or auto-approval flags that disable human-in-the-loop guardrails. These modes are intended for isolated sandboxes but are frequently misused on internet-connected developer workstations, allowing prompt injection, compromised dependencies, or malicious skills to execute commands, modify files, or reach sensitive paths without confirmation.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- ContainersESXiIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteWindows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- event_index
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| code.claude.com/docs/en/permission-modes | Only this detection cites it |
| developers.openai.com/codex/agent-approvals-security | Only this detection cites it |
| developers.openai.com/codex/cli/reference | Only this detection cites it |
| google-gemini.github.io/gemini-cli/docs/get-started/configuration.html | Only this detection cites it |
| specterops.io/blog/2025/11/21/an-evening-with-claude-code/ | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- c1326e45-6d3c-4a2d-9882-606a0c310299
- Tagged by the source as
- Mitre Atlas: AML.T0053Mitre Atlas: AML.T0081Data Source: Elastic DefendDomain: EndpointDomain: GenAINoise: HighOS: LinuxOS: macOSOS: WindowsPerformance: NormalPlatform: LinuxPlatform: macOSPlatform: WindowsProfile: AggressiveResources: Investigation GuideRule Type: Event Correlation (EQL)Tactic: Defense EvasionThreat: Unauthorized AI UsageUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Oct 2, 2026
- Version
- 4