Detection rules › Sigma

Console CodePage Lookup Via CHCP

Severity
medium
Author
_pete_0, TheDFIRReport
Source
upstream

Detects use of chcp to look up the system locale value as part of host discovery

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1614.001 System Location Discovery: System Language Discovery

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: selection

or:
CommandLine|endswith: 'chcp  '
CommandLine|endswith: 'chcp '
CommandLine|endswith: chcp
or:
ParentCommandLine|contains: ' -c '
ParentCommandLine|contains: ' -k '
ParentCommandLine|contains: ' -r '
Image|endswith: '\chcp.com'
ParentImage|endswith: '\cmd.exe'

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
CommandLineends_with
  • chcp
  • chcp
  • chcp
Imageends_with
  • \chcp.com corpus 2 (sigma 2)
ParentCommandLinematch
  • -c
  • -k
  • -r
ParentImageends_with
  • \cmd.exe corpus 13 (sigma 13)