Windows: Detect MODE.COM Changing Code Page Settings

Detects MODE.COM executions that include code page selection parameters.

FreeReviewedSigma · Low · v5
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems), Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ), DRL 1.1
Published
2024-01-19
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule flags process executions of MODE.COM where the command line includes typical parameters for changing code page and selecting a code page ("cp" and "select="). Attackers may use this to alter how text/console output is interpreted or recorded, which can affect operator visibility and downstream tooling. The detection relies on Windows process creation telemetry, matching the executable name/path and specific command-line substrings.

Related detections9 linkedT1036 — drag to rearrange
Suspicious GitHub Actions Runner In Hidden Directory via Shell (via process_creation)
Suspicious Billbug Loader Artifacts in Windows Temp Directory
Malicious Scheduled Task Masquerading as Windows Defender Sync via schtasks (via process_creation)
Malicious Startup Persistence via WindowsDefenderSync Shortcut (via file_event)
Malicious PXA Stealer Archive Extraction via Renamed WinRAR images.png (via process_creation)
Malicious NimDoor Loader Persistence via Masqueraded Google Updater (via file_event)
Suspicious Rename of Double-Extension PowerShell Script (via process_creation)
Suspicious Cobalt Strike OCSP Malleable C2 Profile Traffic
Suspicious Spoofed Microsoft Host Header C2 by Stately Taurus
Windows: Detect MODE.COM Changing Code Page Settings
Pivot detection · T1036 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.