Sigma rule: Suspicious CodePage Switch Via CHCP

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-6b6a7e356bd6, updated 2023-03-07T00:00:00.000Z.

Rule

Title
Suspicious CodePage Switch Via CHCP
Status
test
Level
medium
Author
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
Date
2019-10-14
Modified
2023-03-07
File
rules/windows/process_creation/proc_creation_win_chcp_codepage_switch.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects a code page switch in command line or batch scripts to a rare language

Log source

product
windows
category
process_creation

Detection

selection:
    Image|endswith: '\chcp.com'
    CommandLine|endswith:
        - ' 936'    # Chinese
        # - ' 1256' # Arabic
        - ' 1258'   # Vietnamese
        # - ' 855'  # Russian
        # - ' 866'  # Russian
        # - ' 864'  # Arabic
condition: selection

False positives (as the rule lists them)

  • Administrative activity (adjust code pages according to your organization's region)

Tags

  • attack.stealth
  • attack.t1036

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_switch.yml

Sources and licences

  • SigmaHQ

    "Suspicious CodePage Switch Via CHCP" by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_chcp_codepage_switch.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: Suspicious CodePage Switch Via CHCP",
entity page, dataset version ref-6b6a7e356bd6, updated 2023-03-07T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c7942406-33dd-4377-a564-0f62db0593a3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c7942406-33dd-4377-a564-0f62db0593a3, 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.