Sigma rule: Console CodePage Lookup Via CHCP

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7079ab0ef7e3, updated 2024-03-05T00:00:00.000Z.

Rule

Title
Console CodePage Lookup Via CHCP
Status
test
Level
medium
Author
_pete_0, TheDFIRReport
Date
2022-02-21
Modified
2024-03-05
File
rules/windows/process_creation/proc_creation_win_chcp_codepage_lookup.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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

Log source

product
windows
category
process_creation

Detection

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

False positives (as the rule lists them)

  • During Anaconda update the 'conda.exe' process will eventually execution the 'chcp' command.
  • Discord was seen using chcp to look up code pages

Tags

  • attack.discovery
  • attack.t1614.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_chcp_codepage_lookup.yml

Sources and licences

  • SigmaHQ

    "Console CodePage Lookup Via CHCP" by _pete_0, TheDFIRReport (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_chcp_codepage_lookup.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Console CodePage Lookup Via CHCP",
entity page, dataset version ref-7079ab0ef7e3, updated 2024-03-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/7090adee-82e2-4269-bd59-80691e7c6338 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 7090adee-82e2-4269-bd59-80691e7c6338, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.