Detection rules › Sigma

Recon Information for Export with Command Prompt

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113
Source
github.com/SigmaHQ/sigma

Once established within a system or network, an adversary may use automated techniques for collecting internal data.

MITRE ATT&CK coverage

TacticTechniques
CollectionT1119 Automated Collection

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Recon Information for Export with Command Prompt
id: aa2efee7-34dd-446e-8a37-40790a66efd7
related:
    - id: 8e0bb260-d4b2-4fff-bb8d-3f82118e6892
      type: similar
status: test
description: Once established within a system or network, an adversary may use automated techniques for collecting internal data.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1119/T1119.md
author: frack113
date: 2021-07-30
modified: 2022-09-13
tags:
    - attack.collection
    - attack.t1119
logsource:
    product: windows
    category: process_creation
detection:
    selection_image:
        - Image|endswith:
              - '\tree.com'
              - '\WMIC.exe'
              - '\doskey.exe'
              - '\sc.exe'
        - OriginalFileName:
              - 'wmic.exe'
              - 'DOSKEY.EXE'
              - 'sc.exe'
    selection_redirect:
        ParentCommandLine|contains:
            - ' > %TEMP%\'
            - ' > %TMP%\'
    condition: all of selection*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_image

selection_image:
    - Image|endswith:
          - '\tree.com'
          - '\WMIC.exe'
          - '\doskey.exe'
          - '\sc.exe'
    - OriginalFileName:
          - 'wmic.exe'
          - 'DOSKEY.EXE'
          - 'sc.exe'

Stage 2: selection_redirect

selection_redirect:
    ParentCommandLine|contains:
        - ' > %TEMP%\'
        - ' > %TMP%\'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \WMIC.exe corpus 60 (sigma 60)
  • \doskey.exe
  • \sc.exe corpus 30 (sigma 30)
  • \tree.com
OriginalFileNameeq
  • DOSKEY.EXE
  • sc.exe corpus 26 (sigma 12, splunk 10, elastic 4)
  • wmic.exe corpus 61 (sigma 36, splunk 18, elastic 7)
ParentCommandLinematch
  • > %TEMP%\
  • > %TMP%\