Sigma rule: CodePage Modification Via MODE.COM To Russian Language
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a4341b979131, updated 2024-01-17T00:00:00.000Z.
Rule
- Title
- CodePage Modification Via MODE.COM To Russian Language
- Status
- test
- Level
- medium
- Author
- Joseliyo Sanchez, @Joseliyo_Jstnk
- Date
- 2024-01-17
- File
- rules/windows/process_creation/proc_creation_win_mode_codepage_russian.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects a CodePage modification using the "mode.com" utility to Russian language.
This behavior has been used by threat actors behind Dharma ransomware.
Log source
- product
- windows
- category
- process_creation
Detection
# VT Query: behavior:"mode con cp select=1251"
# VT Query: behavior:"mode con cp select=866"
selection_img:
- Image|endswith: '\mode.com'
- OriginalFileName: 'MODE.COM'
selection_cli:
CommandLine|contains|all:
- ' con '
- ' cp '
- ' select='
CommandLine|endswith:
- '=1251' # ANSI Cyrillic; Cyrillic (Windows) - Observed ITW by Dharma ransomware
- '=866' # OEM Russian; Cyrillic (DOS) - Observed ITW by other malware
condition: all of selection_*False positives (as the rule lists them)
- Russian speaking people changing the CodePage
Tags
- attack.stealth
- attack.t1036
MITRE ATT&CK ids this rule names
Related rules
References
- https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mode
- https://strontic.github.io/xcyclopedia/library/mode.com-59D1ED51ACB8C3D50F1306FD75F20E99.html
- https://www.virustotal.com/gui/file/5e75ef02517afd6e8ba6462b19217dc4a5a574abb33d10eb0f2bab49d8d48c22/behavior
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_mode_codepage_russian.yml
Sources and licences
SigmaHQ
"CodePage Modification Via MODE.COM To Russian Language" by Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_mode_codepage_russian.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: CodePage Modification Via MODE.COM To Russian Language",
entity page, dataset version ref-a4341b979131, updated 2024-01-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/12fbff88-16b5-4b42-9754-cd001a789fb3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 12fbff88-16b5-4b42-9754-cd001a789fb3, 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.