title: AI Coding Agent CLI Started With Approvals Disabled By A Script Interpreter
id: 14584851-376f-448d-aca6-9f471a6b5220
related:
    - id: 35d0ca2e-22eb-4f27-b7b6-3d7d81c7cb74
      type: derived
status: experimental
description: |
    Detects an AI coding agent CLI started with approvals disabled by a Node.js or Python
    process rather than by an interactive shell, as the s1ngularity postinstall script did.
references:
    - https://www.stepsecurity.io/blog/supply-chain-security-alert-popular-nx-build-system-package-compromised-with-data-stealing-malware
author: PurpleLog
date: 2026-10-17
tags:
    - attack.execution
    - attack.t1059.004
    - attack.credential-access
    - attack.t1552.001
    - attack.initial-access
    - attack.t1195.002
logsource:
    category: process_creation
    product: linux
detection:
    selection_flags:
        CommandLine|contains:
            - '--dangerously-skip-permissions'
            - '--dangerously-bypass-approvals-and-sandbox'
            - '--trust-all-tools'
            - ' --yolo'
    selection_parent:
        ParentImage|endswith:
            - '/node'
            - '/python'
            - '/python3'
            - '/bun'
            - '/deno'
    filter_main_self_relaunch:
        # Gemini CLI re-executes itself under node: the parent already carries the tool name
        ParentCommandLine|contains:
            - 'gemini'
            - 'codex'
            - 'cursor-agent'
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - IDE extensions and orchestration tools written in Node.js that drive the CLI
level: high
