Windows cmd.exe Command-Line with Embedded URL and %AppData% Strings

Alerts on cmd.exe executions whose command line includes a URL pattern (http/https) and %AppData%.

FreeUnreviewedSigmamediumv1
title: Windows cmd.exe Command-Line with Embedded URL and %AppData% Strings
id: 0d3ebc63-d633-4c51-80da-d4294a15c44b
status: test
description: This rule flags process creation events where cmd.exe is invoked with a command line containing an HTTP/HTTPS URL pattern and a %AppData% string. Such combinations are commonly used to stage or run downloaded content from user-writable locations. It relies on Windows process creation telemetry with the executed image path and full command line.
references:
  - https://www.hybrid-analysis.com/sample/3a1f01206684410dbe8f1900bbeaaa543adfcd07368ba646b499fa5274b9edf6?environmentId=100
  - https://www.hybrid-analysis.com/sample/f16c729aad5c74f19784a24257236a8bbe27f7cdc4a89806031ec7f1bebbd475?environmentId=100
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_cmd_http_appdata.yml
author: Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community, Huntrule Team
date: 2019-01-16
modified: 2021-11-27
tags:
  - attack.execution
  - attack.command-and-control
  - attack.t1059.003
  - attack.t1059.001
  - attack.t1105
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith: \cmd.exe
    CommandLine|contains|all:
      - http
      - ://
      - "%AppData%"
  condition: selection
falsepositives:
  - High
level: medium
license: DRL-1.1
related:
  - id: 1ac8666b-046f-4201-8aba-1951aaec03a3
    type: derived

What it detects

This rule flags process creation events where cmd.exe is invoked with a command line containing an HTTP/HTTPS URL pattern and a %AppData% string. Such combinations are commonly used to stage or run downloaded content from user-writable locations. It relies on Windows process creation telemetry with the executed image path and full command line.

Known false positives

  • High

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.