title: AI Coding Agent CLI Started With Approvals Disabled
id: 35d0ca2e-22eb-4f27-b7b6-3d7d81c7cb74
status: experimental
description: |
    Detects an AI coding agent CLI (Claude Code, Gemini CLI, Codex, Amazon Q, Cursor CLI)
    started with the flags that disable per-action approval. Legitimate in sandboxes and CI,
    abused by the s1ngularity malware (Nx, August 2025) to search a workstation for secrets.
references:
    - https://www.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware
    - https://www.wiz.io/blog/s1ngularitys-aftermath
author: PurpleLog
date: 2026-10-17
tags:
    - attack.execution
    - attack.t1059.004
    - attack.credential-access
    - attack.t1552.001
logsource:
    category: process_creation
    product: linux
detection:
    selection_explicit:
        CommandLine|contains:
            - '--dangerously-skip-permissions'
            - 'bypassPermissions'
            - '--dangerously-bypass-approvals-and-sandbox'
            - '--trust-all-tools'
            - '--approval-mode yolo'
            - '--approval-mode=yolo'
    selection_yolo_cli:
        CommandLine|contains:
            - 'gemini'
            - 'cursor-agent'
    selection_yolo_flag:
        CommandLine|contains:
            - ' --yolo'
            - ' --force'
    condition: selection_explicit or all of selection_yolo_*
falsepositives:
    - Developers who run their agent in YOLO mode on purpose
    - CI pipelines and sandboxed containers running agents headless
level: medium
