title: Hunt - Shell or Downloader Spawned by Package Installation
id: c83f22aa-d07c-4f3c-a67f-6d5512818133
status: experimental
description: Detects package-manager processes spawning common shells, interpreters, or downloaders.
author: MagicSword OpenAttacks catalog
date: 2026-11-06
references:
  - https://github.com/elastic/detection-rules/blob/main/rules/cross-platform/command_and_control_curl_download_from_npm_install.toml
falsepositives:
  - Legitimate package build and installation scripts
level: medium
logsource:
  category: process_creation
detection:
  selection_parent:
    ParentCommandLine|contains:
      - npm-cli.js
      - npx-cli.js
      - yarn
      - pnpm
      - pip install
      - python -m pip
      - gem install
  selection_child:
    Image|endswith:
      - \powershell.exe
      - \pwsh.exe
      - /sh
      - /bash
      - /zsh
      - /curl
      - /wget
      - /python
      - /node
  condition: all of selection_*
